Skip to main content

Python package containing implementation of all sorting algorithms

Project description

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description-Content-Type: UNKNOWN
Description: [![Build Status](https://travis-ci.org/sannykr/allsortalgo.svg?branch=master)](https://travis-ci.org/sannykr/allsortalgo)

Sorting Algorithms
========================

This project includes implementations of the following sorting algorithms:

1. Bubble sort: In bubble sort, we repeatedly swap the adjancent elements if they are in wrong order. It's time complexity is O(N*N)

2. Insertion sort: In insertion sort, we start with a sub-list of size 2, and insert the right-most elements to the proper location
in such a way that the list remains sorted. It's time complexity is O(N*N)

3. merge sort: In merge sort, we use divide and conquer strategy and sort the sublists and merge them recursively. It's time complexity
is O(N*logN)

I will be adding more sorting algorithms to this project.

---------------

Platform: UNKNOWN
Classifier: Development Status :: 1
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering

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

allsortalgo-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distributions

allsortalgo-0.0.1-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2 Python 3

allsortalgo-0.0.1-py2.7.egg (6.2 kB view details)

Uploaded Source

File details

Details for the file allsortalgo-0.0.1.tar.gz.

File metadata

  • Download URL: allsortalgo-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for allsortalgo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d82ef2f13b559916400623039c8bc7cfe4808d57633fbe55b4b546e214ce23ae
MD5 211d8f77bd9eca604f41423521f87908
BLAKE2b-256 3f9dba20cedcfaf39137e5c147892b7240917c3b80e47bbd533e783527b5aedc

See more details on using hashes here.

File details

Details for the file allsortalgo-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for allsortalgo-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3596eb127af79a985cd8928bb818f2a379173743565ebdac351f35fbdabb8d2
MD5 c5445b8755a250fe2668dcc2cf305796
BLAKE2b-256 ad59cd1ab3f618631f694f70cef9c7d600584a3c0aba69792952b2c32fcc37cd

See more details on using hashes here.

File details

Details for the file allsortalgo-0.0.1-py2.7.egg.

File metadata

File hashes

Hashes for allsortalgo-0.0.1-py2.7.egg
Algorithm Hash digest
SHA256 73c1ab2f19bd852e0f1e1107cf5c7852053942c9c79d43590ef611697e88d82e
MD5 eae8d37bce826b942634b32ffb7f4aef
BLAKE2b-256 b8e5b3d7bc254b4f439dab975994e98551c6496b8c7748fbe8d5e270f31cdef2

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