Skip to main content

Python sorting and searching algorithms

Project description

Python sorting/searching algorithms

The algorithms3x is a python package with 5 sorting/searching algorithms. The package would keep updating as python itself updates to higher versions.

It contains the following algorithms:

  • Selection sort
  • Bubble sort
  • Linear search
  • Binary search
  • Merge sort

Installation

If not already install pip

Install the package with pip or pip3:

pip install python-algorithms-3x

Usage

Example:

from superalgo.search import linear_search
linear_search([1, 2, 3], 4)

Output:

False
from superalgo.sort import merge_sort
print(merge_sort([4, 1, 2, 3]))

Output:

[1, 2, 3, 4]

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

superalgo-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

superalgo-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superalgo-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 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.9.4

File hashes

Hashes for superalgo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a5b4612465f4d1ae9507063e90ae15182d0bb293b1d050e923474db4c9e28aa4
MD5 be36caf334e62774d66f8af786b27bfc
BLAKE2b-256 13a94cfcafe3390a7fc816ccee2c2422143ffb326f3df5438c8eae50679cb55c

See more details on using hashes here.

File details

Details for the file superalgo-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: superalgo-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.9.4

File hashes

Hashes for superalgo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9eef9b55352836e8f5c086c373fb7a13e4a01b6cd0352d632512e7b88e471f0c
MD5 3e087dfb319a15f20473b182ab639ef5
BLAKE2b-256 2512b9720713a553daedea0532a08c68055cbc91d90270630799d7611bbecbc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page