Implementing the Hunt-and-Kill algorithm
Learn to implement the Hunt-and-Kill algorithm in Ruby.
We'll cover the following...
The HuntAndKill class
There really aren’t any surprises in the implementation here. As expected, we start by choosing a cell at random and then doing our random walk. In that respect, it looks a lot like our implementation of the Aldous-Broder ...
Ask