Question: 1. In an ideal implementations of a stack and a queue, all operations are ______________________ . O(1) O(n) O(n log n) O(n2) it depends on
1.
In an ideal implementations of a stack and a queue, all operations are ______________________ .
| O(1) | ||
| O(n) | ||
| O(n log n) | ||
| O(n2) | ||
| it depends on the operation
|
2.
In a radix sort, the radix refers to __________________________ .
| a circular array | ||
| the number of elements being sorted | ||
| the range of values of the sort key | ||
| a stack | ||
| a queue |
3.
A stack is the ideal collection to use when _______________________ .
| implementing a radix sort | ||||||||||||||||||||||||||||||||
| evaluating a postfix expression | ||||||||||||||||||||||||||||||||
| evaluating an infix expression | ||||||||||||||||||||||||||||||||
| implementing a quick sort | ||||||||||||||||||||||||||||||||
| none of the above
4. A queue is the ideal collection to use when ____________________ .
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
