Blind Search Flashcards

1
Q

What is an algorithm?

A

A method aiming to solve a problem given:
- A Problem
- Some requirements that the solution should meet
- The available resources
- Any time constraints, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the characteristics of an ideal algorithm?

A
  • Searches as little space as possible
  • Uses as little memory as possible
  • Takes as little time as possible
  • Guarantees to find the solution
  • Guarantees to find the best solution
  • It is easy to implement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When is an algorithm exhaustive?

A

When it searches the whole search space in order to find a solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When is an algorithm complete?

A

When it guarantees a solution if such a solution exists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When is an algorithm admissible?

A

When it guarantees to find the best solution if such a solution exists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the Open List (Frontier)?

A

It is the list of all unexpanded nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the Closed Set?

A

It is the set of all expanded nodes

It is used to check whether the algorithm has encountered a state at an earlier stage (loop check)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does a search algorithm work?

A
  1. Start from the initial state
  2. Keep expanding the state one by one
  3. Keep track of the choices you make (which state to expand and which ones you left behind to expand later if required)
  4. Keep track of the states you passed already (so you don’t consider them later)
  5. End the process when you reach the goal state(s)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What information is needed to keep in a search algorithm?

A
  • The current state
  • A set of all states that are left behind for later, Frontier (Open Set)
  • A set of all states that have been already passed, Closed Set
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What information is required for a search algorithm to work?

A
  • The initial State
  • The set of actions and the expansion function
  • The goal test function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does the Depth First Search (DFS) work?

A

Generates the search space by expanding the deepest state first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the advantages and disadvantages of DFS?

A

Advantages:
- The open list is relatively small
- It is space-efficient

Disadvantages:
- It is not complete
- It is not admissible
- It is not efficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does Breadth First Search (BFS) work?

A

Generates the search space by expanding the shallowest state first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the advantages and disadvantages of BFS?

A

Advantages:
- It is complete
- It is admissible

Disadvantages:
- It is not space-efficient
- The open list is relatively big

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Iterative Deepening?

A

It is a combination of DFS and BFS that searches using depth-first but up to a certain point. If no solution is found, the depth is increased

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the advantages and disadvantages of ID?

A

Advantages:
- It is complete
- It is admissible
- The shortest path is found (if the depth is increased by one)
- The open list is relatively small

Disadvantages:
- It is not time-efficient

17
Q

What is Bi-Directional search?

A

It is a search algorithm in which one thread starts searching from the initial state to the final state and one from the final state to the initial state in parallel.

18
Q

What happens when the two threads of the Bi-Directions Search find a common state?

A

Then the search terminates and the two paths are combined to produce a solution

19
Q

What are the pre-conditions of the Bi-Directional Search?

A
  • Operators must be reversive
  • The goal state must be known
20
Q

What are the advantages and disadvantages of Bi-Directional Search?

A

Advantages:
- Exploits the ability for concurrent solution

Disadvantages:
- Each node must track the nodes that have visited, but also check if the current state belongs to the other thread’s closed set

21
Q

What is the ideal result when operators have different cost applications?

A

The best solution with respect to a cost function

22
Q

What is Uniform Cost Search?

A

It uses the BFS method but doesn’t start from the shallowest state but the one with the minimum partial cost

23
Q

What are the advantages and disadvantages of UCS?

A

Advantages:
- It is complete
- It is admissible (when all operator costs are greater than zero)

Disadvantages:
- It is not space-efficient

24
Q

What is Branch & Bound Search?

A

It prunes search paths that do not lead to the best solution

25
How does B&B work?
1. It finds a solution using DFS and stores the result (best solution so far) 2. It continues searching but prunes any partial path, in case the partial path solution costs more than the best solution so far 3. If a better solution is found, the best solution is updated
26
Where is the best solution when there is maximum pruning?
On the left, when the solutions are ordered from left to right
27
Where is the best solution when there is no pruning?
On the right, when the solutions are ordered from left to right
28
What is Combinatorial Explosion?
An exponential increase in nodes as a result of going deeper in the search tree