CS50-AI-1 Flashcards
Node;Data structure in search algorithms representing a state
its parent
How do depth-first and breadth-first search differ in their approach to exploring the state space
and in what scenarios might each be more efficient?;Depth-first search (DFS) explores as deep as possible along each branch before backtracking
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
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
In adversarial search
how does the Minimax algorithm’s strategy differ when facing a maximizing player versus a minimizing player?;In adversarial search
Explain the role of alpha-beta pruning in optimizing the Minimax algorithm
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 does the concept of path cost influence the choice of actions in a search problem?;In search problems
path cost influences the choice of actions by prioritizing paths with lower costs
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
improving computational efficiency by reducing the search space. However
Describe how the frontier functions differently in depth-first search compared to breadth-first search.;In depth-first search
the frontier functions as a stack where the most recently added node is explored next