100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

WGU C950 Data Structures and Algorithms II Task 2 |Latest Update with Complete Solution

Rating
-
Sold
-
Pages
16
Uploaded on
12-05-2025
Written in
2024/2025

WGU C950 Data Structures and Algorithms II Task 2 |Latest Update with Complete Solution











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
May 12, 2025
Number of pages
16
Written in
2024/2025
Type
Other
Person
Unknown

Subjects

Content preview

WGU C950 Data Structures and Algorithms II Task 2
|Latest Update with Complete Solution

Student ID: xxxxxxx

WGU Email:

Date: 05/06/2025

C950 Data Structures and Algorithms II




A. Hash Table
To meet the rubric, I built a custom hash table from scratch without
using Python’s built-in dictionaries or sets. Each package is stored as
a Package object and inserted using its ID as the key.

The table uses a simple modulo-based hash function and handles
collisions via separate chaining—each bucket holds a list of key-value
tuples. It supports fast insert, lookup, remove, and items() operations.

This structure enables constant-time access to package data during
simulation and status checks (Lysecky et al., 2022), ensuring efficient
management of all 40 packages with full control over data handling.

,“Custom-built hash table implementation using chaining with key-value tuples. Supports constant-time insertion, lookup, removal,
and iteration across all 40 packages.”

, B. Look-Up Function
To enable real-time access to package data, I implemented a
lookup(package_id) method inside the custom HashTable class. This
method retrieves a Package object based on its ID in constant time,
enabling fast lookups without using built-in dictionaries.

The package’s delivery status is dynamically determined using the
program’s time-aware interface. The system applies corrections for
time-delayed packages (like Package #9), checks delivery and
departure times, and updates the status as "At the hub", "En route",
or "Delivered at [time]" accordingly.

This look-up feature is used both in the routing simulation and the
interactive CLI. It allows the user to query a single package at any
time and provides live information, including delivery time, truck
assignment, and address (corrected if applicable).




“Time-aware lookup function that applies address corrections, calculates delivery status, and prints package information.”

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
professoraxel Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
2345
Member since
3 year
Number of followers
1567
Documents
19244
Last sold
13 hours ago
THE EASIEST WAY TO STUDY NURSING EXAMS,STUDY GUIDES,TESTBANKS AND QUALITY EXAMS

Better grades start here! Find Study Notes, Exam answer packs, Assignment guided solutions and more. Study faster & better. Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.....All the Best!!!!!!

3.8

442 reviews

5
204
4
79
3
85
2
24
1
50

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions