Data Structures and Algorithms Source Code
Project description
UC Berkeley Extension - Data Structures and Algorithms Class
A collection of classes and functions for use in UC Berkeley Extension's Comp Sci X404.1: Data Structures and Algorithms Class.
Command Line Installation
pip install ucxdsa
Updating an existing version of the DSA package
pip install --upgrade ucxdsa
Quick Usage Guide
from dsa.modulename import classname
To determine the version, enter the following in Python or Jupyter:
import dsa
print(dsa.version)
or from the terminal
pip show ucxdsa
Revision History
2025.2.9
- Refactored Dijkstra's algorithm code
- Added delete_edge() method to graphs
- Removed all duplicate add_edge() methods such as add_adjacent_vertex()
- Removed all add_directed_edge() methods and added directed argument to add_edge()
- Minor comment fixes
2025.1.31
- Fixed bug when DoublyLinkedList delete of the last index throws an Exception
2025.1.29
- Added is_sorted() in sorttools
- Fixed a bug when displaying a TreeNode in repr() format
- Update some modules to be more pyright compliant
2025.1.19
- Fixed bug in Queue to_list() method (thanks, Charles!)
2025.1.17
- Updated hash function code
2025.1.15
- Cleaned up README.md
2024.12.24
- Made default size for Trie graph larger
- Cleaned up Heap module
- Cleaned up Huffman module to use DSA data structures
- Added more tests
- Added more details to documentation
2024.12.22
- Created Github Pages access to documentation
- Added more details to documentation
2024.08.16.1
Fixed versioning issue. Can now determine version by typing:
import dsa
dsa.version
or
dsa.__version__
2024.08.16
moved Trie end_marker from an instance variable to a class variable (Trie.end_marker)
2024.08.15
dsa.draw
- new module to provide optional NetworkX graphics to:
- graphs
- tries
- trees
- heaps
dsa module
ran code through RUFF
dsa.graphs module
- Added vertices() method to AdjacencyListGraph, AdjacencyListWeightedGraph
- Dropped Vertex classes
dsa.tree
renamed Node class to TreeNode
2024.7.23
dsa.graphs module
- added is_edge() methods for AdjacencyMatrixGraph, AdjacencyMatrixWeightedGraph, AdjacencyListGraph, AdjacencyListWeightedGraph
- added index operator (returns a list of adjacent labels) for AdjacencyMatrixGraph, AdjacencyMatrixWeightedGraph
- cleaned up and refactored parameter names
2024.7.19
dsa.graphs module
- Added AdjacencyMatrixGraph, AdjacencyMatrixWeightedGraph, AdjacencyListGraph, AdjacencyListWeightedGraph
- Deprecated: Vertex, WeightedVertex
dsa.heap module
- Removed MinHeap option from the Heap class
- Added dedicated MinHeap class
- Added Priority Queue class
dsa package
Misc. code improvements, documentation updates and API consistency
TODO
- Make an abstract Graph class
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ucxdsa-2025.2.9.1.tar.gz.
File metadata
- Download URL: ucxdsa-2025.2.9.1.tar.gz
- Upload date:
- Size: 90.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70efd58ba3d3dc62cba462f0904179e3488eecb8ea10ea245dc31c1b6f1c2de4
|
|
| MD5 |
bc78e85557962835c56e6b8408fc13d8
|
|
| BLAKE2b-256 |
8043ad8e24d7d9d43a5ac9dfa947a9ad8eaac87f5c41e5202905b258e012e0ce
|
File details
Details for the file ucxdsa-2025.2.9.1-py3-none-any.whl.
File metadata
- Download URL: ucxdsa-2025.2.9.1-py3-none-any.whl
- Upload date:
- Size: 43.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d90fb7bb6ab7833e7574d597c7eb0542481bf6c3d45a7364e8658a2c21440c47
|
|
| MD5 |
06ef01a8f38215184ef4cfc051349353
|
|
| BLAKE2b-256 |
109a199a2f9d020f3c7f7ed5a53a5e544432d0387a736735f6f17c584ac807e2
|