Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. The most appropriate matching for the following pairs is
    X. depth first search 1. heap
    Y. breadth-first search 2. queue
    Z. sorting 3. stack

    1. X – 1, Y – 2, Z – 3
    2. X – 3, Y – 1, Z – 2
    3. X – 3, Y – 2, Z – 1
    4. X – 2, Y – 3, Z – 1
Correct Option: C

X. depth first search is done in stack.
Y. breadth first search is done in queue
Z. sorting is done in a heap.



Your comments will be displayed only after manual approval.