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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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