Plays from YouTube. Watch on YouTube
How do we turn a real problem into something an algorithm can solve?
Build a precise search problem, then follow a legal four-action water-jug solution and see how graphs differ from unfolded search trees.
We start with states, actions, goal predicates and path costs, using precise definitions and original examples to establish the problem being solved.
From there, we work through water jugs, mazes and the eight-puzzle, following the actual operations rather than skipping from the input straight to the final answer.
Then we handle repeated states, path checking, multiple goals, and why even the eight-puzzle has unreachable arrangements.
Finally, we connect the result to implementation. The big idea: a search tree represents paths while a state graph represents configurations.
Explore more computer science and mathematics lessons from Closiq.