1. Home
  2. Explore
  3. Computer Science
  4. Informed Search

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Informed Search

  • 61Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Search Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What are the main components of a search problem?

Tap to flipClick to flipspace

A set of states, available actions, a successor function with action costs, a start state, and a goal test.

Or swipe the card

61 cards

  1. What are the main components of a search problem?

    A set of states, available actions, a successor function with action costs, a start state, and a goal test.

  2. What does a successor function specify?

    For a state and an available action, it specifies the resulting state and the cost of that action.

  3. What is the role of a goal test in a search problem?

    It checks whether a state satisfies the goal condition.

  4. What does a node in a search tree represent?

    A path to a state, including the sequence of actions taken to reach it.

  5. How does a search tree differ from a state-space graph?

    A state-space graph represents states and transitions; a search tree represents paths explored through that graph.

  6. What is the fringe in a search algorithm?

    The collection of nodes that have been discovered and are ready to be expanded.

  7. How is the cost of a path calculated?

    By summing the costs of all actions along the path.

  8. What does it mean for a search algorithm to be optimal?

    It finds a least-cost plan to a goal.

  9. What are the basic steps of tree search?

    Put the start node on the fringe; repeatedly select a fringe node, test it for the goal, and expand it if it is not a goal.

  10. How can a fringe be implemented for different search strategies?

    A priority queue can support different priority rules; depth-first search can use a stack, and breadth-first search can use a queue.

  11. What is a heuristic function in search?

    A function that estimates the remaining cost or distance from a state to a goal.

  12. Why can Manhattan distance be a useful heuristic for grid-based Pac-Man movement?

    It estimates distance using the number of horizontal and vertical steps, matching movement along the grid.

  13. Why is Euclidean distance a less natural heuristic than Manhattan distance for a grid where diagonal movement is not allowed?

    Euclidean distance assumes a straight-line route, including diagonal travel that the agent cannot take.

  14. What heuristic can estimate distance to Bucharest in the Romania route-finding problem?

    Straight-line distance from the current city to Bucharest.

  15. Why can the number of misplaced pancakes serve as a heuristic?

    Each pancake out of position must be flipped at least once, and flipping pancakes incurs cost.

  16. What is the largest-out-of-place-pancake heuristic?

    It estimates remaining cost using the ID of the largest pancake still out of place.

  17. How should a heuristic value behave at a goal state?

    It should be 000, because no additional cost is needed to reach a goal.

  18. What is a relaxed-problem heuristic?

    A heuristic found by solving a simplified version of the original problem with some constraints removed.

  19. How can a relaxed problem be used to derive a heuristic for the 8-puzzle?

    Allow a tile to move directly to its destination without being constrained by other tiles; the resulting minimum number of moves is the number of misplaced tiles.

  20. What is total Manhattan distance in the 8-puzzle?

    The sum, over all tiles, of each tile's Manhattan distance from its current position to its goal position.

  21. Why can taking the maximum of two admissible heuristics be useful?

    Their maximum is still admissible and is at least as informative as either heuristic alone.

  22. What is heuristic dominance?

    Heuristic h1h_1h1​ dominates h2h_2h2​ when h1(n)≥h2(n)h_1(n) \geq h_2(n)h1​(n)≥h2​(n) for every state nnn.

  23. What is the trade-off when choosing a heuristic closer to the true remaining cost?

    A more informative heuristic can reduce node expansions, but may take more computation to calculate.

  24. How does uniform-cost search choose which node to expand?

    It expands the fringe node with the lowest accumulated path cost g(n)g(n)g(n).

  25. What are the key guarantees of uniform-cost search described in the lecture?

    It is complete and optimal: if a solution exists, it finds a least-cost solution.

  26. Why can uniform-cost search expand many irrelevant states?

    It has no heuristic guidance, so it expands states in every direction according to path cost.

  27. How does greedy search choose which node to expand?

    It selects the fringe node with the lowest heuristic estimate h(n)h(n)h(n).

  28. What important information does greedy search ignore?

    The cost already incurred to reach a node.

  29. Why can greedy search return a suboptimal solution?

    It can pursue a route that looks close to the goal while overlooking a cheaper route.

  30. What can greedy search resemble when its heuristic is badly misleading?

    A poorly guided depth-first search.

  31. What did the Pac-Man maze example illustrate about greedy search?

    It expanded relatively few states but found a suboptimal path.

  32. What is the relationship between A* search and uniform-cost and greedy search?

    A* combines the accumulated cost used by uniform-cost search with the goal-distance estimate used by greedy search.

  33. In pancake flipping with four pancakes, how many possible stack configurations are there?

    4!=244! = 244!=24 configurations.

  34. In the four-pancake example, what actions are available from a given stack?

    Flip the pancakes above a spatula placed between adjacent pancakes or underneath the bottom pancake; there are three effective placements.

  35. What is the goal configuration in the pancake-flipping problem?

    A stack ordered by size, with the largest pancake at the bottom and the smallest at the top.

  36. What is the action cost in the pancake-flipping example?

    The number of pancakes flipped by that action.

  37. In the 8-puzzle model described, what do states and actions represent?

    States are board configurations; an action moves a tile into the empty space, equivalently moving the empty space.

  38. How many board configurations are counted for the 8-puzzle in the lecture?

    9!9!9! configurations.

  39. What action cost was proposed for the 8-puzzle?

    A cost of 111 for each tile moved.

  40. Why is the number of misplaced tiles an admissible 8-puzzle heuristic?

    Every misplaced tile must be moved at least once, so the count cannot exceed the minimum remaining number of moves.

  41. Why is total Manhattan distance an admissible 8-puzzle heuristic?

    Each tile must move at least its Manhattan distance to reach its destination.

  42. What are g(n)g(n)g(n), h(n)h(n)h(n), and f(n)f(n)f(n) in A* search?

    g(n)g(n)g(n) is cost so far, h(n)h(n)h(n) is estimated remaining cost, and f(n)=g(n)+h(n)f(n)=g(n)+h(n)f(n)=g(n)+h(n).

  43. How does A* choose which node to expand?

    It expands the fringe node with the lowest f(n)=g(n)+h(n)f(n)=g(n)+h(n)f(n)=g(n)+h(n).

  44. When should A* declare success after encountering a goal?

    When the goal node is removed from the fringe for expansion, not when it is first added.

  45. Why can stopping A* when a goal is enqueued give the wrong answer?

    A different, cheaper path to a goal may still be on the fringe and not yet explored.

  46. What does it mean for a heuristic to be admissible?

    For every node nnn, it never overestimates the optimal remaining cost: h(n)≤h∗(n)h(n) \leq h^*(n)h(n)≤h∗(n).

  47. What is the optimality guarantee for A* tree search with an admissible heuristic?

    A* tree search finds an optimal solution.

  48. Why does admissibility help A* tree search find an optimal goal before a suboptimal one?

    An optimal goal path, or one of its fringe ancestors, has an fff value no greater than that of a suboptimal goal path.

  49. Does an admissible heuristic have to be accurate?

    No. It only has to avoid overestimating the optimal remaining cost.

  50. What happens to A* when its heuristic is always 000?

    It becomes equivalent to uniform-cost search.

  51. Why is using the exact remaining cost as a heuristic usually impractical?

    Computing it would require solving the problem already.

  52. Why can graph search avoid redundant work compared with tree search?

    It records expanded states and avoids expanding the same state again through another path.

  53. What is the closed set in graph search?

    The set of states that have already been expanded.

  54. Why should the closed set be implemented as a set rather than a list?

    Membership checks are more efficient with a set.

  55. Why does graph search remain complete when it skips expansion of previously expanded states?

    It skips duplicate expansions of states that have already been reached and explored, rather than removing access to entirely new states.

  56. Why can A* graph search fail to be optimal with only an admissible heuristic?

    It may expand a state first through a worse path, then skip a later, cheaper path to that same state.

  57. What does it mean for a heuristic to be consistent?

    For every transition from nnn to n′n'n′, h(n)≤c(n,n′)+h(n′)h(n) \leq c(n,n') + h(n')h(n)≤c(n,n′)+h(n′).

  58. How does consistency differ from admissibility?

    Admissibility bounds the estimate against the true remaining cost to a goal; consistency imposes a local constraint across every transition.

  59. How does consistency affect f(n)f(n)f(n) along a path?

    It ensures that f(n)f(n)f(n) never decreases as the path is extended.

  60. What is the optimality guarantee for A* graph search with a consistent heuristic?

    It finds an optimal solution.

  61. What is the key practical difference between A* tree search and A* graph search guarantees?

    A* tree search is optimal with an admissible heuristic; A* graph search requires a consistent heuristic for the stated guarantee.

Card 1 of 61
Card 1 of 61

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent