AlgoSolver
Overview
My goal is to develop a library in python to help programmers solve a variety of algorithms style questions. For example, with Dynamic Programming problems the main things we need to know are if we are using a 1D of 2D array, what the base case is, and what the recurrence relation is. With this in mind, we can create multiple templates for different types of questions to take out the implementation process. I wanted to have a special focus on graph algorithms for the library. This will allow programmers to spend more of their time thinking about high level design questions.
Installation
To install, run the following:
pip install AlgoSolver
Usage
Searching
The following code will find the index of a given number 'num' in an array 'arr' .
arr: An array you are searching through.
num: A number you are searching for.
from algo_solver import searching as s
index = s.binary_search(arr = [1,5,3,2], num = 3)
print(index)
Graphs
The following code will give a set of all nodes in the graph through bfs. It is given a graph 'graph' and starting point 'start'.
graph: A graph given as an input in the form: {x: [y]], [y: [z]}, ect;
start: A node which you are starting at.
from algo_solver import graphs as g
index = g.bfs(graph = {2: [3], 3: []} start = 2)
print(index)
Metadata
Release files for AlgoSolver 0.1.4
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 |
|---|---|---|---|---|
| AlgoSolver-0.1.4.tar.gz | 32.8 kB | Without provenance | Details for AlgoSolver-0.1.4.tar.gz |
Release files / AlgoSolver-0.1.4.tar.gz
| Download URL | AlgoSolver-0.1.4.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84c0ae69efbcc3418c098ce4614e1f2256407ebbaf5961a3c76cba3d1f1d33be
|
|
BLAKE2b-256 checksum How to use checksums |
d09ae3bc622ff5a762ca59245696bb9151110f57a9210f050a6d592ff623b52a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for AlgoSolver 0.1.4
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.