Skip to main content

A Python implementation library for book algs4

Project description

Overview

This repository contains the Python source code for the algorithms in the textbook Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

The official Java source code is here.

Goals

Make a Python implementation of the library so that a Python programmer can follow this book easily or prefer to demonstrate the algorithms using Python.

Try to keep the interface and variable name consistent with the original book while writing idiomatic Python code.

Install

# pip install algs4

from algs4 import Stack

Index

License

This code is released under MIT.

Contribute to this repository

Issue reports and code fixes are welcome. please follow the same style as the code in the repository and add test for your code.

contributing guide

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

algs4-1.0.1.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

algs4-1.0.1-py3.9.egg (146.7 kB view details)

Uploaded Source

File details

Details for the file algs4-1.0.1.tar.gz.

File metadata

  • Download URL: algs4-1.0.1.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for algs4-1.0.1.tar.gz
Algorithm Hash digest
SHA256 adbcfec2408ff8df8d7aa390727e0fe17c7151e32c2f14c65fa120dfa5773d16
MD5 5af615798dd96d5ada39674e1ff7b1f4
BLAKE2b-256 0f7d0334faf5fbd7d4e5e856f3a7d0904cfe155df31723ca993c9009bafbf738

See more details on using hashes here.

File details

Details for the file algs4-1.0.1-py3.9.egg.

File metadata

  • Download URL: algs4-1.0.1-py3.9.egg
  • Upload date:
  • Size: 146.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for algs4-1.0.1-py3.9.egg
Algorithm Hash digest
SHA256 206dc25e4e148dabb705c2741e7d63c750271b860e5a55f08a575e905e9d2466
MD5 b2c4d510a2e72f3d1ed1d42b829d3fce
BLAKE2b-256 df9e701cbfe0c5351a4277004c9d7bd5ad10e0d57f08798a4a46473a580a9c0f

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