CS50-AI-1 Flashcards

1
Q

Node; Data structure in search algorithms representing a state

A

its parent

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

How do depth-first and breadth-first search differ in their approach to exploring the state space

A

and in what scenarios might each be more efficient?; Depth-first search (DFS) explores as deep as possible along each branch before backtracking

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

Compare greedy best-first search and A search in terms of their use of heuristic functions and overall efficiency in finding solutions.; * Greedy best-first search uses a heuristic to prioritize nodes closest to the goal

A

focusing on the estimated distance to the goal. A* search combines the cost to reach the current node and a heuristic estimate to the goal

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

In adversarial search

A

how does the Minimax algorithm’s strategy differ when facing a maximizing player versus a minimizing player?; In adversarial search

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

Explain the role of alpha-beta pruning in optimizing the Minimax algorithm

A

and how it affects the algorithm’s performance.; Alpha-beta pruning enhances the Minimax algorithm by eliminating branches in the search tree that do not influence the final decision

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

How does the concept of path cost influence the choice of actions in a search problem?; In search problems

A

path cost influences the choice of actions by prioritizing paths with lower costs

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

Discuss the trade-offs between depth-limited Minimax and standard Minimax in terms of computational efficiency and solution optimality.; Depth-limited Minimax limits the depth of the search tree

A

improving computational efficiency by reducing the search space. However

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

Describe how the frontier functions differently in depth-first search compared to breadth-first search.; In depth-first search

A

the frontier functions as a stack where the most recently added node is explored next

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