True, False
False, True
True, True
False, False
C. True, True
List
Stacks
Trees
Strings
Traversal
Search
Sort
None of above
O(n)
O(log n)
O(n2)
O(n log n)
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.
linear arrays
linked lists
both of above
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
O(n)
O(log n)
O(n2)
O(n log n)
Stacks
Dequeues
Queues
Binary search tree
elementary items
atoms
scalars
all of above
Processor and memory
Complexity and capacity
Time and space
Data and space
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
Operations
Algorithms
Storage Structures
None of above
Tree
Graph
Priority
Dequeue
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
Stacks linked list
Queue linked list
Both of them
Neither of them
11
12
13
14
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
Last in first out
First in last out
Last in last out
First in first out
floor address
foundation address
first address
base address
Array
Stack
Tree
queue
Binary search
Insertion sort
Radix sort
Polynomial manipulation
Best case
Null case
Worst case
Average case
Graph
Binary tree
Trees
Stack
Linked lists
Stacks
Queues
Deque
Queue
Stack
List
None of the above
Arrays
Records
Pointers
Stacks
Lists
Strings
Graph
Stacks
Divide and conquer strategy
Backtracking approach
Heuristic search
Greedy approach
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
underflow
overflow
housefull
saturated