When a node is a whole situation: state BFS, 0-1 BFS and Euler paths

: dots and the lines between them. In this lesson the dots are not places. Each dot is a whole situation, such as every wheel of a lock at once.
Module 09 · DSA · Four patterns the ladders lean on · about 16 min to read

: dots and the lines between them. In this lesson the dots are not places. Each dot is a whole situation, such as every wheel of a lock at once.
Lesson 87 of 96 in DSA
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
Terms it explains: state, state-space search, wildcard bucket, deque, front, back, 0-1 BFS, Euler path, Hierholzer's algorithm, Common mistakes, LC 332, A*, adjacency list, adjacency matrix, Bellman-Ford, BFS, DAG, DFS, Dijkstra, directed vs undirected, in-degree, MST, relax an edge, sparse vs dense, topological sort, union-find, vertex/edge, weighted.
Lab
Every find walks a chain of houses up to the root. In the worst order, how long can that chain get, and what keeps it short?
Drag Cables joined to the end, then switch The habits and watch Tallest chain fall from 31 to 5.
Connects to
Saved in this browser, and to your account when you sign in.