Problem Solving With Prolog -

If Prolog reaches a dead end while searching for an answer, it automatically "steps back" and tries a different path. This makes it incredibly powerful for solving puzzles where you have to explore many possibilities. 3. Classic Problem-Solving Examples

A sophisticated form of pattern matching that tries to make two expressions identical by assigning values to variables. Problem Solving with Prolog

In most languages, you tell the computer how to solve a problem (imperative). In Prolog, you describe what the problem is (declarative). If Prolog reaches a dead end while searching