No project description provided
Project description
STALib
Standard Template and algorithms library of C++ for Python with C-Python API
Stalib Library includes complementary algotrithms and templates to Python's built-in
.
The algorithms implemented in C++ and extended to Python and compitable with Python's list
objects.
Algorithms:
Name | Type | Worst-case Performance | Module |
---|---|---|---|
Buble Sort | Sort | O(n^2) | algorithms |
Merge Sort | Sort | O(nlogn) | algorithms |
Quick Sort | Sort | O(n^2) | algorithms |
Binary Search | Search | *O(Logn) | algorithms |
*Sorted Array
Getting started
To get started, install the library with pip
pip install stalib
Example
Import the algorithms or templates:
>>> from stalib.algorithms import merge_sort
>>> iterable = [1,9,2,4]
>>> list(merge_sort(iterable))
[1, 2, 4, 9]
For the full listing of functions, see stalib
Version History
===============
.. automodule:: stalib
:noindex:
0.1.1 (2020-12-01)
-
[fix] conftest error on coverage. [Oguzhan San]
-
[fix] exluded helper function for coverage report.
-
[fix] search algo import fixes and tests.
-
[feat] Bubble search string search
-
[fix] algorithms cython script bundle together. [Oguzhan San]
-
[doc] changed to md for README and added hyperlink for algorithms.
-
[feat] Quick sort algorithm.
0.1.0 (2020-11-08)
-
[Feat] Merge sort and Docs.
-
[Fix] deleted not linking to openmp for multi-threading.
-
[Fix] coverage module files include. [Oguzhan San]
-
[Fix] setup.py readme file input path fixed. [Oguzhan San]
-
[Feat] bubble_sort algorithm externed. [Oguzhan San]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for stalib-0.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4af9db2dbbd7743755050462079c58762d5503b8fdafd4d6ba41ecf3860fa204 |
|
MD5 | ca5f49e5c2fe1280762f7bd28e14954d |
|
BLAKE2b-256 | 1e41b4490daaa86ccdbb9f6846a9e3d56d7db7c67b063a20abd449437cd5c70c |