The most appropriate matching for the following pairs is: X: Depth-first…

PYQ GATE 2000

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. A.

    X-1, Y-2, Z-3

  2. B.

    X-3, Y-1, Z-2

  3. C.

    X-3, Y-2, Z-1

  4. D.

    X-2, Y-3, Z-1

Attempted by 669 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…