{"id":22683259,"url":"https://github.com/mtchavez/trie-rb","last_synced_at":"2025-03-29T14:27:55.362Z","repository":{"id":8043371,"uuid":"9453748","full_name":"mtchavez/trie-rb","owner":"mtchavez","description":"Fredkin trie algorithm in Ruby","archived":false,"fork":false,"pushed_at":"2013-04-15T17:39:36.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T15:32:38.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/mtchavez.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":"2013-04-15T17:05:13.000Z","updated_at":"2013-09-07T16:01:57.000Z","dependencies_parsed_at":"2022-09-16T23:40:58.176Z","dependency_job_id":null,"html_url":"https://github.com/mtchavez/trie-rb","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/mtchavez%2Ftrie-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Ftrie-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Ftrie-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Ftrie-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtchavez","download_url":"https://codeload.github.com/mtchavez/trie-rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246195618,"owners_count":20738908,"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-12-09T21:11:24.174Z","updated_at":"2025-03-29T14:27:55.325Z","avatar_url":"https://github.com/mtchavez.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"trie-rb\n=======\n\n[![Build Status](https://travis-ci.org/mtchavez/trie-rb.png)](https://travis-ci.org/mtchavez/trie-rb)\n\nFredkin trie algorithm in Ruby\n\n\n## Usage\n\nInitialize a tree\n\n```ruby\ntrie = Trie.new\np trie.tree\n# {\"root\"=\u003e{}}\n```\n\nInsert some terms\n\n```ruby\n%w[to tea ten ted A in inn].each { |term| trie.insert(term) }\np trie.tree\n# {\"root\"=\u003e{\"t\"=\u003e{\"o\"=\u003e{}, \"e\"=\u003e{\"a\"=\u003e{}, \"d\"=\u003e{}, \"n\"=\u003e{}}}, \"A\"=\u003e{}, \"i\"=\u003e{\"n\"=\u003e{\"n\"=\u003e{}}}}}\n```\n\n## Tests\n\nRun tests using ```rake```\n\n## License\n\nWritten by Chavez\n\nReleased under the MIT License: http://www.opensource.org/licenses/mit-license.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtchavez%2Ftrie-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtchavez%2Ftrie-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtchavez%2Ftrie-rb/lists"}