Skip to main content

Data Structures in Python

Project description

ToyData

Learning Data Structures with toy code

Coverage PyPI Package

There are some simple implementations(in Python3.7.6) of classic data structrues.

I am trying to do this with an easy-to-read style.

And, I add some extra functions beyond the ADTs, which are used mostly for printing and testing purposes.

Install

ToyData 1.0 in pypi Just run:pip install ToyData==1.0 in your cmd.

Note that: If you had change the default mirror of pip to another one, such as https://pypi.tuna.tsinghua.edu.cn/simple or http://pypi.douban.com/simple , you may have to install with pip install ToyData -i https://pypi.org/simple

Books

Data Structures and Algorithms in Python, Michael T. Goodrich is the main reference of the implementations.

Note that there is a book named Data Structures and Algorithms in C++, Michael T. Goodrich which use C++ to implement these data structures.

And Data Structures Using C, Reema Thareja is also a great book that implement these data structures using C.

Documentation

ToyData

API

  • Stack: ArrayStack, LinkedStack
  • Queue: ArrayQueue, ArrayDeque
  • Deque: LinkedDeque
  • Positional List: PositionalList
  • Prority Queues: UnsortedPriorityQueue, SortedPriorityQueue, HeapPriorityQueue
  • LinkedLists: Singlellist, Doublellist
  • Hash Tables: ChainHashMap, ProbeHashMap, SortedTableMap
  • Trees: LinkedBinaryTree
  • Search Trees: AVLTreeMap, SplayTreeMap, RedBlackTreeMap
  • Graph: Adjacency Map, DFS/BFS, Floyd-Warshall

Courses

There some courses that use the book(Data Structures and Algorithms in Python) as textbook.(Tell me please, if you know other courses use it:-)

  1. 数据结构与算法-Python (2019秋季),武汉大学

    Great lecture notes.

References:

  1. Jenny's lectures CS/IT NET&JRF

    Jenny makes everything clear!

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

toydata-1.1.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

toydata-1.1.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file toydata-1.1.0.tar.gz.

File metadata

  • Download URL: toydata-1.1.0.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.16 Linux/5.15.0-1024-azure

File hashes

Hashes for toydata-1.1.0.tar.gz
Algorithm Hash digest
SHA256 87b6bf8d16f128aa5e4b7ed81b81d690aa68dc782ca962282f88b41ac2f9fa70
MD5 491b94e3fab030457c53b2319289e12a
BLAKE2b-256 17565d51f5e59b52d274bd13b56791173f5c8fa3b541c49653af795f18658733

See more details on using hashes here.

File details

Details for the file toydata-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: toydata-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.16 Linux/5.15.0-1024-azure

File hashes

Hashes for toydata-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 239dd744708e62550d4ca36802b5c89e3ba67b8f044169d81428e1e84f1c2045
MD5 08f1bd3aa9c9c555379ff6b4ce42eeda
BLAKE2b-256 d80ae49ca8ddedb1af431cc561c0c7c6a579fbc4379dc27c14157bf811b2ee78

See more details on using hashes here.

Supported by

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