This code implements a Parcel Routing System (PRS) simulation. It simulates the movement of parcels and freight cars across different cities represented as vertices in a graph.
-
Clone the repository:
-
Compile the code using a C++ compiler:
-
Run the executable:
-
graph.txt
: Contains the connections between cities in the graph. Each line represents an edge between two cities. -
bookings.txt
: Contains the details of parcels to be processed. Each line represents a parcel with its attributes separated by spaces.
The simulation generates various outputs, including:
- Status of all parcels at each time tick.
- Parcels delivered up to a specific time tick.
- Information about stranded parcels.
To use the code:
- Ensure you have the input files
graph.txt
andbookings.txt
prepared. - Compile the code as described in the setup section.
- Run the executable.
- Review the output to understand the status and movement of parcels and freight cars.
- C++ compiler
MIT License
Manas Dwivedi