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 Comp Sci X404.1: Data Structures and Algorithms Class.

API 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

  • Separate the Dijkstra code from graph
  • Add Prim's algorithm
  • General: Add more type hints

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-2024.12.22.tar.gz (230.7 kB view details)

Uploaded Source

Built Distribution

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

ucxdsa-2024.12.22-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ucxdsa-2024.12.22.tar.gz
Algorithm Hash digest
SHA256 baf6763ea28d2a948f5758fc02cc9ecedf9f829fe7ea78bcdbd1ffbdbc59962a
MD5 693b209c3c76927ec3433bb7c76ade97
BLAKE2b-256 764157c6d05a79daf42e7b220b7b4d7c6e76fbebf7c6932ebd1bb829948140ed

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ucxdsa-2024.12.22-py3-none-any.whl
Algorithm Hash digest
SHA256 89caf0a3b2229b331f55c5ddfbdfe8152347034718d3906f544d7bff5ef6b193
MD5 456d286242149b3276e6c2d7a51c6ab8
BLAKE2b-256 e8d4b9ac696258ba632c8c22e0a57fd819b4ca8d2fa2173d019a404200946bab

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