Solving Sliding Block Puzzles (the 8-puzzle) with Artificial Intelligence | Jack Danger
I’ve been working through Peter Norvig and Stuart Russel’s Artificial Intelligence, A Modern Approach (thanks to the Square engineering library) and one of the most helpful chapters involved methodically demonstrating basic graph traversal algorithms for problem solving. If that sounds heady, it’s not — I think you’ll enjoy it.
First, let’s talk about graphs.
A graph is any set of points (nodes) and the lines (edges) between those points. A simple kind of graph is a tree structure. This is where there’s a single ‘root’ which has 1 or more branches that then have their own branches, etc. Many things in computer science can be expressed using some kind of tree structure graph.
6brand.com