Backtracking Algorithms in Ruby

Learn about backtracking algorithms in Ruby, including the N-Queens problem, Sudoku solver, and Knight’s tour problem, with examples and comparisons of their performance.

 · 8 min · 1646 words · Bá Tới

Greedy Algorithms in Ruby

Learn about greedy algorithms in Ruby, including the greedy algorithm paradigm, examples of greedy algorithms, and their applications in solving optimization problems.

 · 6 min · 1242 words · Bá Tới

Graph Algorithms in Ruby

Learn about graph algorithms in Ruby, including depth-first search (DFS), breadth-first search (BFS), Dijkstra’s algorithm, and A* search, with examples and comparisons of their performance.

 · 6 min · 1252 words · Bá Tới

Tree Algorithms in Ruby

Learn about tree algorithms in Ruby, including tree traversal, binary search trees, and balanced trees, with examples and comparisons of their performance.

 · 8 min · 1493 words · Bá Tới

Search Algorithms in Ruby

Learn about search algorithms in Ruby, including linear search, binary search, and interpolation search, with examples and comparisons of their performance.

 · 5 min · 920 words · Bá Tới

Sorting Algorithms in Ruby

Learn about sorting algorithms in Ruby, including bubble sort, selection sort, insertion sort, quick sort, and merge sort, with examples and comparisons of their performance.

 · 7 min · 1348 words · Bá Tới