Skip to main content

Parallel Implementations of Algorithms

Project description

ParAlg

Requirements

Python 3.7+

Install

$ pip install paralg

Examples

Sorting algorithms

from random import random
from paralg.sorting import MergeSorting

array = [random() for _ in range(1000)]

assert MergeSorting(ascending=True).sort(array, cpu_count=2) == sorted(array)
assert MergeSorting(ascending=False).sort(array, cpu_count=2) == sorted(array, reverse=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ParAlg, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size ParAlg-0.0.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View
Filename, size ParAlg-0.0.1-py3-none-any.whl (7.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page