SEARCHING ALGORITHMS-II Flashcards

1
Q

What’s the formula of A* Algorithm

A

f(n) = g(n) + h(n)

g(n) –> Actual cost of that node
h(n) –> Estimated cost from the node to goal

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

Explain A* Algorithm

A

A* Algorithm is the most refined version of the best first search Algorithm.
This algorithm maintains a priority queue, where the values of f(n) = g(n) + h(n) is stored.
The lowest value is then traversed.

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

Explain the type of Heuristic function used

A

The heuristic is an admissible heuristic. An admissible heuristic h(n) is a heuristic that always underestimates the cost to reach the goal.

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

What is Adversarial Search

A

This is the type of problem where we examine the problem and try to move ahead of the world and the other agents are planning against us.

The environment with more than one agent is termed as multi agent env, in this each agent is an opponent to the other agent. Each agent needs to consider the action of the other agent and has to see it’s affect on them.

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

Explain Mini Max Algorithm

A

This is a backtracking algorithm which is used in decision making and game theory.
In this algorithm there are two players, max and min. Max tries to maximise the utility of an agent, and Min will try to minimise the utility of the same agent.
This algorithm works on Depth First Search.

Time Complexity –> b^d

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

Explain Alpha Beta Pruning

A

This is an optimised method of mini max algorithm. In this technique we can compute the correct minimax decision without checking each node, this is achieved by pruning.

Alpha –> The best choice (Highest Value) we have found so far. This can be used by Maximiser.
Beta –> The best choice (Lowest Value) we have found so far. This can be used by Minimiser.

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

Worst and Average time complexity of Alpha Beta Pruning

A

Worst –> b^d
Average –> b^(d/2)

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