========
algopack
Implementation of various common CS algorithms in Cython
Usage
Installation
.. code-block:: shell
$ pip install algopack
Examples
Sorting:
.. code-block:: python3
from algopack import sort
my_array = [10, 0, 5, 15, -5]
sorted_array = sort.bubble(my_array)
print(sorted_array)
# [-5, 0, 5, 10, 15]
Testing
Clone the repository::
$ git clone https://github.com/divykj/algopack.git
$ cd algopack
Install requirements::
$ pip install -r requirements.txt
$ pip install -r requirements_dev.txt
Run tests::
$ doit tests
Modules
sort <algopack/sort.pyx>
_
bubble <algopack/sort.pyx#L2-L18>
_bucket <algopack/sort.pyx#L22-L38>
_cocktail_shaker <algopack/sort.pyx#L42-L64>
_comb <algopack/sort.pyx#L68-L90>
_counting <algopack/sort.pyx#L94-L124>
_gnome <algopack/sort.pyx#L128-L139>
_heap <algopack/sort.pyx#L143-L175>
_insertion <algopack/sort.pyx#L179-L196>
_merge <algopack/sort.pyx#L200-L238>
_pancake <algopack/sort.pyx#L242-L255>
_quick <algopack/sort.pyx#L259-L287>
_radix <algopack/sort.pyx#L291-L315>
_selection <algopack/sort.pyx#L319-L335>
_shell <algopack/sort.pyx#L339-L358>
_