This project explores solutions to the Shortest Path Problem (SPP) and the Traveling Salesperson Problem (TSP) using deterministic dynamic programming. It involves finding the shortest path between cities with specified energy costs and determining the optimal sequence for visiting multiple cities in TSP scenarios.
deterministic-dynamic-programming/
│
├── README.md # overview and instructions
├── Practical_Deterministic_Dynamic_Programming.ipynb # Jupyter notebook for solving SPP and TSP with detailed explanations
├── graph_shortest_path_problem.png # Graphical representation of the Shortest Path Problem
├── graph_traveling_salesperson_problem.png # Graphical representation of the Traveling Salesperson Problem
-
Open the Notebook:
- Run the Jupyter notebook to explore the deterministic dynamic programming solution for both SPP and TSP:
jupyter notebook Practical_Deterministic_Dynamic_Programming.ipynb
- Run the Jupyter notebook to explore the deterministic dynamic programming solution for both SPP and TSP:
-
View Graphs:
- The images
graph_shortest_path_problem.pngandgraph_traveling_salesperson_problem.pngillustrate the SPP and TSP respectively.
- The images
- Deterministic Dynamic Programming: Used to calculate the least-cost paths in both the SPP and TSP scenarios.
- Optimization of Travel Routes: Applied to minimize the total energy cost or distance traveled across cities.

