Define annulment
When an input is nullified
Define identity
When a single input determines the output
Define idempotent
When the same input is used more than once for one expression
Define complement
When a value and the opposite of that value are both inputted
Define double negation
When an input goes through a NOT gate twice
Define commutative
When 2 values can be inputted multiple ways to give the same result
Define associative
When 3 values can be inputted multiple ways using the same symbols to give the same result
Define distributive
When 3 values have to be inputted using different symbols to return the same value
What does n left shifts do to a binary value
Multiplied the value by 2^n
What does n right shifts do to a binary value
Divides the value by 2^n
What does an AND MASK do
Only bits corresponding with 1 in the mask are retained
What does an OR mask do
Turns specific bits on and leaves the rest unchanged
What does an XOR mask do
If the mask value equals the corresponding bit value, the bit value is switched to 0
What is a linked list
Dynamic data structure used to hold an ordered sequence (do not have to be in contiguous data locations). Each item is a node containing a data field and an address called a link or pointer
What is an advantage of a linked list
Values can easily be added or removed by editing pointers.
What are disadvantages of linked lists
Nodes are not removed they are just ignored (wastes memory)
Storing pointers requires memory
Items can not be directly accessed, it has to go through the order
What is a linked list
Data structure that provides a foundation upon which other structures can be built, such as stacks, queues, graphs and trees
Name some characteristics of a linked list
Can go backwards and forwards
Each node contains data and a pointer to the next node
Data in lists can be stored anywhere in memory
Features of a linked list
Dynamic
Ordered
Pointers
More memory
Items can not be directly accessed
Applications of a linked list
Store music
Web browsers
Viewing images
What does the term hashing mean
Applying a hashing algorithm to the value in the key field of each record to transform it into an address
What characteristics should a hashing algorithm have
Needs to calculate quickly
Few collisions
Take up least amount of memory
How is the index decided for each value
For numbers, divide the value to be stored by the side of the array and take the remainder
For strings convert the values of the whole string into ASCII
What is a hash table
Creates indexes for databases