Skip to content

Library of popular algorithms implemented in a parallel way

License

Notifications You must be signed in to change notification settings

KirovVerst/qparallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QParallel

Library of popular algorithms implemented in a parallel way

CI status coveralls Package license

Requirements

Python 3.6

Install

(venv)$ pip install -r requirements.txt

Examples

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)

Test

(venv)$ flake8
(venv)$ py.test

Licensing

The code in this project is licensed under MIT license.

Releases

No releases published

Packages

No packages published

Languages