1.

Which of the following is the application of minimum ternary heap?(a) Prim’s Algorithm(b) Euclid’s Algorithm(c) Eight Queen Puzzle(d) TreeEnquiry is from Ternary heap in section Heap of Data Structures & Algorithms II got this question during an interview.

Answer»

The CORRECT option is (a) Prim’s ALGORITHM

To explain: When working on the graph in the COMPUTER science field, the Prim’s Algorithm for spanning trees uses a minimum ternary heap as there are delete operation equal to a number of edges and DECREASE priority operation equal to the number of vertices associated with the graph.



Discussion

No Comment Found

Related InterviewSolutions