Skip to content

shivangini09/DSA_Ideathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧭 Shortest Possible Route Detection System

A project developed between February 2024 – April 2024 that implements advanced algorithms to determine the most efficient round-trip route for visiting multiple cities β€” addressing the well-known Travelling Salesman Problem (TSP). The system focuses on achieving a strong balance between solution quality and computational efficiency, making it applicable in real-world logistics and routing systems.

πŸ“Œ Problem Statement

Determine the shortest possible route that visits a set of cities exactly once and returns to the origin city, minimizing the total travel distance.

πŸš€ Key Features

  • πŸ” Round-trip Route Planning
    Determines an optimized round-trip covering all cities.

  • 🧠 Smart Algorithm Integration
    Combines Christofides Algorithm (approximation) with Genetic Algorithm (optimization).

  • βš™οΈ Efficient & Adaptable
    Balances route quality with execution speed β€” ideal for practical deployment scenarios.

πŸ§ͺ Algorithms Used

  • Greedy Algorithm: For initial baseline performance.
  • Christofides Algorithm:
    • Provides a route within 1 to 1.5 times the optimal solution.
    • Ensures a near-optimal starting point with polynomial time complexity.
  • Genetic Algorithm:
    • Performs further optimization on the Christofides path.
    • Evolved the population for 100 generations to refine the solution further.

πŸ› οΈ Tech Stack

  • Language: Python
  • Libraries: NumPy, NetworkX, Matplotlib (for visualization), custom TSP solver modules

πŸ“ˆ Results

  • Christofides Algorithm provided high-quality initial paths.
  • Genetic Algorithm optimization reduced the average route distance significantly.
  • Final solution was competitive, often falling within 5–10% of the theoretical optimum.

🧠 Applications

  • Logistics and Delivery Routing
  • Sales Route Optimization
  • Robotics Path Planning
  • Network Routing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published