1. Home
  2. Explore
  3. Computer Science
  4. AI Course Announcements

Study methods

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

AI Course Announcements

  • 71Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Agents and Planning
A reflex agent chooses an action from its current precept and possibly some memory, without considering the
of its actions.

71 questions

  1. 1
    A reflex agent chooses an action from its current precept and possibly some memory, without considering the
    _____
    of its actions.
    Hint

    Think about what reflex agents do not reason through before acting.

    Answer

    consequences

    Explanation

    Reflex agents use their current precept and possibly memory to choose an action, but they do not consider the consequences of their actions.

  2. 2
    An agent that optimizes expected utility is considered
    _____
    .
    Hint

    This term describes behavior that optimizes the expected outcome.

    Answer

    rational

    Explanation

    A rational agent is defined as an agent that optimizes expected utility.

  3. 3
    Whether an agent is rational depends on its behavior, not on the particular
    _____
    it uses to reach its conclusions.
    Hint

    Rationality is separate from the process used to choose an action.

    Answer

    method

    Explanation

    The definition of rationality concerns optimal behavior; how the agent reaches its conclusions is decoupled from whether it is rational.

  4. 4
    A reflex agent can be rational when reacting immediately is more effective than reasoning through consequences, as when pulling a hand away from
    _____
    .
    Hint

    The example involves avoiding an immediate physical injury.

    Answer

    fire

    Explanation

    Quickly pulling a hand away from fire can be the optimal action; deliberating about possible consequences could make the response too late.

  5. 5
    A planning agent asks itself the question
    _____
    to consider the consequences of possible action sequences.
    Hint

    The agent hypothesizes about the results of actions before taking them.

    Answer

    what if

    Explanation

    Planning agents ask “what if?” and reason about the results of hypothetical sequences of actions.

  6. 6
    To reason about the possible consequences of actions, a planning agent needs a
    _____
    of how the world works.
    Hint

    This representation lets the agent predict what actions will do.

    Answer

    model

    Explanation

    Without a model of how the world works, an agent cannot reason through the possible consequences of its actions.

  7. 7
    A planning agent evaluates hypothetical action sequences by checking whether they achieve a
    _____
    .
    Hint

    It is the desired condition against which possible plans are evaluated.

    Answer

    goal

    Explanation

    Planning requires a goal so the agent can evaluate whether a sequence of actions achieves what is desired.

  8. 8
    A planning goal can be a single desired outcome or a
    _____
    that can be satisfied in many ways.
    Hint

    The goal may describe a test that different outcomes can pass.

    Answer

    condition

    Explanation

    A goal may be one specific thing to achieve or a condition that can be met in multiple ways.

  9. 9
    A search algorithm is
    _____
    if it is guaranteed to find a solution whenever one exists.
    Hint

    This property concerns whether a solution will be found when possible.

    Answer

    complete

    Explanation

    Completeness means that an algorithm finds a solution if one exists.

  10. 10
    A search algorithm is
    _____
    if it is guaranteed to find a minimum-cost solution when one exists.
    Hint

    This property concerns the quality of the solution, not merely finding one.

    Answer

    optimal

    Explanation

    An optimal algorithm achieves the goal with minimum cost.

  11. 11
    The set of possible configurations represented in a search problem is its
    _____
    .
    Hint

    It contains the possible states the problem can occupy.

    Answer

    state space

    Explanation

    A state space is the set of possible states represented by a search problem.

  12. 12
    The function that specifies available actions from a state and their resulting states is the
    _____
    .
    Hint

    It encodes how the world changes after an action.

    Answer

    successor function

    Explanation

    The successor function gives the available actions for a state and the consequence states of those actions.

  13. 13
    The state where a search problem begins is called the
    _____
    .
    Hint

    It identifies where the agent is before carrying out a plan.

    Answer

    start state

    Explanation

    A search problem specifies a start state from which the search begins.

  14. 14
    The condition that determines whether a state satisfies the desired outcome is the
    _____
    .
    Hint

    The search uses this to check whether the objective has been met.

    Answer

    goal test

    Explanation

    The goal test determines whether a state meets the problem's goal condition.

  15. 15
    A sequence of actions that transforms the start state into a state satisfying the goal condition is a
    _____
    .
    Hint

    It is the action sequence that solves the search problem.

    Answer

    plan

    Explanation

    A solution is a sequence of actions, called a plan, that takes the start state to a state that passes the goal test.

  16. 16
    In the Romania route example, choosing cities as states makes neighboring cities the possible
    _____
    of a city.
    Hint

    These are the states reachable in one step from the current city.

    Answer

    successors

    Explanation

    When cities are the states, a city's neighboring cities are its possible successors.

  17. 17
    In the Romania route example, the cost of a transition can be modeled as the
    _____
    along the road between two cities.
    Hint

    This measure can be associated with an edge in the map graph.

    Answer

    distance

    Explanation

    One reasonable transition-cost choice is the distance along the road connecting the cities.

  18. 18
    If a route-planning problem should account for road conditions, its transition cost could be increased to reflect the number of
    _____
    .
    Hint

    This road feature can make a route less desirable even if it is short.

    Answer

    potholes

    Explanation

    The lecture notes that a route cost could account for factors such as the number of potholes, not just distance.

  19. 19
    When a problem's state representation changes, its successor function may also change, so the two must be chosen in a
    _____
    way.
    Hint

    The representation and transition rules must fit together.

    Answer

    compatible

    Explanation

    A different state space can require a different successor function; the two choices need to be compatible.

  20. 20
    In a Pac-Man pathing problem, the state can be just Pac-Man's
    _____
    because the locations of the dots do not affect the pathing objective.
    Hint

    The pathing task tracks where the agent is as it moves toward a destination.

    Answer

    location

    Explanation

    For pathing, Pac-Man's location is sufficient to track progress; other changing details can be omitted if they do not matter to the objective.

  21. 21
    For Pac-Man pathing, the successor function must account for walls because moving into a wall leaves Pac-Man in the same
    _____
    .
    Hint

    Consider what happens to the agent when a move is blocked.

    Answer

    location

    Explanation

    The pathing successor function reflects the walls: if Pac-Man runs into one, Pac-Man does not move and stays in the same location.

  22. 22
    To represent a problem in which Pac-Man must eat all dots, the state must track both Pac-Man's location and which dots remain
    _____
    .
    Hint

    The representation needs to distinguish dots that have been eaten from those that have not.

    Answer

    present

    Explanation

    Eating all dots requires keeping track of Pac-Man's location and the remaining food configuration.

  23. 23
    A fixed Pac-Man map can represent each food location with a Boolean flag indicating whether food is still there or
    _____
    .
    Hint

    The flag has two possible values: the dot remains or it has been eaten.

    Answer

    absent

    Explanation

    For a fixed map, a Boolean flag for each possible food location can indicate whether food is present or absent.

  24. 24
    When the goal is to eat every dot, the goal test checks that all food flags are
    _____
    .
    Hint

    The goal is achieved when no food remains.

    Answer

    false

    Explanation

    The food-related part of the goal test is satisfied when every dot's Boolean flag has the value false.

  25. 25
    A state representation should include enough information to evaluate the goal test and to encode the
    _____
    function.
    Hint

    The representation must support predicting what happens after actions.

    Answer

    successor

    Explanation

    A good state representation must support checking the goal and modeling future transitions through the successor function.

  26. 26
    In the task of keeping ghosts scared while eating all dots, the state needs a ghost
    _____
    to determine when the scared period ends.
    Hint

    This variable tracks how long the power effect remains active.

    Answer

    timer

    Explanation

    A timer is needed to know when the ghosts stop being scared and the game-over condition can occur.

  27. 27
    In that same task, tracking the remaining power-pellet locations is needed to determine when Pac-Man can
    _____
    the ghost timer.
    Hint

    Eating a power pellet starts or renews the scared period.

    Answer

    reset

    Explanation

    The remaining power-pellet locations and Pac-Man's position let the successor function determine when the timer is reset.

  28. 28
    Ghost locations need to be included in the state if the model says that a scared ghost that Pac-Man runs into will respawn
    _____
    .
    Hint

    The lecture discusses whether ghosts return in their normal or frightened condition.

    Answer

    unscared

    Explanation

    If a ghost respawns unscared, its location must be tracked so the successor function can model that event.

  29. 29
    The number of world states is estimated by multiplying the number of possibilities for each variable that can
    _____
    .
    Hint

    Count the possibilities for every changing component of the world.

    Answer

    vary

    Explanation

    To estimate the number of states, count each variable's possibilities and multiply those counts together.

  30. 30
    If each of 30 food locations can independently contain food or not, the number of food configurations is 2302^{30}230 because each location has
    _____
    possibilities.
    Hint

    Each location is represented by a Boolean choice.

    Answer

    two

    Explanation

    Each of the 30 locations has two possibilities, presence or absence, giving 2302^{30}230 configurations.

  31. 31
    A search-problem state can be smaller than a world state when some world details do not affect the particular
    _____
    being solved.
    Hint

    State representations only need details relevant to the current objective.

    Answer

    problem

    Explanation

    For example, ghosts and Pac-Man's facing direction can be omitted from a dot-eating state if they do not affect that search problem.

  32. 32
    Counting states by multiplying variable possibilities can slightly overestimate the true state-space size when some combinations are
    _____
    .
    Hint

    Some combinations of variable values may never occur in the world.

    Answer

    impossible

    Explanation

    The count may include combinations such as Pac-Man occupying a location while food remains there, even if that configuration cannot occur.

  33. 33
    In a state space graph, every state is represented
    _____
    .
    Hint

    This is different from what can happen to states in a search tree.

    Answer

    only once

    Explanation

    Each state occurs only once in the state space graph, even though a search tree may contain multiple occurrences of it.

  34. 34
    In a state space graph, the arcs represent the
    _____
    function.
    Hint

    The arcs encode which state transitions are possible.

    Answer

    successor

    Explanation

    The arcs of the state space graph represent the transitions defined by the successor function.

  35. 35
    A search tree is built from the start state by repeatedly applying the
    _____
    function to generate possible next states.
    Hint

    This is the operation that expands a node into its possible next steps.

    Answer

    successor

    Explanation

    A search tree is generated incrementally by applying the successor function to states reached so far.

  36. 36
    A node in a search tree represents a sequence of
    _____
    that have happened, rather than merely a unique state.
    Hint

    The path from the root records the history leading to that node.

    Answer

    states

    Explanation

    A search-tree node corresponds to a sequence of states along a possible plan.

  37. 37
    The search tree can be larger than the state space graph because multiple paths can reach the same
    _____
    .
    Hint

    A repeated configuration can appear at different nodes when reached by different plans.

    Answer

    state

    Explanation

    Different action sequences may lead to the same state, producing multiple occurrences of that state in the search tree.

  38. 38
    A small state space graph can have an infinite search tree when paths can repeatedly cycle among states without
    _____
    .
    Hint

    Repeated transitions can create paths of unlimited length.

    Answer

    ending

    Explanation

    Cycles in the state space can produce infinitely many action sequences and therefore an infinite search tree.

  39. 39
    In tree search, the set of leaf nodes waiting to be expanded is called the
    _____
    .
    Hint

    Search strategies choose the next node from this collection.

    Answer

    fringe

    Explanation

    The fringe is the set of leaf nodes that are candidates for expansion.

  40. 40
    When tree search selects a fringe node, it first checks whether that node's plan achieves the
    _____
    before expanding it.
    Hint

    A successful plan should be returned without generating its successors.

    Answer

    goal

    Explanation

    Tree search checks whether the selected node reaches a goal state before calling the successor function.

  41. 41
    If no leaves remain as candidates for expansion, tree search has reached only dead ends and reports that it found no
    _____
    .
    Hint

    The algorithm cannot return a plan if there is nothing left to explore.

    Answer

    solution

    Explanation

    When the fringe is empty, there are no remaining candidates for expansion; if no goal was found, the search fails to find a solution.

  42. 42
    A tree-search strategy determines which node in the
    _____
    to expand next.
    Hint

    The strategy controls the order in which available leaves are explored.

    Answer

    fringe

    Explanation

    Tree search strategies differ in how they choose the next candidate from the fringe.

  43. 43
    In depth-first search, the next node selected is the
    _____
    one on the fringe.
    Hint

    This strategy follows a path as far down the tree as possible.

    Answer

    deepest

    Explanation

    Depth-first search prioritizes the deepest available node.

  44. 44
    In breadth-first search, the next node selected is the
    _____
    one on the fringe.
    Hint

    This strategy explores the tree layer by layer.

    Answer

    shallowest

    Explanation

    Breadth-first search expands the shallowest available node first.

  45. 45
    In the search-tree cartoon, the branching factor BBB is the number of
    _____
    available from a node.
    Hint

    It measures how many next choices each node has.

    Answer

    successors

    Explanation

    The branching factor quantifies the number of successors generated from a node.

  46. 46
    If the maximum search-tree depth is MMM, the last layer contains BMB^MBM nodes, so the full tree's size is on the order of
    _____
    .
    Hint

    The exponentially large last layer dominates the total.

    Answer

    BMB^MBM

    Explanation

    The number of nodes in the last layer is BMB^MBM, which dominates the total number of nodes in the tree.

  47. 47
    In the worst case, depth-first search may explore the whole tree, giving time complexity on the order of
    _____
    .
    Hint

    Use the branching factor and maximum depth to estimate the size of the tree.

    Answer

    BMB^MBM

    Explanation

    If the solution is found only at the end of the traversal, depth-first search may do work proportional to the entire tree, or BMB^MBM.

  48. 48
    Depth-first search uses space on the order of
    _____
    because it stores roughly BBB successors for each of MMM levels along its current path.
    Hint

    Its fringe grows with path depth rather than with the width of the whole tree.

    Answer

    BMBMBM

    Explanation

    Depth-first search requires roughly BBB fringe nodes per level over MMM levels, giving space complexity on the order of BMBMBM.

  49. 49
    Depth-first search is complete when the search tree is
    _____
    .
    Hint

    A finite tree can eventually be exhaustively explored.

    Answer

    finite

    Explanation

    If the tree is finite, depth-first search eventually explores it and finds a solution if one exists.

  50. 50
    Depth-first search is not generally optimal because it may return a goal found along a
    _____
    path.
    Hint

    The traversal order does not prioritize low-cost or short solutions.

    Answer

    long

    Explanation

    Depth-first search follows its traversal order and may find a deeper or more costly solution before a better one.

  51. 51
    If all actions have equal cost, breadth-first search finds a solution with the fewest
    _____
    .
    Hint

    In this special case, path length and path cost rank solutions in the same way.

    Answer

    actions

    Explanation

    Breadth-first search finds the shallowest goal, which is a minimum-cost solution when every action has the same cost.

  52. 52
    When action costs differ, breadth-first search is not guaranteed to find the
    _____
    path.
    Hint

    It ranks paths by depth rather than by accumulated cost.

    Answer

    cheapest

    Explanation

    Breadth-first search prioritizes the number of actions, so it may miss a cheaper path that uses more actions.

  53. 53
    If the shallowest goal is at depth sss, breadth-first search has time complexity on the order of
    _____
    .
    Hint

    The number of nodes grows exponentially with the solution depth.

    Answer

    BsB^sBs

    Explanation

    Breadth-first search explores layers up to the solution depth, giving time complexity on the order of BsB^sBs.

  54. 54
    Breadth-first search can require space on the order of BsB^sBs because the fringe can contain an entire wide layer near the solution depth
    _____
    .
    Hint

    The largest fringe occurs around the depth of the shallowest solution.

    Answer

    sss

    Explanation

    Breadth-first search stores many nodes waiting in the deepest explored layer, requiring space on the order of BsB^sBs.

  55. 55
    Breadth-first search is complete for a search tree in which each level has a finite number of nodes and a solution exists at a finite
    _____
    .
    Hint

    Layer-by-layer exploration eventually reaches any finitely distant goal.

    Answer

    depth

    Explanation

    Breadth-first search proceeds through increasing depths, so it will reach a goal at any finite depth when each level is finite.

  56. 56
    Iterative deepening repeatedly runs depth-first search with an increasing depth
    _____
    .
    Hint

    Each run is prevented from going beyond a specified depth.

    Answer

    limit

    Explanation

    Iterative deepening first searches to a small depth limit, then increases the limit if no solution is found.

  57. 57
    Iterative deepening repeats some work across runs, but this is usually manageable because the deepest layer is much larger than all the
    _____
    layers combined.
    Hint

    The repeated exploration is concentrated in relatively small upper levels.

    Answer

    previous

    Explanation

    The exponentially larger last layer dominates the tree, so repeating work in earlier layers adds relatively little overhead.

  58. 58
    Uniform cost search selects the fringe node with the lowest accumulated
    _____
    so far.
    Hint

    Unlike breadth-first search, it ranks paths by their transition weights.

    Answer

    cost

    Explanation

    Uniform cost search expands the path with the lowest cumulative cost encountered so far.

  59. 59
    Uniform cost search is like breadth-first search when all actions cost the same, but it orders nodes by path cost instead of by
    _____
    .
    Hint

    Breadth-first search uses the number of steps as its ordering criterion.

    Answer

    depth

    Explanation

    Uniform cost search generalizes breadth-first search to varying action costs by ordering paths by their accumulated cost.

  60. 60
    Uniform cost search should not stop as soon as a goal first appears on the fringe, because a lower-cost path to a goal may still be
    _____
    .
    Hint

    A goal can be waiting while a cheaper partial path has not yet been explored.

    Answer

    found

    Explanation

    The first goal on the fringe may not be the cheapest; a lower-cost path could still lead to a goal.

  61. 61
    Uniform cost search can declare success when it selects a goal node as the lowest-cost node to
    _____
    .
    Hint

    The algorithm checks the goal when a node is selected from the fringe.

    Answer

    expand

    Explanation

    When the lowest-cost selected node is a goal, uniform cost search can return its path as optimal, assuming positive action costs.

  62. 62
    Using effective depth C∗/ϵC^*/\epsilonC∗/ϵ, uniform cost search can have time and space complexity on the order of BBB raised to the
    _____
    .
    Hint

    The search may grow exponentially in the maximum number of actions affordable below the solution cost.

    Answer

    effective depth

    Explanation

    The number of nodes can grow exponentially in the effective depth, producing complexity on the order of BC∗/ϵB^{C^*/\epsilon}BC∗/ϵ.

  63. 63
    Uniform cost search is complete under assumptions such as strictly
    _____
    action costs, which prevent problematic cost cycles.
    Hint

    The costs must not allow endless cycling without increasing accumulated cost.

    Answer

    positive

    Explanation

    With positive costs and the relevant finiteness assumptions, uniform cost search systematically explores paths until it finds a solution.

  64. 64
    Uniform cost search does not use information about how close a node is to the goal, so it may explore in
    _____
    directions.
    Hint

    Its ordering is based on cost so far, not estimated progress toward the destination.

    Answer

    every

    Explanation

    Uniform cost search expands paths according to their accumulated cost and does not preferentially direct the search toward the goal.

  65. 65
    A priority queue can unify implementations of depth-first, breadth-first, and uniform cost search by assigning different
    _____
    to fringe nodes.
    Hint

    The queue ordering changes according to the search strategy.

    Answer

    priorities

    Explanation

    One implementation can use a priority queue, with priorities based on depth, shallowness, or accumulated path cost.

  66. 66
    A search algorithm can return a poor real-world route even when the algorithm is correct if the search problem's
    _____
    does not accurately represent the world.
    Hint

    The issue may be in how the real situation was converted into states and transitions.

    Answer

    formulation

    Explanation

    A mismatch between the real world and the search-problem model can cause an algorithm to produce an unsuitable route despite functioning correctly.

  67. 67
    If a needed road or connection is missing from the state space graph, search cannot use that
    _____
    to reach the destination.
    Hint

    The algorithm can only traverse transitions represented in its graph.

    Answer

    path

    Explanation

    A route absent from the state space graph cannot be discovered by search, even if it exists in the real world.

  68. 68
    A route planner that sends a driver onto a boat may be following the model correctly while exposing an incomplete or inaccurate
    _____
    .
    Hint

    The example concerns a representation of roads and connections.

    Answer

    map

    Explanation

    An odd route can result from an incomplete map rather than a failure of the search algorithm itself.

  69. 69
    In practical search, the state space graph is generally handled
    _____
    rather than drawn or fully constructed in advance.
    Hint

    The algorithm generates only the parts it needs while searching.

    Answer

    implicitly

    Explanation

    Real state spaces are often too large to construct explicitly, so search algorithms generate relevant portions on demand.

  70. 70
    A search tree is typically constructed on demand so the algorithm explores only as much of it as needed to find a
    _____
    .
    Hint

    The algorithm need not enumerate every possible plan before returning.

    Answer

    solution

    Explanation

    Search algorithms incrementally generate nodes and stop when they find a solution, rather than building the entire tree ahead of time.

  71. 71
    A core practical challenge in search is building a good
    _____
    of the real-world problem.
    Hint

    The algorithms depend on how states, actions, and costs represent the real situation.

    Answer

    model

    Explanation

    Good search results depend on modeling the world and the objective accurately through the problem formulation.

1 of 71
Question 1 of 71

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent