Question: CS 2 0 0 1 Data Structures Semester Project Food Delivery Routing Optimization Due Date: Sunday, May 5 th , 2 0 2 4 1
CS Data Structures Semester Project
Food Delivery Routing Optimization
Due Date: Sunday, May th:pm
Group Members:
Food Polar Bear, a delivery company operating in Grid City wants to optimize its route planning
for delivering orders to customers efficiently. Grid City consists of multiple restaurants and
customers scattered across a grid similar to Manhattan. The company needs to deliver orders
from different restaurants to customers while considering various constraints, such as time
windows for deliveries and minimizing travel time.
Suppose the company receives orders from two different restaurants: Burger Palace and Pizza
Planet. Each restaurant has its own set of orders with specific delivery locations. The delivery
personnel must plan their routes to cover the maximum number of deliveries in a day while
adhering to the time constraints.
For instance, the delivery personnel start from Burger Palace and deliver orders to nearby
customers. Then, they move to Pizza Planet and deliver orders from there. They optimize their
routes to avoid backtracking and ensure timely deliveries. The total minimum time required to
deliver all orders efficiently is calculated based on the route plan.
Instructions
Represent the city map as an N x N grid where nodes should be numbered from to
N
going from left to right and top to bottom.
Restaurants and customers are located at the nodes in a graph, and edges represent
road connections.
Each edge takes unit time to travel.
Consider time constraints for each delivery and plan routes accordingly to ensure
timely deliveries.
Optimize the routes to cover the maximum number of deliveries in a day while
minimizing travel time.
Input
The input to the algorithm will be contained in a text file in the following order:
The first line contains the number of test cases
For each test case:
o The first line contains grid size N number of riders I and number of
restaurants R
o For each restaurant:
The first line contains its name, its location, and the number of orders
O
The next O lines contain the name, location, and delivery time limit of
each order
Output
For each test case, the algorithm should output the total minimum time required to deliver all
orders efficiently.
Sample Input Sample Output
BurgerPalace
Beef Order Restaurant
Zinger Order Test Case
PizzaPlanet
Tikka Restaurant
CurryHouse
Chicken Test Case
ButterChicken
Biryani provide me the code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
