elementary items
atoms
scalars
all of above
D. all of above
Lists
Strings
Graph
Stacks
internal change
inter-module change
side effect
side-module update
for relatively permanent collections of data
for the size of the structure and the data in the structure are constantly changing
for both of above situation
for none of above situation
for relatively permanent collections of data
for the size of the structure and the data in the structure are constantly changing
for both of above situation
for none of above situation
Arrays
Records
Pointers
None
O(n)
O(log n)
O(n2)
O(n log n)
Sorting
Merging
Inserting
Traversal
True, False
False, True
True, True
False, False
floor address
foundation address
first address
base address
3 additions and 2 deletions
2 deletions and 3 additions
3 deletions and 4 additions
3 deletions and 3 additions
Graphs
Binary tree
Stacks
Queues
FAEKCDBHG
FAEKCDHGB
EAFKHDCBG
FEAKDCHBG
linear arrays
linked lists
both of above
none of above
List
Stacks
Trees
Strings
The list must be sorted
there should be the direct access to the middle element in any sublist
There must be mechanism to delete and/or insert elements in list
none of above
array
lists
stacks
all of above
Counting the maximum memory needed by the algorithm
Counting the minimum memory needed by the algorithm
Counting the average memory needed by the algorithm
Counting the maximum disk space needed by the algorithm
The item is somewhere in the middle of the array
The item is not in the array at all
The item is the last element in the array
The item is the last element in the array or is not there at all
Binary search
Insertion sort
Radix sort
Polynomial manipulation
Operations
Algorithms
Storage Structures
None of above
Best case
Null case
Worst case
Average case
P contains the address of an element in DATA.
P points to the address of first element in DATA
P can store only memory addresses
P contain the DATA and the address of DATA
elementary items
atoms
scalars
all of above
Array
Stack
Tree
queue
Last in first out
First in last out
Last in last out
First in first out
16
12
6
10
O(n)
O(log n)
O(n2)
O(n log n)
Arrays
Linked lists
Both of above
None of above
Traversal
Search
Sort
None of above
Much more complicated to analyze than that of worst case
Much more simpler to analyze than that of worst case
Sometimes more complicated and some other times simpler than that of worst case
None or above