{"id":19782363,"url":"https://github.com/infinitifall/natlibc","last_synced_at":"2025-02-28T06:43:13.029Z","repository":{"id":214629110,"uuid":"735238030","full_name":"Infinitifall/NATlibc","owner":"Infinitifall","description":"A tiny standalone library for trees in C. Zero dependency, extensively documented, \u003c 1000 SLOC.","archived":false,"fork":false,"pushed_at":"2024-01-01T08:25:16.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T02:32:38.485Z","etag":null,"topics":["binary-tree","binary-trees","data-structures","n-ary-tree","tree","tree-structure","trees"],"latest_commit_sha":null,"homepage":"","language":"C","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/Infinitifall.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-24T07:03:15.000Z","updated_at":"2024-01-26T15:21:17.000Z","dependencies_parsed_at":"2024-01-01T09:41:49.161Z","dependency_job_id":"3400f976-9760-4c9e-9eb3-24f6ffeab4fc","html_url":"https://github.com/Infinitifall/NATlibc","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"355d92ef5afab2d213be89b6687d37aa27d05eb5"},"previous_names":["infinitifall/n-ary-trees"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infinitifall%2FNATlibc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infinitifall%2FNATlibc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infinitifall%2FNATlibc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infinitifall%2FNATlibc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Infinitifall","download_url":"https://codeload.github.com/Infinitifall/NATlibc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241113260,"owners_count":19911857,"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":["binary-tree","binary-trees","data-structures","n-ary-tree","tree","tree-structure","trees"],"created_at":"2024-11-12T06:04:58.268Z","updated_at":"2025-02-28T06:43:12.995Z","avatar_url":"https://github.com/Infinitifall.png","language":"C","readme":"# NATlibc (n-ary trees)\n\nA tiny standalone library for trees in C.\n\n- Zero-dependency\n- Extensively documented\n- \u003c 1000 SLOC\n\n\n|Progress   |Module                 |Header file                    |\n|-----------|-----------------------|-------------------------------|\n|✅         |Records                | [record.h](./record.h)        |\n|🚧         |Binary trees           | [bt.h](./bt/bt.h)             |\n|🚧         |Binary search trees    | [bst.h](./bt/bst/bst.h)       |\n|❌         |AVL trees              | [avl.h](./bt/bst/avl/avl.h)   |\n|❌         |N-ary trees            | -                             |\n|❌         |Common binary tree algorithms      | -                             |\n\n\n## Install\n\n```bash\n# clone repo\ngit clone https://github.com/Infinitifall/n-ary-trees\ncd n-ary-trees\n\n# make\ncd build\nmake\n```\n\n## Use\n\nRun the code in [example.c](./example.c), which defines a small tree and prints it\n\n```bash\n# run example\ncd build\n./example\n```\n\n```\nNote: node 0 at 0x55bb67ced4b0 has no parents, setting as root node.\n\n|      |      |______3,33\n|      |______2,7\n|______1,5\n0,2\n|      |______5,8\n|______4,19\n|      |      |______7,11\n|      |______6,9\n|      |      |______8,14\n\n3: 33\n2: 7\n1: 5\n0: 2\n5: 8\n4: 19\n7: 11\n6: 9\n8: 14\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitifall%2Fnatlibc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitifall%2Fnatlibc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitifall%2Fnatlibc/lists"}