Which of the following is not a backtracking algorithm?

2018

Which of the following is not a backtracking algorithm?

  1. A.

    Knight tour problem

  2. B.

    N-queen problem

  3. C.

    Towers of Hanoi

  4. D.

    M-coloring problem

Attempted by 34 students.

Show answer & explanation

Correct answer: C

Towers of Hanoi is solved using recursion and divide-and-conquer, not backtracking. The other problems explore multiple possibilities and backtrack on failure.

Explore the full course: Up Lt Grade Assistant Teacher 2025