{"id":13632202,"url":"https://github.com/prakhar1989/Algorithms","last_synced_at":"2025-04-18T02:32:04.255Z","repository":{"id":5888364,"uuid":"7106468","full_name":"prakhar1989/Algorithms","owner":"prakhar1989","description":":computer: Data Structures and Algorithms in Python","archived":false,"fork":false,"pushed_at":"2021-08-03T04:59:43.000Z","size":134,"stargazers_count":3060,"open_issues_count":51,"forks_count":827,"subscribers_count":146,"default_branch":"master","last_synced_at":"2025-04-06T21:11:28.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prakhar1989.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-11T05:33:04.000Z","updated_at":"2025-03-31T16:44:52.000Z","dependencies_parsed_at":"2022-08-06T19:00:58.084Z","dependency_job_id":null,"html_url":"https://github.com/prakhar1989/Algorithms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FAlgorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FAlgorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FAlgorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prakhar1989%2FAlgorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prakhar1989","download_url":"https://codeload.github.com/prakhar1989/Algorithms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804792,"owners_count":21164133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T22:02:56.079Z","updated_at":"2025-04-18T02:32:03.852Z","avatar_url":"https://github.com/prakhar1989.png","language":"Python","funding_links":[],"categories":["Python","Github Libraries"],"sub_categories":[],"readme":"Algorithms in Python\n======\n\nImplementations of a few algorithms and datastructures for fun and profit!\n\nCompleted\n---\n- Karatsuba Multiplication\n- Basic Sorting\n- Rabin-Miller primality test\n- Sieve of Eratosthenes for prime numbers\n- Binary Search\n- Counting Inversions in an array\n- Selecting ith order statistic in an array\n- Graph datastructure (directed \u0026 undirected)\n- Graph Algos\n    - Topological Sorting\n    - Shortest hops\n    - DFS\n    - BFS\n    - Connected Components\n    - Dijkstra's Shortest Path - O(mlogn)\n    - Prim's Minimum Cost Spanning Tree - O(mlogn)\n    - Kruskal's Minimum Spanning Tree - O(mlogn)\n    - Max k Clustering\n    - Bellman Ford\n    - Floyd Warshall\n    - Johnson's Algorithm\n- Heap datastructure\n\t- Max heaps\n\t- Min heaps (priority queue)\n\t- Heapsort\n- Job Scheduling\n- [UnionFind](http://en.wikipedia.org/wiki/Disjoint-set_data_structure) Data Structure\n- Binary Search Tree\n- Kandane's Algorithm\n- Knapsack Problem (0/1 and unbounded)\n- Longest Increasing Subsequence\n- Longest Common Subsequence\n- Prefix Tries\n- Stack ADT (with example problems)\n  - String Reverse\n  - Parenthesis Matching\n  - Infix to Postfix\n- Modular exponentiation\n- Modular multiplicative inverse\n\n\nTests\n---\n    python -m tests.graph_test\n    python -m tests.digraph_test\n    python -m tests.graph_algorithms_test\n    python -m tests.heap_test\n    python -m tests.unionfind_test\n    python -m tests.singly_linked_list_test\n    python -m tests.modular_exponentiation_test\n    python -m tests.modular_multiplicative_inverse_test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar1989%2FAlgorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprakhar1989%2FAlgorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar1989%2FAlgorithms/lists"}