C Algorithms Collection (algorc)
A collection of 15 essential Data Structures and Algorithms (DSA) implemented in C, packaged as a Python library for easy access.
Installation
You can install this collection on any computer using pip:
pip install algorc
Usage
Once installed, you can use the algorc command followed by the program number (1-15):
algorc 1
Or run it directly using Python:
python -m algorc 1
Available Programs
- Binary Search: Efficiently find an element in a sorted array.
- Linear Search: Simple search for an element in an array.
- Insertion Sort: Stable sorting algorithm with $O(n^2)$ complexity.
- Pattern Matching: Naive string searching implementation.
- BFS (Breadth First Search): Level-order traversal for graphs.
- DFS (Depth First Search): Recursive depth-order traversal for graphs.
- Dijkstra's Algorithm: Single-source shortest path for weighted graphs.
- Floyd Warshall Algorithm: All-pairs shortest path calculation.
- Prim's Algorithm: Finding the Minimum Spanning Tree (MST).
- Maximum (Divide & Conquer): Finding the maximum element using recursion.
- Heap Sort: Efficient comparison-based sorting using a binary heap.
- Quick Sort: Fast divide-and-conquer sorting algorithm.
- Traveling Salesperson (Greedy): A greedy approach to the TSP problem.
- N-Queens Problem: Backtracking solution for the classic puzzle.
- k-th Smallest Element: Finding the k-th smallest element in an unsorted array.
How to Run
To compile and run any program (e.g., Binary Search):
gcc c_programs/binary_search.c -o binary_search
./binary_search
(Note: On Windows, use binary_search.exe instead of ./binary_search)
Metadata
Release files for algorc 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| algorc-1.0.6.tar.gz | 8.6 kB | Without provenance | Details for algorc-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| algorc-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for algorc-1.0.6-py3-none-any.whl |
Total release size: 21.8 kB
Release files / algorc-1.0.6.tar.gz
| Download URL | algorc-1.0.6.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
223103e3390f4fa0be3be44bbbfeb5fa5fa46f1d31c91ea85376d2b9b696581a
|
|
BLAKE2b-256 checksum How to use checksums |
2ab8b6c8ebe937a54d3df87e4045e40e8a7f76ea9ecfa2d1385b36e9b5a7b6f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / algorc-1.0.6-py3-none-any.whl
| Download URL | algorc-1.0.6-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e73541e3bab814495c20de4c890ee65ad95b3dda0c1424130cc48ade39bee5c
|
|
BLAKE2b-256 checksum How to use checksums |
c8d8247421a703efa0609ab32c83c6eeeffb65b2ad556cfe84523435313acafd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for algorc 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.