Lect 5
Lect 5
• Root : no parent.
• Leaf: no child. Root
• Hight: distance from root to leaf (maximum Level 0
number of edges in path from root Level 1 Successor
• Level (depth): number of edge in the path from Level 2
the root to that node.
• Branch: Internal node, neither the root nor theLevel 3
leaf. Hight = 3
• Successor nodes of a node: its children Leaf
• Predecessor node of a node: its parent
• Path: Sequence of nodes along the edges of a tree
Tree-Search Algorithm
Tree-search algorithm
We need to consider the criteria that might be used to choose among algorithms.
• Bidirectional search
Breadth First Search (BFS) (Shortest Path First)
Breadth First Search (BFS) (Shortest path first)
• Optimal solution ? No
That’s
all
folks!