Skip to main content

A Python implementation library for book algs4

Project description

PyPI version

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.stack 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.3.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

algs4-1.0.3-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: algs4-1.0.3.tar.gz
  • Upload date:
  • Size: 34.4 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.3.tar.gz
Algorithm Hash digest
SHA256 1e5758aee288e5375838cfd5d4ee95034234ed5c3569c52608d9f4944db2a8e9
MD5 b73601ed39432a1da08559df940cd812
BLAKE2b-256 9a0a9cda86174ee1ab8c6dc19a62a7641c092288460cbc2e087ec0277e78cf42

See more details on using hashes here.

File details

Details for the file algs4-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: algs4-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 58.6 kB
  • Tags: Python 3
  • 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86c32df7895c652b6fb6b06540a7ff4671ee3ae395265e68d2c7aab3c383fa31
MD5 69a5171e37237039c31f75070dfcc014
BLAKE2b-256 9e529a02176f038eec4a85b6576603706af2ff8990455f77d95335ccd32e2bbe

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