Podcast
Questions and Answers
What is the average time taken for shortest-job-first service for the given jobs submitted to a printer?
What is the average time taken for shortest-job-first service for the given jobs submitted to a printer?
- $\frac{1+10+100}{3} = 37$ time units
- $\frac{1+100+10}{3} = 37$ time units
- $\frac{1+10+100}{3} = 37$ time units
- $\frac{1+11+111}{3} = 41$ time units (correct)
What are the two main operations that a Priority Queue data structure allows?
What are the two main operations that a Priority Queue data structure allows?
- Push and pop
- Insert (enqueue) and deleteMax
- Add and remove
- Insert (enqueue) and deleteMin (correct)
What is the time complexity for finding the minimum element in a linked list implementation of a Priority Queue?
What is the time complexity for finding the minimum element in a linked list implementation of a Priority Queue?
- O(nlogn)
- O(n) (correct)
- O(1)
- O(log n)
In a Priority Queue implemented using a linked list, what operation becomes expensive?
In a Priority Queue implemented using a linked list, what operation becomes expensive?
What are some applications of Priority Queues mentioned in the text?
What are some applications of Priority Queues mentioned in the text?
Flashcards are hidden until you start studying