Skip to main content

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.

API Documentation

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)

Revision History

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ucxdsa-2025.1.15.tar.gz (241.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ucxdsa-2025.1.15-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file ucxdsa-2025.1.15.tar.gz.

File metadata

  • Download URL: ucxdsa-2025.1.15.tar.gz
  • Upload date:
  • Size: 241.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.11

File hashes

Hashes for ucxdsa-2025.1.15.tar.gz
Algorithm Hash digest
SHA256 c3b1c0939d530e0f62734db9ad2b513c1be4b64752a2c7925784d83e0e137222
MD5 8903c9538821cfa41b04ec348d170755
BLAKE2b-256 aeb7c8fd34f7efe3b698be6986baf38908c9afb460c613139e1f16aeb7c92ca1

See more details on using hashes here.

File details

Details for the file ucxdsa-2025.1.15-py3-none-any.whl.

File metadata

  • Download URL: ucxdsa-2025.1.15-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.11

File hashes

Hashes for ucxdsa-2025.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c0505ca91f6d39e7fd353847da958959324ef90d6cb15ff3d2b55590545fd241
MD5 f95eaf16886787608679f3d79060b255
BLAKE2b-256 9bad37c5cbb08b368203dffa84bf9fc51289f2d440a4b5f1b8cabe0d1fd009b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page