Skip to content

thao-1/Routing-Program-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package Delivery Routing System

Project Overview

This application simulates a package delivery routing system for the Western Governors University Parcel Service. It implements an efficient algorithm to deliver packages while minimizing total travel distance and meeting specific delivery constraints.

Key Features

  • Package tracking and status updates in real-time
  • Route optimization using nearest neighbor algorithm
  • Handling of special delivery requirements (time windows, package grouping, truck restrictions)
  • Interactive query system for package status at any point in time

Technical Implementation

  • Data Structures: Custom hash table implementation for O(1) package lookups
  • Algorithms:
    • Nearest neighbor algorithm for route optimization
    • Greedy approach for package assignment to trucks
  • Special Handling:
    • Delayed package arrivals
    • Address corrections mid-route
    • Package grouping requirements
    • Truck-specific delivery constraints

Time-Space Complexity

  • Package lookup: O(1) average case
  • Route optimization: O(N²) where N is the number of delivery locations
  • Overall delivery algorithm: O(N⁴) worst case

Technologies Used

  • Python 3.8
  • CSV data processing for package and distance information
  • Object-oriented design with classes for Trucks, Packages, Drivers, and HashTable

Usage

Run the application with:

python main.py

The interactive menu allows you to:

  1. Generate a general status report at a specific time
  2. Query the status of a specific package at a given time
  3. Exit the application

About

Data Structures and Algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages