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
A. When Item is somewhere in the middle of the array
FIFO lists
LIFO list
Piles
Push-down lists
Processor and memory
Complexity and capacity
Time and space
Data and space
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
16
12
6
10
Operations
Algorithms
Storage Structures
None of above
tables arrays
matrix arrays
both of above
none of above
Arrays
Records
Pointers
None
Stacks linked list
Queue linked list
Both of them
Neither of them
elementary items
atoms
scalars
all of above
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
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
AVL tree
Red-black tree
Lemma tree
None of the above
Dynamic programming
Greedy method
Divide and conquer
Backtracking
underflow
overflow
housefull
saturated
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
the name of array
the data type of array
the index set of the array
the first data from the set to be stored
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.
Stack
Input restricted dequeue
Priority queues
Output restricted qequeue
Arrays
Records
Pointers
None
by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
the architecture of computer memory does not allow arrays to store other than serially
both of above
none of above
True, False
False, True
True, True
False, False
push, pop
insert, delete
pop, push
delete, insert
Application level
Abstract level
Implementation level
All of the above
linear arrays
linked lists
both of above
none of above
Lists
Strings
Graph
Stacks
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
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
Graphs
Binary tree
Stacks
Queues