Which of the following is not a backtracking algorithm?

2018

Which of the following is not a backtracking algorithm?

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

  1. A.

    Knight tour problem

  2. B.

    N-queen problem

  3. C.

    Towers of Hanoi

  4. D.

    M-coloring problem

Attempted by 188 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: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…