Ai Prolog - Algo
Ai Prolog - Algo
To implement and solve various AI-based problems using SWI-Prolog, demonstrating logic
programming through family relations, arithmetic, puzzles, optimization, and search
problems.
Individual Algorithms
5. Create sibling/2 if they share a parent and are not the same.
2b. Factorial
3. Decrease N by 1 (N1).
6. Return Result.
2c. Fibonacci
5. Return Result.
3. Tower of Hanoi
6. Repeat recursively.
4. 8-Puzzle Solver
5. N-Queens Problem
Result:
Each Prolog program using SWI-Prolog, producing the expected outputs such as family
relationship queries, computed values, solved puzzles, or optimized solutions was
implemented successfully.