ToyData
Learning Data Structures with toy code
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
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:-)
- 数据结构与算法-Python (2019秋季),武汉大学
Great lecture notes.
References:
- Jenny's lectures CS/IT NET&JRF
Jenny makes everything clear!
Metadata
Release files for toydata 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toydata-1.1.0.tar.gz | 24.8 kB | Without provenance | Details for toydata-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toydata-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for toydata-1.1.0-py3-none-any.whl |
Total release size: 52.1 kB
Release files / toydata-1.1.0.tar.gz
| Download URL | toydata-1.1.0.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87b6bf8d16f128aa5e4b7ed81b81d690aa68dc782ca962282f88b41ac2f9fa70
|
|
BLAKE2b-256 checksum How to use checksums |
17565d51f5e59b52d274bd13b56791173f5c8fa3b541c49653af795f18658733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.9.16 Linux/5.15.0-1024-azure
|
Release files / toydata-1.1.0-py3-none-any.whl
| Download URL | toydata-1.1.0-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
239dd744708e62550d4ca36802b5c89e3ba67b8f044169d81428e1e84f1c2045
|
|
BLAKE2b-256 checksum How to use checksums |
d80ae49ca8ddedb1af431cc561c0c7c6a579fbc4379dc27c14157bf811b2ee78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.9.16 Linux/5.15.0-1024-azure
|
Security for toydata 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.