Library of popular algorithms implemented in a parallel way
Python 3.6
(venv)$ pip install -r requirements.txt
Sorting algorithms
from random import random
from qparallel.sorting import MergeSorting
array = [random() for _ in range(100)]
assert MergeSorting(ascending=True).sort(array, cpu_count=2) == sorted(array)
assert MergeSorting(ascending=False).sort(array, cpu_count=2) == sorted(array, reverse=True)
(venv)$ flake8
(venv)$ py.test
The code in this project is licensed under MIT license.