paint-brush
An Introduction to Backtracking in Rubyby@Tresor-bireke
742 reads
742 reads

An Introduction to Backtracking in Ruby

by Tresor bireke3mMay 8th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Backtracking is a general algorithm for finding all (or some) solutions to some computational problems notably constrain satisfaction problems. It incrementally builds candidates to the solutions, abandons a candidate ("backtracks") as soon as it determines that the candidate cannot possibly be completed to a valid solution. In this blog post, we are going to take a look at what is backtracking and how to implement it using ruby. We will be given a tow input where the first number is the desired sum and the remaining is an array of numbers.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - An Introduction to Backtracking in Ruby
Tresor bireke HackerNoon profile picture
Tresor bireke

Tresor bireke

@Tresor-bireke

L O A D I N G
. . . comments & more!

About Author

Tresor bireke HackerNoon profile picture
Tresor bireke@Tresor-bireke

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite