Getting Started
Installation
Stable release
To install artific, run this command in your terminal
pip install artific
This is the preferred method to install artific, as it will always install the most recent stable release.
If you don't have pip installed, this Python installation guide can guide
you through the process.
Algorithms
Sorting
Bubblesort
from artific import BubbleSort
arr = [90,6,2,55,67,2,0,12,92,5,76,2,9,3]
arr = BubbleSort(arr)
arr.visualize()
print(arr)
Output
[0, 2, 2, 2, 3, 5, 6, 9, 12, 55, 67, 76, 90, 92]
The code above will generate the following GIF
Insertionsort
from artific import InsertionSort
arr = [90,6,2,55,67,2,0,12,92,5,76,2,9,3]
arr = InsertionSort(arr)
arr.visualize()
print(arr)
Output
[0, 2, 2, 2, 3, 5, 6, 9, 12, 55, 67, 76, 90, 92]
The code above will generate the following GIF
Heapsort
from artific import HeapSort
arr = [90,6,2,55,67,2,0,12,92,5,76,2,9,3]
arr = HeapSort(arr)
arr.visualize()
print(arr)
Output
[0, 2, 2, 2, 3, 5, 6, 9, 12, 55, 67, 76, 90, 92]
The code above will generate the following GIF
Searching
Linear search
from artific import LinearSearch
arr = [90,6,2,55,67,2,0,12,92,5,76,2,9,3]
obj = LinearSearch(arr,1)
obj.visualize()
print(obj)
Output
3
The code above will generate the following GIF
Linear search
from artific import BinarySearch
arr = [0, 2, 2, 2, 3, 5, 6, 9, 12, 55, 67, 76, 90, 92]
obj = LinearSearch(arr,55)
obj.visualize()
print(obj)
Output
9
The code above will generate the following GIF
TODO
- Searching
- Graph Algorithms
- Trees
Acknowledgments
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Metadata
Release files for artific 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| artific-0.0.13.tar.gz | 2.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| artific-0.0.13-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 2.8 MB
Release files / artific-0.0.13.tar.gz
| Download URL | artific-0.0.13.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b30a255d373235728c95cc414be97c8d8de4967cb4174f9b9b373ba41bb0fed
|
|
BLAKE2b-256 checksum How to use checksums |
a95ebcd154de6fc98a6eaeb1dcd818e0a7ecaa6e2c922215feac1c29dae7ced4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / artific-0.0.13-py2.py3-none-any.whl
| Download URL | artific-0.0.13-py2.py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ca5543f5d79c82cc2a8c6cab727b15276d4b9844c2863a14ed63ba6984dbd028
|
|
BLAKE2b-256 checksum How to use checksums |
dda84d613ad32bfa9ea68ac75d65173c93bf273d92efa2c7d1a3661389aa0a3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|