must use a sorted array
requirement of sorted array is expensive when a lot of insertion and deletions are needed
there must be a mechanism to access middle element directly
binary search algorithm is not efficient when the data elements are more than 1000.
D. binary search algorithm is not efficient when the data elements are more than 1000.
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
Processor and memory
Complexity and capacity
Time and space
Data and space
O(n)
O(log n)
O(n2)
O(n log n)
3,4,5,2,1
3,4,5,1,2
5,4,3,1,2
1,5,2,3,4
elementary items
atoms
scalars
all of above
Arrays
Linked lists
Both of above
None of above
Last in first out
First in last out
Last in last out
First in first out
internal change
inter-module change
side effect
side-module update
Sorting
Merging
Inserting
Traversal
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
Linked lists
Stacks
Queues
Deque
Best case
Null case
Worst case
Average case
Queue
Stack
List
None of the 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
Stack
Input restricted dequeue
Priority queues
Output restricted qequeue
Abstract level
Implementation level
Application level
All of the above
Arrays
Records
Pointers
None
Stack
Queue
List
Link list
O(n)
O(log n)
O(n2)
O(n log n)
List
Stacks
Trees
Strings
Trees
Graphs
Arrays
None of above
Arrays
Records
Pointers
Stacks
grounded header list
circular header list
linked list with header and trailer nodes
none of above
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
Operations
Algorithms
Storage Structures
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
mn
max(m,n)
min(m,n)
m+n-1
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