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
List
Stacks
Trees
Strings
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
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
tables arrays
matrix arrays
both of above
none of above
Breath first search cannot be used to find converted components of a graph.
Optimal binary search tree construction can be performed efficiently using dynamic programming.
Given the prefix and post fix walks over a binary tree.The binary tree cannot be uniquely constructe
Depth first search can be used to find connected components of a graph.
Traversal
Search
Sort
None of above
Last in first out
First in last out
Last in last out
First in first out
FIFO lists
LIFO list
Piles
Push-down lists
O(n)
O(log n)
O(n2)
O(n log n)
Stacks
Dequeues
Queues
Binary search tree
mn
max(m,n)
min(m,n)
m+n-1
Stack
Queue
List
Link list
Stacks linked list
Queue linked list
Both of them
Neither of them
Processor and memory
Complexity and capacity
Time and space
Data and space
Arrays
Records
Pointers
None
Dynamic programming
Greedy method
Divide and conquer
Backtracking
Graph
Binary tree
Trees
Stack
Linked lists
Stacks
Queues
Deque
Operations
Algorithms
Storage Structures
None of above
O(n)
O(log n)
O(n2)
O(n log n)
sorted linked list
sorted binary trees
sorted linear array
pointer array
Arrays
Records
Pointers
Stacks
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
3 additions and 2 deletions
2 deletions and 3 additions
3 deletions and 4 additions
3 deletions and 3 additions
underflow
overflow
housefull
saturated
linear arrays
linked lists
both of above
none of above
O(n)
O(log n)
O(n2)
O(n log n)
Trees
Graphs
Arrays
None of above
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