1.

Which one of the following is an application of the backtracking algorithm?(a) Finding the shortest path(b) Finding the efficient quantity to shop(c) Ludo(d) CrosswordThe question was posed to me during an interview.This intriguing question comes from Backtracking topic in chapter Backtracking of Data Structures & Algorithms II

Answer»

The correct option is (d) CROSSWORD

The best I can explain: Crossword puzzles are BASED on backtracking approach whereas the rest are travelling salesman PROBLEM, KNAPSACK problem and dice GAME.



Discussion

No Comment Found

Related InterviewSolutions