Skip to main content

Python implementation of data structures and algorithms

Project description

algos-in-py

Sorting

  1. Bubble Sort [x]
  2. Selection Sort [x]
  3. Insertion Sort [x]
  4. Quick Sort [x]
  5. Merge Sort [x]
  6. Heap Sort [x]
  7. Counting Sort [x]
  8. Radix Sort [x]
  9. Bucket Sort [x]

Searching

  1. Linear Search [ ]
  2. Binary Search [x]
  3. Ternary Search [ ]
  4. Jump Search [ ]
  5. Interpolation Search [ ]
  6. Exponential Search [ ]

Data Structure

  1. Array
  2. Stack
  3. Queue [x]
  4. Linked List

String

  1. Naive Pattern Searching
  2. KMP
  3. Rabin-Karp
  4. Finite Automata
  5. Suffix Array
  6. Z Algorithm

Mathematics

Number Theory

  1. Fibonacci Series
  2. Palindrome Number
  3. Prime Number
  4. Finding Divisors
  5. Base Conversion
  6. Greatest Common Divisor (GCD) (Euclidean method)
  7. Lowest Common Multiple (LCM)
  8. Number of Digits of a Factorial
  9. Phi Function (Euler Totient)
  10. Extended Euclidean
  11. Prime Factorization
  12. Modular Exponentiation

Tree

  1. Binary Tree
  2. Binary Search Tree
  3. Red-black Tree
  4. AVL Tree
  5. Segment Tree [x]
  6. Binary Index Tree [x]
  7. Trie

Graph

  1. Breadth First Search (BFS) [x]
  2. Depth First Search (DFS) [x]
  3. Shortest Path from source to all vertices Dijkstra
  4. Shortest Path from every vertex to every other vertex Floyd Warshall
  5. Minimum Spanning tree Prim
  6. Minimum Spanning tree Kruskal
  7. Topological Sort [x]
  8. Johnson’s algorithm
  9. Articulation Points (or Cut Vertices) in a Graph
  10. Strongly Connected Components (SCC)
  11. Kosaraju’s Algorithm
  12. Bellman-Ford

Dynamic Programming

  1. Recursive vs Iteration
  2. Longest Increasing/Decreasing Subsequence (LIS/LDS)
  3. Longest Common Subsequence (LCS)
  4. Edit Distance
  5. Traveling Salesman
  6. Coin Change

Greedy Techniques

  1. Maximum Sum in Subarray (1D)
  2. Maximum Sum in Rectangle (2D)

Project details


Download files

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

Source Distribution

algosinpy-0.1.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algosinpy-0.1.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file algosinpy-0.1.0.tar.gz.

File metadata

  • Download URL: algosinpy-0.1.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for algosinpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 372a44728a5a93c31788cf30b29b61d9050fc2a24401d12c50125f7e02585d6d
MD5 dca4ab5ccca9cd389e54e449ffa7c0e6
BLAKE2b-256 0ab7560735c52c259238dab630e7198991e4ee25f6d1c573d1fb46f151bbcf77

See more details on using hashes here.

File details

Details for the file algosinpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: algosinpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for algosinpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 268a13b775aec604701c312282418f1472143c38ba8c539e2dd98b6b06e8f9a6
MD5 2f3f97de9879ab416eeca88cd97b2ed5
BLAKE2b-256 909e2a5ddd57492d183ca37895ca2ce6270b5c53cb5262d3f402bf63ea0f6311

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page