Documente Academic
Documente Profesional
Documente Cultură
ox ox ox
x x x x xo xx x x x o x
o o ox x x
o
x
o
x ………..
x xxx
xx xx oo
o o
A 4 B 4 C
3
S 5 5
G
4 D E F 3
2 4
Implicit network of towns
Two possible tasks:
1. FIND a (the) path. = computational cost
2. TRAVERSE the path. = travel cost
2. relates to finding optimal paths
A 4 B 4 C
3
S 5 5
G
4 D 2 E 4
F 3
3 S 4
4 A D
5 5 2
B D A E
4 5 2 4 5 4
C E E B B F
2 4 5 4 4 5 4 4 3
D F B F C E A C G
3 4 3 4
G C G F
3
G
8/27/2018 BIT 2319- Artificial Inteligence DeKUT 11
Paths:
We are not interested in optimal paths here, so we can drop the costs.
Denotes: S
SA A Denotes:SDA D
B D A E
C E E B B F
D F B F C E A C G
G C G F Denotes:
SDEBA
G
Nodes do not denote themselves, but denote the partial path from the root to
themselves!!
8/27/2018 BIT 2319- Artificial Inteligence DeKUT 12
Terminology:
S
A D
B D A E
C E E B B F
D F B F C E A C G
G C G F
G
Node, link (or edge), branch, arc
Parent, child, ancestor, descendant
Root node, goal node
Expand / Open node / Closed node / Branching factor
8/27/2018 BIT 2319- Artificial Inteligence DeKUT 13
Using a Tree – The Obvious Solution?
But
1. It can be wasteful on space
2. It can be difficult to implement, particularly if
there are varying number of children (as in tic-tac-
toe)
3. It is not always obvious which node to expand next.
We may have to search the tree looking for the best
leaf node (sometimes called the fringe or frontier
nodes). This can obviously be computationally
expensive
Is it a good solution?
Path Cost
Search Cost (Time and Memory)