← AI-aktiviteter Svenska

Search Algorithms in Trees

Build your own search trees and follow exactly how BFS, DFS, Greedy Best-First, and A* explore every node.

Choose algorithm

Node
h(n)
Cost
Enter saves
Example trees
Start a search to see the data structure live.

Search Algorithms in Trees

Four classic search algorithms make their way through the same tree. Follow how they work, node by node.

1
Choose a tree. Load an example tree or build your own.
2
Pick an algorithm. The options are BFS, DFS, Greedy best-first and A*.
3
Compare. Note which path each algorithm finds and how many nodes it has to examine.