Skip to main content

Python algorithms4

Project description

SEANLAB Algorithms4 Pythonic Data Structures and Algorithms

Minimal and clean example implementations of data structures and algorithms in Python 3.

Contributing

Thanks for your interest in contributing! There are many ways to contribute to this project. Get started here

Tests

Use unittest

For running all tests write down:

$ python3 -m unittest discover tests

For running some specific tests you can do this as following (Ex: sort):

$ python3 -m unittest tests.test_sort

Use pytest

For running all tests write down:

$ python3 -m pytest tests

Install

If you want to use the API algorithms in your code, it is as simple as:

$ pip3 install seanalgorithms4

You can test by creating a python file: (Ex: use merge_sort in sort)

from seanalgorithms4.sort import merge_sort

if __name__ == "__main__":
    my_list = [1, 8, 3, 5, 6]
    my_list = merge_sort(my_list)
    print(my_list)

Uninstall

If you want to uninstall seanalgorithms4, it is as simple as:

$ pip3 uninstall -y seanalgorithms4

Arithmetic Analysis

Backtracking

Boolean Algebra

Ciphers

Compression

Conversions

Data Structures

Digital Image Processing

* [change contrast](https://github.com/TheAlgorithms/Python/blob/master/digital_image_processing/change_contrast.py)

Divide And Conquer

Dynamic Programming

File Transfer

Graphs

Hashes

Linear Algebra

Machine Learning

Maths

Matrix

Networking Flow

Neural Network

Other

Project Euler

Searches

Sorts

Strings

Traversals

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

seanalgorithms4-0.2.tar.gz (210.2 kB view details)

Uploaded Source

Built Distribution

seanalgorithms4-0.2-py3-none-any.whl (340.1 kB view details)

Uploaded Python 3

File details

Details for the file seanalgorithms4-0.2.tar.gz.

File metadata

  • Download URL: seanalgorithms4-0.2.tar.gz
  • Upload date:
  • Size: 210.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.1

File hashes

Hashes for seanalgorithms4-0.2.tar.gz
Algorithm Hash digest
SHA256 c4878007e7616a2525844846acf73d8400bd82ba595450a2b9d83288821d7748
MD5 5d75ba2e29e1c1e694b2b5de56dbb61b
BLAKE2b-256 a2c2ac6267f49b34ba6748379c667a4756171c30eeaa2096ece684568c861c3c

See more details on using hashes here.

File details

Details for the file seanalgorithms4-0.2-py3-none-any.whl.

File metadata

  • Download URL: seanalgorithms4-0.2-py3-none-any.whl
  • Upload date:
  • Size: 340.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.1

File hashes

Hashes for seanalgorithms4-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a575c55c48ef9bd04cad98d14ecb30672b658c4a7b21817c838376dffbb8cae
MD5 f6a86fe6f8e4b587e60a068a8c77bf6d
BLAKE2b-256 7e5b3f20dfc943a79871252136b6f3ad88c34994d1a33fb820fe1dc80a0c8582

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