AI Lab #04
AI Lab #04
Description: Given a set of cities with coordinates, find the shortest possible route that visits
each city exactly once and returns to the starting city.
Example:
A B C D
A 0 2.24 3.16 3.61
B 2.24 0 2.24 1.41
C 3.16 2.24 0 2.24
D 3.61 1.41 2.24 0
Task: Implement Simulated Annealing to find the shortest tour that visits all cities and returns to
the starting point.
2. Tabu Search
Description: Given a graph where nodes represent tasks and edges represent constraints (tasks
that cannot be performed simultaneously), assign a color to each node such that no adjacent
nodes share the same color.
Example:
Task: Implement Tabu Search to minimize the number of conflicting pairs (nodes with the same
color) in the graph.
Example:
For N=4, place four queens on the board such that no two queens can attack each other.
Task: Implement Local Beam Search to find a solution to the N-Queens problem.
Description: Given a set of cities with coordinates, find the shortest possible route that visits
each city exactly once and returns to the starting city.
Task: Implement Ant Colony Optimization to find the shortest tour that visits all cities and
returns to the starting point.
Description: Given a maze represented as a grid with obstacles, find the shortest path from a
start position to a goal position.
Example:
Task: Implement Best First Search to find the shortest path through the maze.
6. A* Search
Description: Given a grid with obstacles, find the shortest path from a start position to a goal
position. Movement is restricted to adjacent cells (up, down, left, right).
Example:
Task: Implement A* Search to find the shortest path from a given start position to a goal
position in the grid.