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

Uploaded Source

Built Distribution

seanalgorithms4-0.3-py3-none-any.whl (345.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seanalgorithms4-0.3.tar.gz
  • Upload date:
  • Size: 223.3 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.3.tar.gz
Algorithm Hash digest
SHA256 6c4e398167a4e6faa6ed6c6dbd6806518c4e7d8cfd61ec0fa4988ee723a9231a
MD5 81dd4d8c025e0b689dea0f65039a3919
BLAKE2b-256 db99073d1746491cc596405fad5e193ade5f805ad92aacc06265fcb17a1c9471

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seanalgorithms4-0.3-py3-none-any.whl
  • Upload date:
  • Size: 345.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c963844a4b23409c1c0e4835e5c2b7ac5fa7e19b87d8932abc470c2d34d65d23
MD5 f729999a5d0d71e7bc74abb710000d74
BLAKE2b-256 255058b00e15e9ff1bd896f619c826bc9874ed8b24f6279883230ed3eede7286

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