Theory-of-Computation
October 21, 2023ISRO CS 2008
October 21, 2023Queues-and-Stacks
Question 81 |
Application of data structure queue is :
Level wise printing of tree | |
Implementation of priority queues | |
Function call implementation | |
Depth first search in a graph |
Question 81 Explanation:
Application of data structure queue is implementation of priority queues. In a priority queue, an element with high priority is served before an element with low priority. In some implementations, if two elements have the same priority, they are served according to the order in which they were enqueued, while in other implementations, ordering of elements with the same priority is undefined. While priority queues are often implemented with heaps.
Applications:
1.Bandwidth management
2.Discrete event simulation
3.Dijkstra’s algorithm
4.Huffman coding
5.Best-first search algorithms
6.ROAM triangulation algorithm
7.Prim’s algorithm for minimum spanning tree
Applications:
1.Bandwidth management
2.Discrete event simulation
3.Dijkstra’s algorithm
4.Huffman coding
5.Best-first search algorithms
6.ROAM triangulation algorithm
7.Prim’s algorithm for minimum spanning tree
Correct Answer: B
Question 81 Explanation:
Application of data structure queue is implementation of priority queues. In a priority queue, an element with high priority is served before an element with low priority. In some implementations, if two elements have the same priority, they are served according to the order in which they were enqueued, while in other implementations, ordering of elements with the same priority is undefined. While priority queues are often implemented with heaps.
Applications:
1.Bandwidth management
2.Discrete event simulation
3.Dijkstra’s algorithm
4.Huffman coding
5.Best-first search algorithms
6.ROAM triangulation algorithm
7.Prim’s algorithm for minimum spanning tree
Applications:
1.Bandwidth management
2.Discrete event simulation
3.Dijkstra’s algorithm
4.Huffman coding
5.Best-first search algorithms
6.ROAM triangulation algorithm
7.Prim’s algorithm for minimum spanning tree
Subscribe
Login
0 Comments