1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Overview

Study methods

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

Machine Learning Overview

  • 30Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Search Problem Definition
In a search problem, the function that returns the initial state is called the
.

30 questions

  1. 1
    In a search problem, the function that returns the initial state is called the
    _____
    .
    Hint

    This function provides the starting point for the search.

    Answer

    start state

  2. 2
    The function in a search problem that takes a state and returns a list of possible steps (each with an action, cost, and resulting state) is called
    _____
    .
    Hint

    This function tells you what actions are available from a given state.

    Answer

    successors

  3. 3
    The function in a search problem that checks whether a given state is a goal state is called
    _____
    .
    Hint

    This function returns a boolean indicating if the search should stop.

    Answer

    is_end

  4. 4
    In a search problem, the objective is to find a sequence of actions that minimizes the
    _____
    .
    Hint

    Think about what we want to minimize over the entire action sequence.

    Answer

    total cost

  5. 5
    In the travel search problem, the cost of walking from block i to i+1 is
    _____
    minute(s).
    Hint

    The problem states a specific time for walking one block.

    Answer

    1

  6. 6
    In the travel search problem, the cost of taking the tram from block i to 2i is
    _____
    minute(s).
    Hint

    The tram takes longer than walking.

    Answer

    2

  7. 7
    The state in a search problem must contain all information needed to evaluate future actions, costs, and
    _____
    .
    Hint

    The state should enable you to determine what actions are possible and their outcomes.

    Answer

    successors

  8. 8
    To incorporate the constraint of a limited number of tram tickets into the search problem, the state must include the current location and the
    _____
    .
    Hint

    You need to track a resource that is consumed by taking the tram.

    Answer

    number of tickets remaining

  9. 9
    To enforce the constraint that the tram cannot be taken twice in a row, the state must include whether the
    _____
    .
    Hint

    The state needs to remember information about the previous action to enforce the rule.

    Answer

    last action was taking the tram

  10. 10
    Including the entire history in the state is possible but leads to a very large number of states, which hurts the performance of algorithms like
    _____
    .
    Hint

    This algorithm scales with the number of states.

    Answer

    dynamic programming

  11. 11
    The function that returns the cost of the minimum-cost solution from a given state to an end state is called
    _____
    .
    Hint

    This is a key definition used in the recurrence for exhaustive search.

    Answer

    future cost

  12. 12
    In the recurrence for future cost, the future cost of a state is the minimum over all successors of (immediate cost +
    _____
    ).
    Hint

    The total cost from the current state is the cost of the first action plus the optimal cost from the resulting state.

    Answer

    future cost of the successor state

  13. 13
    Exhaustive search without caching explores some states more than once, leading to
    _____
    time complexity in the worst case.
    Hint

    Think about the number of paths through a search graph.

    Answer

    exponential

  14. 14
    The memory complexity of exhaustive search (ignoring cycles) is linear in the
    _____
    .
    Hint

    This is due to the recursion stack depth.

    Answer

    length of the solution

  15. 15
    To handle cycles in exhaustive search, one trick is to add the
    _____
    to the state, turning cycles into a DAG.
    Hint

    This makes states unique even when revisiting the same location.

    Answer

    number of steps taken

  16. 16
    Dynamic programming is essentially exhaustive search plus
    _____
    .
    Hint

    It avoids recomputation by storing results.

    Answer

    caching

  17. 17
    Dynamic programming provides large speedups when there are many ways to
    _____
    a given state.
    Hint

    It's useful when the number of paths is much larger than the number of states.

    Answer

    reach

  18. 18
    Dynamic programming is not feasible when the number of states is too large to fit in
    _____
    .
    Hint

    The algorithm stores a cache for each state.

    Answer

    memory

  19. 19
    Best-of-n search repeatedly performs
    _____
    from the start state using a policy and selects the best solution.
    Hint

    Each rollout is a random trajectory following the policy.

    Answer

    rollouts

  20. 20
    The function that maps a state to an action (can be deterministic or stochastic) is called a
    _____
    .
    Hint

    This term is borrowed from reinforcement learning.

    Answer

    policy

  21. 21
    Best-of-n search is
    _____
    embarrassingly parallel because each rollout is independent.
    Hint

    No communication is needed between rollouts.

    Answer

    embarrassingly parallel

  22. 22
    In beam search, the number of partial solutions maintained at each step is called the
    _____
    .
    Hint

    This parameter controls how many candidates are kept.

    Answer

    beam width

  23. 23
    When beam width is set to infinity, beam search becomes
    _____
    .
    Hint

    No pruning occurs, so all paths are explored.

    Answer

    exhaustive search

  24. 24
    In beam search, after expanding all candidates and sorting by cost, the algorithm keeps only the
    _____
    candidates.
    Hint

    Pruning removes the worst candidates to keep the number fixed.

    Answer

    beam width best

  25. 25
    The key difference between best-of-n and beam search is that best-of-n is stochastic while beam search is
    _____
    .
    Hint

    Beam search uses a fixed sorting and pruning rule.

    Answer

    deterministic

  26. 26
    In a language model search problem, the cost of selecting a token is the
    _____
    of that token's probability.
    Hint

    We want to minimize cost to maximize probability.

    Answer

    negative log

  27. 27
    In the language model search problem, a verifier can be incorporated by giving a bonus of
    _____
    to solutions that pass verification.
    Hint

    A negative cost bonus reduces the total cost.

    Answer

    -100

  28. 28
    The state in a language model search problem consists of the prompt plus the
    _____
    generated so far.
    Hint

    The state must contain all tokens produced up to the current point.

    Answer

    prefix of the response

  29. 29
    The quote from Rich Sutton's 'Bitter Lesson' states that general methods that leverage
    _____
    are ultimately the most effective.
    Hint

    The essay argues for scalable methods.

    Answer

    computation

  30. 30
    According to the Bitter Lesson, the two methods that seem to scale arbitrarily with computation are search and
    _____
    .
    Hint

    These two pillars are highlighted as key.

    Answer

    learning

1 of 30
Question 1 of 30

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent