Alex Irvine C950 submission WGU Student # 000955107 Date = 2020/7/15
The Western Governors University Parcel Service (WGUPS) needs to determine the best route and delivery distribution for their Daily Local Deliveries (DLD) because packages are not currently being consistently delivered by their promised deadline. The Salt Lake City DLD route has three trucks, two drivers, and an average of 40 packages to deliver each day; each package has specific criteria and delivery requirements.
Your task is to determine the best algorithm, write code, and present a solution where all 40 packages, listed in the attached “WGUPS Package File,” will be delivered on time with the least number of miles added to the combined mileage total of all trucks. The specific delivery locations are shown on the attached “Salt Lake City Downtown Map” and distances to each location are given in the attached “WGUPS Distance Table.”
While you work on this assessment, take into consideration the specific delivery time expected for each package and the possibility that the delivery requirements—including the expected delivery time—can be changed by management at any time and at any point along the chosen route. In addition, you should keep in mind that the supervisor should be able to see, at assigned points, the progress of each truck and its packages by any of the variables listed in the “WGUPS Package File,” including what has been delivered and what time the delivery occurred.
The intent is to use this solution (program) for this specific location and to use the same program in many cities in each state where WGU has a presence. As such, you will need to include detailed comments, following the industry-standard Python style guide, to make your code easy to read and to justify the decisions you made while writing your program.
- Each truck can carry a maximum of 16 packages.
- Trucks travel at an average speed of 18 miles per hour.
- Trucks have a “infinite amount of gas” with no need to stop.
- Each driver stays with the same truck as long as that truck is in service.
- Drivers leave the hub at 8:00 a.m., with the truck loaded, and can return to the hub for packages if needed. The day ends when all 40 packages have been delivered.
- Delivery time is instantaneous, i.e., no time passes while at a delivery (that time is factored into the average speed of the trucks).
- There is up to one special note for each package.
- The wrong delivery address for package #9, Third District Juvenile Court, will be corrected at 10:20 a.m. The correct address is 410 S State St., Salt Lake City, UT 84111.
- The package ID is unique; there are no collisions.
- No further assumptions exist or are allowed.
- Identify the algorithm that will be used to create a program to deliver the packages and meets all requirements specified in the scenario.
-
Write a core algorithm overview, using the sample given, in which you do the following:
- Comment using pseudocode to show the logic of the algorithm applied to this software solution.
- Apply programming models to the scenario.
- Evaluate space-time complexity using Big O notation throughout the coding and for the entire program.
- Discuss the ability of your solution to adapt to a changing market and to scalability.
- Discuss the efficiency and maintainability of the software.
- Discuss the self-adjusting data structures chosen and their strengths and weaknesses based on the scenario.
-
Write an original code to solve and to meet the requirements of lowest mileage usage and having all packages delivered on time.
- Create a comment within the first line of your code that includes your first name, last name, and student ID.
- Include comments at each block of code to explain the process and flow of the coding.
-
Identify a data structure that can be used with your chosen algorithm to store the package data.
- Explain how your data structure includes the relationship between the data points you are storing.
-
Develop a hash table, without using any additional libraries or classes, with an insertion function that takes the following components as input and inserts the components into the hash table:
- package ID number
- delivery address
- delivery deadline
- delivery city
- delivery zip code
- package weight
- delivery status (e.g., delivered, in route)
-
Develop a look-up function that takes the following components as input and returns the corresponding data elements:
- package ID number
- delivery address
- delivery deadline
- delivery city
- delivery zip code
- package weight
- delivery status (delivered, in route)
-
Provide an interface for the insert and look-up functions to view the status of any package at any time. This function should return all information about each package, including delivery status.
- Provide screenshots to show package status of all packages at a time between 8:35 a.m. and 9:25 a.m.
- Provide screenshots to show package status of all packages at a time between 9:35 a.m. and 10:25 a.m.
- Provide screenshots to show package status of all packages at a time between 12:03 p.m. and 1:12 p.m.
-
Run your code and provide screenshots to capture the complete execution of your code.
-
Justify your choice of algorithm by doing the following:
- Describe at least two strengths of the algorithm you chose.
- Verify that the algorithm you chose meets all the criteria and requirements given in the scenario.
- Identify two other algorithms that could be used and would have met the criteria and requirements given in the scenario.
- Describe how each algorithm identified in part I3 is different from the algorithm you chose to use in the solution.
-
Describe what you would do differently if you did this project again.
-
Justify your choice of data structure by doing the following:
-
Verify that the data structure you chose meets all the criteria and requirements given in the scenario.
- Describe the efficiency of the data structure chosen.
- Explain the expected overhead when linking to the next data item.
- Describe the implications of when more package data is added to the system or other changes in scale occur.
-
Identify two other data structures that can meet the same criteria and requirements given in the scenario.
- Describe how each data structure identified in part 3.2 is different from the data structure you chose to use in the solution.
-
-
Acknowledge sources, using in-text citations and references, for content that is quoted, paraphrased, or summarized.
-
Demonstrate professional communication in the content and presentation of your submission.