Backtracking - Examples

Examples

Typical examples are

  • Puzzles such as eight queens puzzle, crosswords, verbal arithmetic, Sudoku, Peg Solitaire.
  • Combinatorial optimization problems such as parsing and the knapsack problem.
  • Logic programming languages such as Icon, Planner and Prolog, which use backtracking internally to generate answers.
  • Backtracking is also utilized in the "diff" (version comparing) engine for the MediaWiki software.

Below is an example for the constraint satisfaction problem:

Read more about this topic:  Backtracking

Famous quotes containing the word examples:

    It is hardly to be believed how spiritual reflections when mixed with a little physics can hold people’s attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.
    —G.C. (Georg Christoph)

    There are many examples of women that have excelled in learning, and even in war, but this is no reason we should bring ‘em all up to Latin and Greek or else military discipline, instead of needle-work and housewifry.
    Bernard Mandeville (1670–1733)

    No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.
    André Breton (1896–1966)