Skip to main content

Basic and important data structures algorithms.

Project description

Basic Data Strcutre Algorithms

Installing

pip install hammuon

or

pip install -e git+https://github.com/mcvarer/algorithms.git#egg=hammuon

1. Quick Sort

Quick Sort is a sorting algorithm, which is commonly used in computer science. Quick Sort is a divide and conquer algorithm.

Usage

from hammuon.data_structure.quick_sort import quickSort

print(quickSort([8, 12, 55, -12]))

Output

[-12, 8, 12, 55]

2. Bubble Sort

Bubble sort is a sorting algorithm that compares two adjacent elements and swaps them until they are not in the intended order.

Usage

from hammuon.data_structure.bubble_sort import bubbleSort

print(bubbleSort([8, 12, 55, -12]))

Output

[-12, 8, 12, 55]

3. Selection Sort

Selection sort is a simple sorting algorithm.

Usage

from hammuon.data_structure.selection_sort import selectionSort

print(selectionSort([8, 12, 55, -12]))

Output

[-12, 8, 12, 55]

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

hammuon-0.1.11.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

hammuon-0.1.11-py3-none-any.whl (3.6 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