{"id":37073721,"url":"https://github.com/jesperbry/algo","last_synced_at":"2026-01-14T08:39:22.297Z","repository":{"id":57409655,"uuid":"114566744","full_name":"JesperBry/algo","owner":"JesperBry","description":":crocodile: Algo - A package with the most common sorting algorithms. All algorithms are based on the book; Introduction to algorithms by Cormen.","archived":false,"fork":false,"pushed_at":"2019-02-16T19:42:45.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-22T02:35:27.609Z","etag":null,"topics":["algorithms","common-sorting-algorithms","crocodile","package","pip","pip3","python","python-module","python-package","sorting-algorithms"],"latest_commit_sha":null,"homepage":"https://jesperbry.github.io/algo/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JesperBry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-17T20:35:06.000Z","updated_at":"2021-08-29T20:57:45.000Z","dependencies_parsed_at":"2022-08-24T18:51:14.818Z","dependency_job_id":null,"html_url":"https://github.com/JesperBry/algo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JesperBry/algo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JesperBry%2Falgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JesperBry%2Falgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JesperBry%2Falgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JesperBry%2Falgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JesperBry","download_url":"https://codeload.github.com/JesperBry/algo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JesperBry%2Falgo/sbom","scorecard":{"id":72323,"data":{"date":"2025-08-11","repo":{"name":"github.com/JesperBry/algo","commit":"18653cdca8099a003ccc5b9ea046bb098812b97b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-15T04:05:21.234Z","repository_id":57409655,"created_at":"2025-08-15T04:05:21.234Z","updated_at":"2025-08-15T04:05:21.234Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["algorithms","common-sorting-algorithms","crocodile","package","pip","pip3","python","python-module","python-package","sorting-algorithms"],"created_at":"2026-01-14T08:39:21.640Z","updated_at":"2026-01-14T08:39:22.289Z","avatar_url":"https://github.com/JesperBry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \n  \u003cimg src=\"https://github.com/JesperBry/algo/blob/master/icon/Logo.png\" width=\"400\" height=\"150\"\u003e\n\u003c/p\u003e\n\n#\n\n![:crocodile:](https://www.emojibase.com/resources/img/emojis/hangouts/1f40a.png) \n\nA Python package with the most common sorting algorithms.\n\nAll algorithms are based on the book: Introduction to algorithms by Cormen.\n\nalgo is based on the repo: [Algorithms from course TDT4120](https://github.com/JesperBry/-course-TDT4120---Algorithms)\n\n| Algorithm             | WC             | AC/E      | Stable?   |\n| --------------------- |:--------------:| ---------:| ---------:|\n| [INSERTION-Sort](https://github.com/JesperBry/-course-TDT4120---Algorithms#insertion-sort)              | Θ(n^2)         | Θ(n^2)    | Yes |\n| [MERGE-Sort](https://github.com/JesperBry/-course-TDT4120---Algorithms#merge-sort)                      | Θ(n lg n)        | Θ(n lg n)   | Yes |\n| [Binary search](https://github.com/JesperBry/-course-TDT4120---Algorithms#binary-search)                | Θ(lg n)         | Θ(lg n)    | - |\n| [Quicksort](https://github.com/JesperBry/-course-TDT4120---Algorithms#quicksort)                        | Θ(n^2)         | Θ(n lg n)*  | Usually not*** |\n| [Randomized-Quicksort](https://github.com/JesperBry/-course-TDT4120---Algorithms#randomized-quicksort)  | O(n lg n)        | O(n lg n)   | Usually not*** |\n| [Counting-Sort](https://github.com/JesperBry/-course-TDT4120---Algorithms#counting-sort)                | Θ(n+k)         | Θ(n+k)    | Yes |\n| [Radix-Sort](https://github.com/JesperBry/-course-TDT4120---Algorithms#radix-sort)                      | Θ(d(n+k))      | Θ(d(n+k)) | Yes**** |\n| [Bucket-Sort](https://github.com/JesperBry/-course-TDT4120---Algorithms#bucket-sort)                    | Θ(n^2)         | Θ(n)**    | Yes |\n| [Heap-Sort](https://github.com/JesperBry/-course-TDT4120---Algorithms#heap-sort)                        | O(n lg n)        | O(n lg n)   | No |\n\n*Expected, Randomized-Quicksort\n\n**Average-case\n\n***Most quicksort implementations are not stable, though stable implementations do exist.\n\n****LSD requires stability, MSD does not\n\n## Web-page\nhttps://jesperbry.github.io/algo/\n\n## Getting Started\n\n### Installing\n\n```\npip install algo\n```\n\n### Get started\n\n```python\n# -*- coding: utf-8 -*-\n\nimport algo.algo as algo\n\nalgo.help()\n\nA = [27, 4, 15, 9, 110, 0, 13, 25, 1, 17, 802, 66, 25, 45, 97, 9]\n\nalgo.mergeSort(A, 0, len(A)-1)\nprint(A)\n```\n\nResult:\n```\n-- List of function arguments --\nA = list/array\np = start index (0)\nr = end index (len(A) - 1)\nB = min value of A (min(A))\nradix = Base of the number system or max value of A\nv = search value (bisect)\n\nAll algorithms are based on the book; Introduction to algorithms by Cormen\n\n[0, 1, 4, 9, 9, 13, 15, 17, 25, 25, 27, 45, 66, 97, 110, 802]\n```\n\n```python\n# List all methods:\nhelp(algo) or dir(algo)\n```\n\n## Built With\n* [Python 3.5.2](https://www.python.org/)\n\n## License\n[LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesperbry%2Falgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesperbry%2Falgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesperbry%2Falgo/lists"}