• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 5 páginas
Otro

WGU C950 Task 1 Data Structures and Algorithms II | Actual verified study complete Solutions | A+ Graded | 2026 Updates | 100% correct

Document preview thumbnail
Vista previa 2 fuera de 5 páginas

WGU C950 Task 1 Data Structures and Algorithms II | Actual verified study complete Solutions | A+ Graded | 2026 Updates | 100% correct

Vista previa del contenido

WGU C950 Task 1 Data Structures and Algorithms II |
Actual verified study complete Solutions | A+ Graded |
2026 Updates | 100% correct



Date: 05/01/2026



C950 Data Structures and Algorithms II

Introduction




This document describes the WGUPS Routing Program's planning and design methodology. The
project's goal is to provide a Python-based system that guarantees the timely delivery of all 40
items while meeting delivery requirements and keeping the overall delivery distance within 140
miles. To manage package information and optimize delivery routes, the application will use an
effective routing algorithm and appropriate data structures.


A. Algorithm Identification




I will create delivery routes using a greedy nearest-neighbor algorithm, which repeatedly
chooses the closest delivery location while still meeting all package and deadline constraints.


B. Data Structure Identification




Page 1 of 5

, To enable quick lookups and updates of package status during routing and delivery, I will keep
package records on a hash table.

B1. Explanation of Data Structure




Every package has its associated fields (address, deadline, city, zip, weight, notes, and status)
stored as a single object or record. The hash table maps associate a distinct package ID with that
record. For the program to promptly retrieve and update the package's status and delivery time
while trucks are on their way,




C1. Algorithm’s Logic




LOAD packages into hash_table keyed by package_id
LOAD distance_table (address-to-address distances)


INITIALIZE Truck1, Truck2, Truck3 with empty loads ASSIGN
packages to trucks based on constraints:
deadlines
"must be with" groups
delayed packages / wrong address (#9 updated at 10:20)
truck capacity (16)


FOR each truck that leaves the hub:
current_location = HUB
current_time = departure_time


WHILE truck has undelivered packages:
IF current_time >= 10:20 AND package #9 address is wrong:
UPDATE package #9 address in hash_table

Page 2 of 5

Información del documento

Subido en
25 de abril de 2026
Número de páginas
5
Escrito en
2025/2026
Tipo
Otro
Personaje
Desconocido
$15.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
EduSprint
3.9
(8)
Vendido
62
Seguidores
6
Artículos
7089
Última venta
1 día hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes