Skip to main content

An algorithm visualization pip package for Python

Project description


Logo

An algorithm visualization pip package for Python
Explore the docs »

Table of Contents
  1. Getting Started
  2. Algorithms
  3. Notebooks
  4. TODO
  5. Acknowledgments

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.

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

artific-0.0.13.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

artific-0.0.13-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file artific-0.0.13.tar.gz.

File metadata

  • Download URL: artific-0.0.13.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for artific-0.0.13.tar.gz
Algorithm Hash digest
SHA256 3b30a255d373235728c95cc414be97c8d8de4967cb4174f9b9b373ba41bb0fed
MD5 6766905660baaa42a722e5907e05f72c
BLAKE2b-256 a95ebcd154de6fc98a6eaeb1dcd818e0a7ecaa6e2c922215feac1c29dae7ced4

See more details on using hashes here.

File details

Details for the file artific-0.0.13-py2.py3-none-any.whl.

File metadata

  • Download URL: artific-0.0.13-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for artific-0.0.13-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ca5543f5d79c82cc2a8c6cab727b15276d4b9844c2863a14ed63ba6984dbd028
MD5 a38445306df43e2660f3e26068023ccf
BLAKE2b-256 dda84d613ad32bfa9ea68ac75d65173c93bf273d92efa2c7d1a3661389aa0a3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page