Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a backtracking algorithm?
Think about solving puzzles incrementally.
Give an example of a problem that can be solved using backtracking.
Consider games or puzzles.
What is the main function of backtracking algorithms?
Consider how these algorithms manage their steps.
Backtracking algorithms can utilize pruning to:
Think about ways to make the search process more efficient.
Create an algorithm that resolves famous puzzles such as the sudoku puzzle. Explain how you will implement backtracking in your solution.
Consider how you'll check for conflicts when placing numbers.
Design a backtracking algorithm for generating permutations of a set of numbers. How will you ensure each number is used only once?
Think about how you can track used elements during the recursion.
5 more questions in this section. Enroll free to practise them all.
Enroll free