2. | push() and pop() functions are found in |
Discuss |
Answer: (c).stacks
|
3. | Minimum number of queues required for priority queue implementation? |
Discuss |
Answer: (d).2
|
5. | A queue data-structure can be used for − |
Discuss |
Answer: (c).resource allocation
|
6. | If locality is a concern, you can use _______ to traverse the graph. |
Discuss |
Answer: (b).Depth First Search
|
7. | Aposterior analysis are more accurate than apriori analysis because − |
Discuss |
Answer: (b).it assumes all other factors to be dynamic.
|
8. | Prefix notation is also known as |
Discuss |
Answer: (d).Polish Notation
|
9. | In conversion from prefix to postfix using stack data-structure, if operators and operands are pushed and popped exactly once, then the run-time complexity is |
Discuss |
Answer: (b).Ο(n)
|
10. | If queue is implemented using arrays, what would be the worst run time complexity of queue and dequeue operations? |
Discuss |
Answer: (d).Ο(1), Ο(1)
|