1. Home
  2. Explore
  3. Computer Science
  4. Optimization Problems in AI

Study methods

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

Optimization Problems in AI

  • 35Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Local Search Fundamentals
Optimization is about choosing the
option from a set of possible options.

35 questions

  1. 1
    Optimization is about choosing the
    _____
    option from a set of possible options.
    Hint

    Think about the goal of optimization: to pick the top choice.

    Answer

    best

  2. 2
    Local search differs from search algorithms like breadth-first search because it maintains only a
    _____
    node at a time.
    Hint

    Instead of many paths, local search focuses on one current state.

    Answer

    single

  3. 3
    In a state-space landscape, the height of a vertical bar represents the
    _____
    of that state.
    Hint

    The height measures how good or costly a state is.

    Answer

    value

  4. 4
    When trying to find a global maximum, the function we optimize is called the
    _____
    function.
    Hint

    This function measures how good a state is.

    Answer

    objective

  5. 5
    When trying to find a global minimum, the function we optimize is called the
    _____
    function.
    Hint

    This function measures how expensive or bad a state is.

    Answer

    cost

  6. 6
    A state with a value higher than all its neighbors but not necessarily the highest overall is called a
    _____
    maximum.
    Hint

    It is the best in its immediate neighborhood but not globally.

    Answer

    local

  7. 7
    In the hill-climbing algorithm, we start with an initial state and repeatedly move to a
    _____
    neighbor until no better neighbor exists.
    Hint

    We only accept moves that improve the current state.

    Answer

    better

  8. 8
    In the pseudocode for hill climbing, if the best neighbor is not better than the current state, the algorithm
    _____
    .
    Hint

    The algorithm stops because no improvement is possible.

    Answer

    terminates

  9. 9
    For the hospital placement problem, a neighbor of a state is defined as moving one hospital one square left, right, up, or
    _____
    .
    Hint

    Only orthogonal moves are considered.

    Answer

    down

  10. 10
    Hill climbing can get stuck at a
    _____
    maximum or minimum because it never makes a move that worsens the state.
    Hint

    This is a peak or valley that is not the global best.

    Answer

    local

  11. 11
    A flat region in the state-space landscape where all neighbors have the same value is called a
    _____
    .
    Hint

    It's a level area that can cause hill climbing to halt.

    Answer

    plateau

  12. 12
    In steepest-ascent hill climbing, we choose the
    _____
    neighbor among all neighbors.
    Hint

    It selects the best possible move at each step.

    Answer

    highest-valued

  13. 13
    Stochastic hill climbing chooses
    _____
    from among all higher-valued neighbors.
    Hint

    Instead of the best, it picks any improving neighbor at random.

    Answer

    randomly

  14. 14
    First-choice hill climbing moves to the
    _____
    higher-valued neighbor it finds.
    Hint

    It doesn't consider all neighbors; it stops at the first improvement.

    Answer

    first

  15. 15
    Random-restart hill climbing performs hill climbing
    _____
    times from random initial states and picks the best result.
    Hint

    This reduces the chance of getting stuck in a local optimum.

    Answer

    multiple

  16. 16
    Local beam search keeps track of
    _____
    highest-valued neighbors instead of just one.
    Hint

    The number of states maintained is a parameter.

    Answer

    k

  17. 17
    Simulated annealing sometimes accepts a
    _____
    neighbor to avoid getting stuck in local optima.
    Hint

    The algorithm occasionally allows moves that decrease quality.

    Answer

    worse

  18. 18
    In simulated annealing, the probability of accepting a worse neighbor is based on a
    _____
    schedule that decreases over time.
    Hint

    This parameter controls the randomness of moves.

    Answer

    temperature

  19. 19
    The probability of accepting a worse neighbor in simulated annealing is calculated as $e^{\frac{\Delta E}{
    _____
    }}$.
    Hint

    The denominator involves the current temperature.

    Answer

    T

  20. 20
    In the traveling salesman problem, a neighbor can be generated by picking two edges and
    _____
    them.
    Hint

    This operation changes the route by swapping connections.

    Answer

    switching

  21. 21
    Linear programming aims to
    _____
    a linear cost function subject to linear constraints.
    Hint

    The goal is often to reduce costs.

    Answer

    minimize

  22. 22
    Two common algorithms for solving linear programs are simplex and
    _____
    -point algorithms.
    Hint

    This class of algorithms approaches the solution from inside the feasible region.

    Answer

    interior

  23. 23
    A constraint satisfaction problem consists of variables, domains, and
    _____
    .
    Hint

    These define the allowed combinations of variable assignments.

    Answer

    constraints

  24. 24
    In exam scheduling, a constraint that two exams cannot be on the same day is an example of a
    _____
    constraint.
    Hint

    It involves exactly two variables.

    Answer

    binary

  25. 25
    A constraint that involves only one variable is called a
    _____
    constraint.
    Hint

    It affects a single variable.

    Answer

    unary

  26. 26
    Node consistency requires that every value in a variable's domain satisfies its
    _____
    constraints.
    Hint

    This consistency checks only single-variable constraints.

    Answer

    unary

  27. 27
    Arc consistency requires that for every value in XXX's domain, there exists a value in YYY's domain that satisfies the
    _____
    constraint between XXX and YYY.
    Hint

    This involves two variables.

    Answer

    binary

  28. 28
    The revise function removes values from XXX's domain that have
    _____
    possible value in YYY's domain satisfying the constraint.
    Hint

    It eliminates unsupported values.

    Answer

    no

  29. 29
    The AC-3 algorithm maintains a
    _____
    of arcs to enforce arc consistency.
    Hint

    A data structure for processing items in order.

    Answer

    queue

  30. 30
    In AC-3, if revising XXX's domain reduces it, we add all arcs (Z,X)(Z, X)(Z,X) for neighbors ZZZ
    _____
    YYY to the queue.
    Hint

    We skip the neighbor we just processed.

    Answer

    except

  31. 31
    Backtracking search for CSPs assigns variables one at a time and backtracks when a
    _____
    is reached.
    Hint

    When no value works for an unassigned variable.

    Answer

    dead end

  32. 32
    Interleaving inference during backtracking search enforces
    _____
    consistency after each assignment.
    Hint

    This reduces domains and avoids dead ends.

    Answer

    arc

  33. 33
    The minimum remaining values (MRV) heuristic selects the variable with the
    _____
    domain.
    Hint

    Choose the variable with the fewest options left.

    Answer

    smallest

  34. 34
    The degree heuristic selects the variable with the
    _____
    number of constraints with other unassigned variables.
    Hint

    Choose the variable that is most constrained.

    Answer

    highest

  35. 35
    The least constraining value heuristic chooses the value that rules out the
    _____
    choices for neighboring variables.
    Hint

    Leave as much flexibility as possible.

    Answer

    fewest

1 of 35
Question 1 of 35

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent