This document describes several computational problems:
1) The Traveling Salesman Problem involves finding the shortest route to visit all cities and return to the starting point.
2) The Chinese Postman Problem finds the shortest route covering all edges of a connected graph.
3) The Towers of Hanoi Problem moves disks between pegs under rules of only moving one disk at a time and not placing a larger disk on a smaller one.
4) The Missionaries and Cannibals Problem crosses individuals across a river ensuring cannibals never outnumber missionaries on either side.
This document describes several computational problems:
1) The Traveling Salesman Problem involves finding the shortest route to visit all cities and return to the starting point.
2) The Chinese Postman Problem finds the shortest route covering all edges of a connected graph.
3) The Towers of Hanoi Problem moves disks between pegs under rules of only moving one disk at a time and not placing a larger disk on a smaller one.
4) The Missionaries and Cannibals Problem crosses individuals across a river ensuring cannibals never outnumber missionaries on either side.
This document describes several computational problems:
1) The Traveling Salesman Problem involves finding the shortest route to visit all cities and return to the starting point.
2) The Chinese Postman Problem finds the shortest route covering all edges of a connected graph.
3) The Towers of Hanoi Problem moves disks between pegs under rules of only moving one disk at a time and not placing a larger disk on a smaller one.
4) The Missionaries and Cannibals Problem crosses individuals across a river ensuring cannibals never outnumber missionaries on either side.
The TSP is to find the shortest possible route that visits a given set of cities and returns to the starting city. The steps include creating a distance matrix, generating all possible permutations of city orders, calculating the total distance for each permutation, and selecting the one with the shortest distance.
2. Chinese Postman Problem(CPP)
The CPP is about finding the shortest possible route that covers all edges of a connected graph at least once. It's also known as the Route Inspection Problem. Solutions to CPP typically involve augmenting the graph with duplicate edges and then finding an Eulerian circuit.
3. Towers of Hanoi Problem
This classic puzzle involves three pegs and a set of disks with different diameters. The goal is to move the entire stack of disks from one peg to another, following specific rules: only one disk can be moved at a time, and a larger disk cannot be placed on top of a smaller one.
4. Missionaries and Cannibals Problem
In this puzzle, three missionaries and three cannibals must cross a river using a boat that can carry a maximum of two individuals. The challenge is to move all the individuals across the river while ensuring that the cannibals never outnumber the missionaries on either side, as they would eat the missionaries.
5. Eight Queens Problem
The Eight Queens puzzle is about placing eight chess queens on an 8x8 chessboard so that no two queens threaten each other. The steps include systematically placing queens on the board, checking for conflicts, and backtracking if conflicts are found. Example: Constraint Satisfaction Problem(CSP).
6. Monkey and Banana Problem
This puzzle is about moving a monkey across a room to a banana hanging from the ceiling while using a chair. The steps include moving the monkey and chair toward the banana, climbing the chair, grabbing the banana, and reversing the steps.
7. The Konigsberg Bridge Problem
This problem deals with a set of seven bridges in the city of Konigsberg. The challenge was to find a walk through the city that crossed each bridge once and only once, returning to the starting point. Euler's solution to this problem laid the foundation for graph theory.