{"id":202776,"name":"lca","ecosystem":"hackage","description":"This package provides a reference implementation of my skew binary random access algorithm for performing an online lowest common ancestor search (and online level ancestor search) in logarithmic time without preprocessing. This improves the previous known asymptotic bound for both of these problems from O(h) to O(log h), where h is the height of the tree. Mostly importantly this bound is completely independent of the width or overall size of the tree, enabling you to calculate lowest common ancestors in a distributed fashion with good locality.\n\nWhile offline algorithms exist for both of these algorithms that that provide O(1) query time, they all require at least O(n) preprocessing, where n is the size of the entire tree, and so are less suitable for LCA search in areas such as revision control where the tree is constantly updated, or distributed computing where the tree may be too large to fit in any one computer's memory.\n\nSlides are available from\n\nhttp://www.slideshare.net/ekmett/skewbinary-online-lowest-common-ancestor-search","homepage":"http://github.com/ekmett/lca/","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/ekmett/lca","keywords_array":["algorithms","bsd3","data-structures","library","Propose Tags"],"namespace":null,"versions_count":10,"first_release_published_at":"2012-05-17T22:03:41.000Z","latest_release_published_at":"2018-02-07T01:25:58.000Z","latest_release_number":"0.3.1","last_synced_at":"2026-06-12T16:02:43.575Z","created_at":"2022-04-05T22:12:15.264Z","updated_at":"2026-06-12T16:02:43.575Z","registry_url":"https://hackage.haskell.org/package/lca","install_command":"cabal install lca","documentation_url":null,"metadata":{},"repo_metadata":{"id":3320366,"uuid":"4363381","full_name":"ekmett/lca","owner":"ekmett","description":"Improves the known complexity of online lowest common ancestor search to O(log h) persistently, and without preprocessing","archived":false,"fork":false,"pushed_at":"2022-03-19T14:03:42.000Z","size":162,"stargazers_count":24,"open_issues_count":3,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-08T20:16:01.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/lca","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"briandconnelly/BEACONToolkit","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekmett.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-05-17T21:52:23.000Z","updated_at":"2022-05-20T13:26:53.000Z","dependencies_parsed_at":"2022-08-20T10:10:53.842Z","dependency_job_id":null,"html_url":"https://github.com/ekmett/lca","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekmett","download_url":"https://codeload.github.com/ekmett/lca/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214619428,"owners_count":15759737,"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"},"owner_record":{"login":"ekmett","name":"Edward Kmett","uuid":"304657","kind":"user","description":"I write a lot of Haskell.","email":"","website":"http://comonad.com","location":"Farmington Hills, MI","twitter":"kmett","company":"Groq","icon_url":"https://avatars.githubusercontent.com/u/304657?v=4","repositories_count":298,"last_synced_at":"2023-04-10T02:32:00.294Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/ekmett","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-02T16:37:43.210Z","updated_at":"2023-04-10T02:32:01.377Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekmett","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekmett/repositories"},"tags":[{"name":"v0.4","sha":"1bf6772b7c87067b62605efa906e34c7d00729ec","kind":"commit","published_at":"2021-02-17T23:48:58.000Z","download_url":"https://codeload.github.com/ekmett/lca/tar.gz/v0.4","html_url":"https://github.com/ekmett/lca/releases/tag/v0.4","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.4/manifests"},{"name":"v0.3.1","sha":"13966e9a08a6a983384455f3ab32a1cf77fbe87f","kind":"commit","published_at":"2018-02-07T01:10:46.000Z","download_url":"https://codeload.github.com/ekmett/lca/tar.gz/v0.3.1","html_url":"https://github.com/ekmett/lca/releases/tag/v0.3.1","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.3.1/manifests"},{"name":"v0.3","sha":"aedb5bba4c876cf4a183b0542efb10d26694a338","kind":"tag","published_at":"2015-03-08T10:03:48.000Z","download_url":"https://codeload.github.com/ekmett/lca/tar.gz/v0.3","html_url":"https://github.com/ekmett/lca/releases/tag/v0.3","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.3/manifests"},{"name":"v0.2.4","sha":"4222869268ad546d30efe1f0641b55058935c836","kind":"tag","published_at":"2013-09-06T21:18:24.000Z","download_url":"https://codeload.github.com/ekmett/lca/tar.gz/v0.2.4","html_url":"https://github.com/ekmett/lca/releases/tag/v0.2.4","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.2.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.2.4/manifests"},{"name":"v0.2.3","sha":"f3128fee4c3bb1f4801ca89045979c9dae00fcf1","kind":"tag","published_at":"2013-05-08T23:02:09.000Z","download_url":"https://codeload.github.com/ekmett/lca/tar.gz/v0.2.3","html_url":"https://github.com/ekmett/lca/releases/tag/v0.2.3","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.2.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/tags/v0.2.3/manifests"}]},"repo_metadata_updated_at":"2024-08-09T04:56:39.546Z","dependent_packages_count":0,"downloads":9413,"downloads_period":"total","dependent_repos_count":141,"rankings":{"downloads":16.507487990957898,"dependent_repos_count":4.051992088160497,"dependent_packages_count":19.27098050296694,"stargazers_count":15.518508053122352,"forks_count":19.9491381746256,"docker_downloads_count":null,"average":15.059621361966657},"purl":"pkg:hackage/lca","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/hackage/lca","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/hackage/lca","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/hackage/lca/dependencies","status":null,"funding_links":[],"critical":false,"issue_metadata":{"last_synced_at":"2024-06-28T11:23:14.890Z","issues_count":4,"pull_requests_count":3,"avg_time_to_close_issue":257846.0,"avg_time_to_close_pull_request":6222.666666666667,"issues_closed_count":1,"pull_requests_closed_count":3,"pull_request_authors_count":3,"issue_authors_count":3,"avg_comments_per_issue":2.75,"avg_comments_per_pull_request":2.0,"merged_pull_requests_count":3,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekmett%2Flca/issues","maintainers":[{"login":"ekmett","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/ekmett"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/lca/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/lca/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/lca/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/lca/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/lca/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/lca/codemeta","maintainers":[{"uuid":"ryanglscott","login":"ryanglscott","name":null,"email":null,"url":null,"packages_count":152,"html_url":"https://hackage.haskell.org/user/ryanglscott","role":null,"created_at":"2022-11-14T18:45:32.601Z","updated_at":"2022-11-14T18:45:32.601Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/maintainers/ryanglscott/packages"},{"uuid":"EdwardKmett","login":"EdwardKmett","name":null,"email":null,"url":null,"packages_count":136,"html_url":"https://hackage.haskell.org/user/EdwardKmett","role":null,"created_at":"2022-11-14T18:45:32.592Z","updated_at":"2022-11-14T18:45:32.592Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/maintainers/EdwardKmett/packages"}]}