O(n)
O(log n)
O(n2)
O(n log n)
A. O(n)
Dynamic programming
Greedy method
Divide and conquer
Backtracking
Last in first out
First in last out
Last in last out
First in first out
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
Stacks
Dequeues
Queues
Binary search tree
Divide and conquer strategy
Backtracking approach
Heuristic search
Greedy approach
Array
Stack
Tree
queue
underflow
overflow
housefull
saturated
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
AVL tree
Red-black tree
Lemma tree
None of the above
Arrays
Records
Pointers
None
Lists
Strings
Graph
Stacks
underflow
overflow
housefull
saturated
grounded header list
circular header list
linked list with header and trailer nodes
none of above
Best case
Null case
Worst case
Average case
mn
max(m,n)
min(m,n)
m+n-1
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
sorted linked list
sorted binary trees
sorted linear array
pointer array
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
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
Processor and memory
Complexity and capacity
Time and space
Data and space
Stacks linked list
Queue linked list
Both of them
Neither of them
Data
Operations
Both of the above
None of the above
16
12
6
10
linear arrays
linked lists
both of above
none of above
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
Arrays
Records
Pointers
None
O(n)
O(log n)
O(n2)
O(n log n)
True, False
False, True
True, True
False, False
Graphs
Binary tree
Stacks
Queues
push, pop
insert, delete
pop, push
delete, insert