Sorting
Merging
Inserting
Traversal
D. Traversal
Arrays are dense lists and static data structure
data elements in linked list need not be stored in adjacent space in memory
pointers store the next data element of a list
linked lists are collection of the nodes that contain information part and next pointer
An array is suitable for homogeneous data but the data items in a record may have different data type
In a record, there may not be a natural ordering in opposed to linear array.
A record form a hierarchical structure but a linear array does not
All of above
Stacks linked list
Queue linked list
Both of them
Neither of them
Abstract level
Implementation level
Application level
All of the above
underflow
overflow
housefull
saturated
Trees
Graphs
Arrays
None of above
Sorting
Merging
Inserting
Traversal
mn
max(m,n)
min(m,n)
m+n-1
Arrays
Linked lists
Both of above
None of above
11
12
13
14
grounded header list
circular header list
linked list with header and trailer nodes
none 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
Linked lists
Stacks
Queues
Deque
Arrays
Records
Pointers
None
Best case
Null case
Worst case
Average case
sorted linked list
sorted binary trees
sorted linear array
pointer array
Binary search
Insertion sort
Radix sort
Polynomial manipulation
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
Arrays
Records
Pointers
None
tables arrays
matrix arrays
both of above
none of above
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
Stacks
Dequeues
Queues
Binary search tree
When Item is somewhere in the middle of the array
When Item is not in the array at all
When Item is the last element in the array
When Item is the last element in the array or is not there at all
O(n)
O(log )
O(n2)
O(n log n)
Dynamic programming
Greedy method
Divide and conquer
Backtracking
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
Array
Stack
Tree
queue
LOC(Array[5]=Base(Array)+w(5-lower bound), where w is the number of words per memory cell for the array
LOC(Array[5])=Base(Array[5])+(5-lower bound), where w is the number of words per memory cell for the array
LOC(Array[5])=Base(Array[4])+(5-Upper bound), where w is the number of words per memory cell for the array
None of above
the name of array
the data type of array
the index set of the array
the first data from the set to be stored
True, False
False, True
True, True
False, False