{"id":23046806,"url":"https://github.com/0xnu/phtree","last_synced_at":"2025-09-23T04:42:58.967Z","repository":{"id":231628594,"uuid":"782267394","full_name":"0xnu/phtree","owner":"0xnu","description":"PH-tree (Permutation Hierarchical Tree) implementation in Go.","archived":false,"fork":false,"pushed_at":"2024-04-05T02:42:50.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T20:46:58.769Z","etag":null,"topics":["golang","high-dimensional","phtree","sparse"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xnu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["0xnu"]}},"created_at":"2024-04-05T00:41:30.000Z","updated_at":"2025-01-13T21:32:56.000Z","dependencies_parsed_at":"2024-04-05T02:09:25.671Z","dependency_job_id":"75977e07-0906-422c-bf95-5f2f25bd499c","html_url":"https://github.com/0xnu/phtree","commit_stats":null,"previous_names":["0xnu/phtree"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xnu/phtree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fphtree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fphtree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fphtree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fphtree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xnu","download_url":"https://codeload.github.com/0xnu/phtree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fphtree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276518811,"owners_count":25656497,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","high-dimensional","phtree","sparse"],"created_at":"2024-12-15T22:29:21.090Z","updated_at":"2025-09-23T04:42:58.932Z","avatar_url":"https://github.com/0xnu.png","language":"Go","readme":"## phtree\n\n[![Release](https://img.shields.io/github/release/0xnu/phtree.svg)](https://github.com/0xnu/phtree/releases/latest)\n[![Go Report Card](https://goreportcard.com/badge/github.com/0xnu/phtree)](https://goreportcard.com/report/github.com/0xnu/phtree)\n[![Go Reference](https://pkg.go.dev/badge/github.com/0xnu/phtree.svg)](https://pkg.go.dev/github.com/0xnu/phtree)\n[![License](https://img.shields.io/github/license/0xnu/phtree)](/LICENSE)\n\n[PH-tree](https://en.wikipedia.org/wiki/PH-tree) (Permutation Hierarchical Tree) implementation in Go.\n\n### Features\n\n- Insertion and search operations for multi-dimensional keys\n- Removal of key-value pairs from the tree\n- Configurable maximum depth of the tree\n- Thread-safe concurrent access to the tree\n- Efficient handling of high-dimensional and sparse data\n\n### Installation\n\nInstall the `phtree` package in your `Go` project by installing it with the following command:\n\n```shell\ngo get github.com/0xnu/phtree\n```\n\n### Usage\n\nHere's a basic example of how to use the `phtree` package:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/0xnu/phtree\"\n)\n\nfunc main() {\n\ttree := phtree.New(phtree.WithMaxDepth(8))\n\n\ttree.Insert([]uint64{0, 1, 2}, \"apple\")\n\ttree.Insert([]uint64{0, 1, 3}, \"banana\")\n\n\tvalue := tree.Search([]uint64{0, 1, 2})\n\tfmt.Println(value) // Output: \"apple\"\n\n\ttree.Remove([]uint64{0, 1, 3})\n}\n```\n\nCheck out the [examples](./examples/) directory for more detailed usage and examples.\n\n### Testing\n\nTo run the tests for the PH-Tree package, use the following command:\n\n```sh\ngo test\n```\n\n### Performance\n\nTo run the benchmarking code, you can use the following command:\n\n```sh\ngo run benchmark/benchmark.go\n```\n\n### License\n\nThis project is licensed under the [MIT License](./LICENSE).\n\n### Copyright\n\n(c) 2024 [Finbarrs Oketunji](https://finbarrs.eu).","funding_links":["https://github.com/sponsors/0xnu"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xnu%2Fphtree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xnu%2Fphtree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xnu%2Fphtree/lists"}