{"id":18728805,"url":"https://github.com/rubyonworld/algorithms","last_synced_at":"2026-04-29T01:05:55.622Z","repository":{"id":174007827,"uuid":"542152884","full_name":"RubyOnWorld/algorithms","owner":"RubyOnWorld","description":"Basic Algorithms written in Ruby","archived":false,"fork":false,"pushed_at":"2022-09-27T16:37:57.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T14:26:41.584Z","etag":null,"topics":["algorithm","basic","beginner","language","ruby"],"latest_commit_sha":null,"homepage":"","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/RubyOnWorld.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-27T15:18:29.000Z","updated_at":"2022-09-27T18:20:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"834c3699-3846-46b4-a70f-078c2074c4c8","html_url":"https://github.com/RubyOnWorld/algorithms","commit_stats":null,"previous_names":["rubyonworld/algorithms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Falgorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Falgorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Falgorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Falgorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/algorithms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239599040,"owners_count":19665911,"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":["algorithm","basic","beginner","language","ruby"],"created_at":"2024-11-07T14:24:25.558Z","updated_at":"2025-11-12T05:30:19.733Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Basic Algorithms written in Ruby\n[![Build Status](https://secure.travis-ci.org/Djo/algorithms.png \"Build Status\")](http://travis-ci.org/Djo/algorithms)\n\n#### Fundamentals\n\n* [The greatest common divisor](lib/gcd.rb)\n* [Transpose of a matrix in Linear Algebra](lib/matrix.rb)\n* [Find the k-th smallest value in the array](lib/find_kth.rb)\n* [Work with a linked list](lib/linked_list.rb)\n* [Dijkstra's two-stack algorithm for expression evaluation](lib/expressions.rb)\n* [Union-find algorithm (weighted quick-union implementation)](lib/union_find.rb)\n\n#### Sorting\n\n* [Selection sort](lib/selection_sort.rb)\n* [Insertion sort](lib/insertion_sort.rb)\n* [Shell sort](lib/shell_sort.rb)\n* [Top-down mergesort](lib/merge_sort.rb)\n* [Bottom-up mergesort of a linked list](lib/merge_sort_bu.rb)\n* [Quick sort](lib/quick_sort.rb)\n* [Quick 3-way sort](lib/quick3way_sort.rb)\n* [Heap sort](lib/heap_sort.rb)\n* [Max-oriented priority queue](lib/priority_queue.rb)\n\n#### Searching\n\n* [Check if a binary tree is balanced](lib/btree.rb)\n* [Find the 'next' node (in-order successor) of a given node in a binary search tree](lib/bst.rb)\n\n#### Graphs\n\n* [Depth-first search](lib/dfs.rb)\n* [Finding a directed cycle](lib/directed_cycle.rb)\n\n#### Strings\n\n* [Least-significant-digit first string sort](lib/lsd.rb)\n\nDevelopment:\n\n    bundle install\n    bundle exec rake test\n\nCopyright (C) 2013-2014 [Andrew Djoga](http://andrewdjoga.com), released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Falgorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Falgorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Falgorithms/lists"}