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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hammuon-0.1.11.tar.gz.
File metadata
- Download URL: hammuon-0.1.11.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.11.0-44-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c72581845baa1a07e6a3d8ae322a662b22b61ac6df0df1f0917476fb0015efe
|
|
| MD5 |
e305647694d95974481d807dc88d10f4
|
|
| BLAKE2b-256 |
18a17873c0811a0aafba12dc81fcdea75c7653e2c04c817c5f3da64e81a5af3d
|
File details
Details for the file hammuon-0.1.11-py3-none-any.whl.
File metadata
- Download URL: hammuon-0.1.11-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.11.0-44-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
156743564ccde90b4d8a186449486c9de949d0ca4818b1a162e9c5b05fdf3964
|
|
| MD5 |
bfd6e5d9a861d7237893b3cd821ee043
|
|
| BLAKE2b-256 |
c8c2d61d1db69958b442fa217f550650485db46dde90ffc1fd2ef12c9d9a4ab1
|