HELD KARP ALGORITHM

Introduction

The Held–Karp algorithm, also called Bellman–Held–Karp algorithm, is a dynamic programming algorithm proposed in 1962 independently by Bellman and by Held and Karp to solve the traveling salesman problem (TSP), in which the input is a distance matrix between a set of cities, and the goal is to find a minimum-length tour that visits each city exactly once before returning to the starting point. It finds the exact solution to this problem, and to several related problems including the Hamiltonian cycle problem, in exponential time.
Dynamic programming is both a mathematical optimization method and a computer programming method. The method was developed by Richard Bellman in the 1950s.

Problem Statement

A School bus starting from School needs to visit all the specified bus stops, where the distance between all the stops are known and each bus stop needs to be visited once. What is the shortest possible route that the bus visit each stop exactly once and returns back to school?

bus

Proposed solution




The bus in this case has to visit each and every bus stop (node) exactly so once this Implies the bus is following the Hamiltonian path. But this problem is more complex than the Hamiltonian cycle as shortest path is also to be found. Given below graph depicts the five bus stops which the school bus has to travel. Bus has to start from the bus stop O(school), where many possible routes are possible to travel.

tree

Project Work






Github Repository: HappyJoddd/Bus-Stop-Problem


C++ Code of the algorithm used as a part of Semester Project of SC 205 course.
It demonstrates how concepts of discrete mathematics like Graph Theory can be used to solve the problem of minimum path taken by a bus driver of a school bus so that he can pick up every student covering every stop and return to school



Applications

bus

SCHOOL BUS ROUTING

Scheduling a single bus run to pick up youngsters who are waiting is evidently a TSP. Many businesses focus on developing software for school bus routing, giving school districts a rapid way to improve their pickup times using this.

GENOME SEQUENCING

The TSP plays an important role by providing a tool for building sequences from experimental data on the proximity of individual pairs of markers.

DESIGNING PCB'S

Printed circuit boards can be found in many common electronic devices. While scan chains arise in chip design, a classic application of the TSP arises in the production of the basic boards.

bus

LASERS FOR ART

The focal point of the laser beam is used to create fractures at specified three-dimensional points in the crystal, creating tiny points that are visible in the clear material. The TSP is again to route the laser through the points to minimize the production time.

AIMING TELESCOPES

The process of rotating equipment into position for viewing is called slewing. For large-scale telescopes, slewing is a time-consuming procedure. In this setting, a TSP tour that minimizes the total slewing time for a set of observations can easily be implemented.

COMPUTER WIRING

Modules are located on a computer board and a given subset of pins has to be connected.Hence we have the problem of finding a shortest Hamiltonian path with unspecified starting and terminating points.

About us



ASSIGNED BY:


Instructor: Prof. Manish K. Gupta


Course: SC 205


DAIICT, Gandhinagar, Gujarat

DONE BY:


Hitarth Bhatt (202201024)


Tanmay Singh (202201135)


Ram Kulkarni (202201354)


Tanay Jain (202201026)


Gireesh Reddy (202201122)


Shourya Nahar (202201296)