Searching trees and game playing Flashcards
What is the travelling salesman problem?
The minimum cost of a path for a salesperson to starts at any city and must finish at the same city without visiting the same city more than once
What is the travelling salesman problem an example of?
Combinatorial explosion
Unsolved theoretical problems
What is combinatorial explosion?
The feature where the number of solutions for a problem grows exponentially with the problem size
What is the search space of a problem?
Set of all possible solutions to a problem
How do we improve the search technique of a problem
- Define problem into a smaller search tree
- Improve search efficiency
What is the branching factor?
Number of branches a node has
What is the average branching factor?
The average number of branches of all nodes in a tree
Explain how a breadth first search works
- Look at neighbouring nodes first
- Add discovered nodes to the end of the queue
Explain how depth first search work
- Look at children nodes first
- Add discovered nodes to the front of the queue
Explain how uniform cost search works
- Look at neighbouring nodes first
- Add the discovered nodes in order of lowest cost
What is the maximum branching factor?
The maximum number of children a node has
Explain the time, space and optimal completeness of a BFS
b is average branching factor
d is depth of tree
Space: b^d
Time: b^d
Optimal: Yes
Complete: Yes
Explain the time, space and optimal completeness of a UCS
b is the average branching factor
d is the depth of the tree
Space: b^d
Time: b^d
Optimal: Yes
Complete: Yes
Explain the time, space, optimal and completeness of DFS
b is the average branching factor
m is the maximum branching factor
Space: bm
Time: b^m
Optimal: No
Complete: No
What are fringe nodes?
Nodes that have been discovered but have not been processed