1. Home
  2. Explore
  3. Computer Science
  4. Artificial Intelligence Introduction

Study methods

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

Artificial Intelligence Introduction

  • 67Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: AI History

What was the central goal of the 1956 Dartmouth workshop on artificial intelligence?

67 questions

  1. 1

    What was the central goal of the 1956 Dartmouth workshop on artificial intelligence?

    1. A

      To replace symbolic reasoning with statistical learning from large datasets

    2. B

      To precisely capture aspects of learning and intelligence so machines could simulate them

    3. C

      To create a universal programming language for controlling industrial robots

    4. D

      To build the first commercially successful system for recognizing handwritten digits

    Correct answer
    B

    To precisely capture aspects of learning and intelligence so machines could simulate them

    Explanation

    The Dartmouth researchers hoped that every aspect of learning or intelligence could be precisely described well enough for a machine to simulate it.

  2. 2

    Which development is associated with the early Dartmouth-era AI programs?

    1. A

      Programs that generated deep neural networks from satellite imagery

    2. B

      Programs that played checkers and proved mathematical theorems

    3. C

      Programs that drove autonomous vehicles through crowded cities

    4. D

      Programs that translated every language accurately in real time

    Correct answer
    B

    Programs that played checkers and proved mathematical theorems

    Explanation

    Early AI produced programs that could play checkers, prove theorems, and generate other interesting computational artifacts.

  3. 3

    What did the failed English–Russian–English translation example illustrate?

    1. A

      Government funding increased after the translation produced humorous results

    2. B

      Early optimism underestimated the complexity and subtlety of language

    3. C

      Translation errors occurred only because Russian lacked precise vocabulary

    4. D

      Machine translation succeeded once enough computational resources were added

    Correct answer
    B

    Early optimism underestimated the complexity and subtlety of language

    Explanation

    The translation of “The spirit is willing but the flesh is weak” into “The vodka is good but the meat is rotten” illustrated the limits of early systems and excessive optimism.

  4. 4

    Which combination of factors contributed to the first AI winter?

    1. A

      A lack of programming languages, hardware manufacturers, and mathematical notation

    2. B

      Insufficient computing power, exponential search, and limited information

    3. C

      Poor hardware reliability, perfect language models, and excessive funding

    4. D

      Excessive computing power, linear search, and unlimited training data

    Correct answer
    B

    Insufficient computing power, exponential search, and limited information

    Explanation

    Early AI faced far less computing power than today, problems involving exponential search, and insufficient information or experience for tasks such as translation.

  5. 5

    Why could additional computation alone not solve early machine translation?

    1. A

      Translation depends exclusively on faster processors rather than information

    2. B

      Translation is impossible for systems that use mathematical representations

    3. C

      Translation requires learning a language and its contextual subtleties

    4. D

      Translation can be solved only by increasing the number of search branches

    Correct answer
    C

    Translation requires learning a language and its contextual subtleties

    Explanation

    The lecture emphasized that translation is not merely a computation problem; a system must learn the language and experience its subtleties.

  6. 6

    Which contribution emerged from early AI research despite its limited progress toward general intelligence?

    1. A

      The proof that neural networks cannot represent logical relationships

    2. B

      Ideas such as garbage collection and time-sharing in computing

    3. C

      The elimination of the need for abstraction in programming languages

    4. D

      The discovery that all intelligence can be represented by fixed rules

    Correct answer
    B

    Ideas such as garbage collection and time-sharing in computing

    Explanation

    Early AI contributed ideas underlying high-level programming languages, including garbage collection and time-sharing.

  7. 7

    What was the defining approach of expert systems in the 1970s and 1980s?

    1. A

      Using random actions to discover solutions without domain knowledge

    2. B

      Representing every possible real-world situation with a continuous equation

    3. C

      Training multilayer neural networks on massive image datasets

    4. D

      Encoding experts’ knowledge about a narrow domain as rules

    Correct answer
    D

    Encoding experts’ knowledge about a narrow domain as rules

    Explanation

    Expert systems focused on narrow applications and generally encoded expert knowledge as a set of deterministic rules.

  8. 8

    Why did rule-based expert systems eventually face major limitations?

    1. A

      Deterministic rules could not capture all world nuances and required manual maintenance

    2. B

      They were too flexible to represent expert knowledge consistently

    3. C

      They learned too rapidly from data and became impossible to interpret

    4. D

      They depended on neural-network training that was unavailable at the time

    Correct answer
    A

    Deterministic rules could not capture all world nuances and required manual maintenance

    Explanation

    Rule-based knowledge was not rich enough to represent the world’s nuances and required substantial manual effort to maintain.

  9. 9

    What was the significance of the McCulloch–Pitts work from 1943?

    1. A

      It demonstrated that convolutional networks could recognize postal codes

    2. B

      It established gradient descent as an optimization method for AI

    3. C

      It introduced the first expert system for medical diagnosis

    4. D

      It developed a mathematical theory of artificial neural networks

    Correct answer
    D

    It developed a mathematical theory of artificial neural networks

    Explanation

    McCulloch and Pitts developed a theory of artificial neural networks and mathematically connected neural activity with logic.

  10. 10

    What limitation of single-layer linear classifiers was highlighted by the work on perceptrons?

    1. A

      They cannot classify any examples with two input features

    2. B

      They cannot solve the XOR classification problem

    3. C

      They cannot be expressed using mathematical equations

    4. D

      They cannot produce outputs without a hidden layer

    Correct answer
    B

    They cannot solve the XOR classification problem

    Explanation

    The lecture identified the inability of linear classifiers to solve XOR as an important result associated with the perceptron analysis.

  11. 11

    What did backpropagation make possible for neural networks?

    1. A

      It restricted neural networks to handwritten-digit recognition

    2. B

      It converted every nonlinear network into a single linear classifier

    3. C

      It provided a general way to train multilayer neural networks

    4. D

      It eliminated the need for data when learning network parameters

    Correct answer
    C

    It provided a general way to train multilayer neural networks

    Explanation

    Backpropagation enabled the training of multilayer neural networks, overcoming the limited expressive power of single-layer models.

  12. 12

    Why was Yann LeCun’s 1989 convolutional neural network work historically important?

    1. A

      It was the first system to prove that logic and neural networks were identical

    2. B

      It solved general machine translation without language-specific training

    3. C

      It introduced expert systems for converting customer orders into parts

    4. D

      It recognized handwritten digits and was deployed to read postal codes

    Correct answer
    D

    It recognized handwritten digits and was deployed to read postal codes

    Explanation

    LeCun applied a convolutional neural network to handwritten-digit recognition, and the technology was deployed by the USPS for reading ZIP codes.

  13. 13

    What effect did AlexNet have in 2012?

    1. A

      It introduced the first logical representation of the game of Go

    2. B

      It demonstrated that symbolic rules outperform learning in visual tasks

    3. C

      It produced major gains on ImageNet and transformed computer vision

    4. D

      It ended the use of neural networks in image-processing applications

    Correct answer
    C

    It produced major gains on ImageNet and transformed computer vision

    Explanation

    AlexNet’s strong ImageNet results helped trigger the major transformation of the computer-vision community under deep learning.

  14. 14

    Which statement best describes the two major intellectual traditions in AI?

    1. A

      One rejects mathematics, while the other rejects empirical evaluation

    2. B

      One studies games exclusively, while the other studies medical diagnosis exclusively

    3. C

      One focuses only on hardware, while the other focuses only on software engineering

    4. D

      One emphasizes logic and symbolic reasoning, while the other is inspired by neuroscience

    Correct answer
    D

    One emphasizes logic and symbolic reasoning, while the other is inspired by neuroscience

    Explanation

    The lecture contrasted the logical tradition associated with McCarthy with the neuroscience-inspired neural-network tradition.

  15. 15

    Why does AlphaGo illustrate a connection between symbolic and neural approaches?

    1. A

      Neural networks can play Go only after the game is reduced to a linear classifier

    2. B

      AlphaGo uses only manually written rules and does not rely on learned models

    3. C

      Go has no formal rules, so neural networks must invent the game’s legal moves

    4. D

      Go has mathematically precise rules, but neural networks can learn to play it extremely well

    Correct answer
    D

    Go has mathematically precise rules, but neural networks can learn to play it extremely well

    Explanation

    The rules of Go can be formally specified using logic, yet neural networks provide the learned capabilities needed for very strong play.

  16. 16

    How does AI relate to fields such as statistics, economics, and optimization?

    1. A

      AI combines techniques that were often developed independently in other fields

    2. B

      AI replaces techniques from other fields rather than combining them

    3. C

      AI developed all of these techniques internally before other fields adopted them

    4. D

      AI uses statistics but has no meaningful connection to optimization or economics

    Correct answer
    A

    AI combines techniques that were often developed independently in other fields

    Explanation

    The lecture described AI as a melting pot that combines ideas such as maximum likelihood, game theory, optimization, and gradient descent.

  17. 17

    What is the difference between the agent view and the tool view of AI?

    1. A

      The agent view focuses on narrow tasks, while the tool view rejects practical applications

    2. B

      The agent view seeks to recreate intelligence, while the tool view seeks to benefit society

    3. C

      The agent view concerns data collection, while the tool view concerns mathematical proofs

    4. D

      The agent view studies only software, while the tool view studies only hardware

    Correct answer
    B

    The agent view seeks to recreate intelligence, while the tool view seeks to benefit society

    Explanation

    The agent view asks how to create or recreate intelligence; the tool view asks how technology can be used to help people and society.

  18. 18

    Which capability is an example of declarative knowledge?

    1. A

      Knowing how to coordinate movements while walking

    2. B

      Knowing how to grasp a cup without spilling it

    3. C

      Knowing that Paris is the capital of France

    4. D

      Knowing how to ride a bicycle

    Correct answer
    C

    Knowing that Paris is the capital of France

    Explanation

    Declarative knowledge concerns facts about the world, such as the capital of France.

  19. 19

    Which capability is an example of procedural knowledge?

    1. A

      Knowing that a certain object is visible

    2. B

      Knowing how to ride a bicycle

    3. C

      Knowing that Paris is the capital of France

    4. D

      Knowing that a particular city is hot

    Correct answer
    B

    Knowing how to ride a bicycle

    Explanation

    Procedural knowledge concerns how to perform an activity, such as riding a bicycle.

  20. 20

    What role does learning play in human-like intelligence?

    1. A

      It allows systems to acquire capabilities through experience rather than having them fully specified at birth

    2. B

      It prevents systems from applying knowledge to new situations

    3. C

      It ensures that systems need only one example for every possible task

    4. D

      It replaces perception, language, and reasoning with fixed reflexes

    Correct answer
    A

    It allows systems to acquire capabilities through experience rather than having them fully specified at birth

    Explanation

    Humans are not born with all their capabilities; they have the capacity to acquire them through experience and learning.

  21. 21

    What most clearly distinguishes current narrow AI systems from humans, according to the lecture?

    1. A

      AI systems cannot optimize any task, while humans can optimize every task perfectly

    2. B

      AI systems and humans operate in essentially identical learning regimes

    3. C

      AI systems often excel at specific tasks using enormous data, while humans handle diverse tasks from few examples

    4. D

      AI systems learn broadly from few examples, while humans require millions of examples for each task

    Correct answer
    C

    AI systems often excel at specific tasks using enormous data, while humans handle diverse tasks from few examples

    Explanation

    Current systems typically specialize in narrow tasks and use millions or billions of examples, whereas humans learn diverse tasks from relatively few examples.

  22. 22

    What is an adversarial example in an AI system?

    1. A

      A training example that contains more information than the model can store

    2. B

      A randomly selected example used to measure ordinary generalization

    3. C

      A human explanation that corrects a model’s prediction after deployment

    4. D

      An intentionally modified input that causes a model to make an incorrect prediction

    Correct answer
    D

    An intentionally modified input that causes a model to make an incorrect prediction

    Explanation

    Adversarial examples are inputs altered in ways that can fool systems, such as causing face-recognition or stop-sign classifiers to misidentify objects.

  23. 23

    What problem did the translation example involving Malay illustrate?

    1. A

      A model becomes unbiased when trained on data produced by society

    2. B

      A model’s predictions are independent of the data used to train it

    3. C

      A model cannot process languages that use alphabetic writing systems

    4. D

      A model can reproduce societal gender biases present in its training data

    Correct answer
    D

    A model can reproduce societal gender biases present in its training data

    Explanation

    The translation system associated nursing with “she” and programming with “he,” illustrating how social biases can enter models through data.

  24. 24

    Why can different definitions of fairness conflict mathematically?

    1. A

      Different fairness criteria may each seem reasonable but cannot all be satisfied simultaneously

    2. B

      Fairness can always be achieved by assigning identical predictions to everyone

    3. C

      Fairness has one universally accepted mathematical definition in every context

    4. D

      Fairness criteria conflict only when models use no data

    Correct answer
    A

    Different fairness criteria may each seem reasonable but cannot all be satisfied simultaneously

    Explanation

    The lecture emphasized that different notions of fairness may appear reasonable from first principles while being mathematically incompatible.

  25. 25

    What is the modeling–inference–learning paradigm intended to provide?

    1. A

      A replacement for all programming and mathematical analysis

    2. B

      A fixed neural-network architecture for every AI application

    3. C

      A principled structure for approaching complex real-world AI problems

    4. D

      A procedure that avoids simplifying the real world into mathematical form

    Correct answer
    C

    A principled structure for approaching complex real-world AI problems

    Explanation

    The paradigm provides a structured way to move from complex real-world problems to models, computations, and learned parameters.

  26. 26

    What is a model in the modeling–inference–learning paradigm?

    1. A

      A mathematically precise simplification of a complicated real-world situation

    2. B

      A complete copy of every detail in the real world

    3. C

      A programming language that automatically solves every problem

    4. D

      A collection of predictions made without any underlying assumptions

    Correct answer
    A

    A mathematically precise simplification of a complicated real-world situation

    Explanation

    A model simplifies reality while retaining a mathematically precise structure that can be processed computationally.

  27. 27

    Why must modeling involve deciding which information to retain?

    1. A

      A model should discard information randomly to avoid introducing assumptions

    2. B

      A model necessarily discards information, so useful details must be selected carefully

    3. C

      A model becomes mathematically precise only when it includes all observations

    4. D

      A model can preserve every real-world detail without computational cost

    Correct answer
    B

    A model necessarily discards information, so useful details must be selected carefully

    Explanation

    Modeling requires simplification, so the modeler must determine which information matters and which can be discarded.

  28. 28

    How could finding a route through a city be represented as a graph model?

    1. A

      Locations are outputs, connections are training examples, and costs are model parameters

    2. B

      Locations are variables, connections are probability distributions, and costs are omitted

    3. C

      Locations are edge weights, connections are nodes, and costs are assigned to routes only

    4. D

      Locations are nodes, connections are edges, and travel costs are assigned to edges

    Correct answer
    D

    Locations are nodes, connections are edges, and travel costs are assigned to edges

    Explanation

    In the example, nodes represent points in the city, edges represent possible travel between points, and edge weights represent costs.

  29. 29

    What does inference mean in this framework?

    1. A

      Replacing a model with a collection of manually written instructions

    2. B

      Estimating model parameters directly from raw data without a model

    3. C

      Asking questions about a model and computing answers from its structure

    4. D

      Choosing which real-world details should be discarded during modeling

    Correct answer
    C

    Asking questions about a model and computing answers from its structure

    Explanation

    Inference involves asking questions about a model, such as finding the shortest path in a weighted graph.

  30. 30

    What is the purpose of learning in the modeling–inference–learning paradigm?

    1. A

      To estimate model parameters from data rather than manually specifying every detail

    2. B

      To answer model queries without performing any computation

    3. C

      To guarantee that the model preserves every feature of reality

    4. D

      To remove the need for a model before making predictions

    Correct answer
    A

    To estimate model parameters from data rather than manually specifying every detail

    Explanation

    Learning fills in the parameters of a model using data, avoiding the need to manually encode all relevant information.

  31. 31

    What is the central benefit of machine learning described in software-engineering terms?

    1. A

      It eliminates the need for code by storing only raw observations

    2. B

      It moves all data complexity into a larger hand-written rule set

    3. C

      It moves complexity from manually written code into data

    4. D

      It replaces generalization with memorization of the training examples

    Correct answer
    C

    It moves complexity from manually written code into data

    Explanation

    Machine learning can use large amounts of naturally collected data with relatively less code instead of requiring huge manually written rule systems.

  32. 32

    What does generalization mean in machine learning?

    1. A

      Memorizing every example so that no prediction is uncertain

    2. B

      Using a model only on the exact data from which it was learned

    3. C

      Reducing the training error without considering future inputs

    4. D

      Performing well on new experiences rather than merely fitting the training data

    Correct answer
    D

    Performing well on new experiences rather than merely fitting the training data

    Explanation

    The key goal is performance on new experiences, not merely performance on the examples used to fit the model.

  33. 33

    Which description best fits a reflex model?

    1. A

      It explicitly searches through future states before producing an action

    2. B

      It stores uncertain dependencies between variables over time

    3. C

      It applies a fixed set of computations directly from input to output

    4. D

      It assigns values to variables subject to a collection of constraints

    Correct answer
    C

    It applies a fixed set of computations directly from input to output

    Explanation

    Reflex models perform a fixed computation from input to output without explicitly planning through possible future states.

  34. 34

    Which pair consists of examples of reflex models?

    1. A

      Linear classifiers and deep neural networks

    2. B

      Adversarial games and stochastic navigation

    3. C

      Shortest-path search and chess planning

    4. D

      Constraint satisfaction and Bayesian networks

    Correct answer
    A

    Linear classifiers and deep neural networks

    Explanation

    The lecture gave linear classifiers and deep neural networks as examples of reflex models.

  35. 35

    When is a state-based model especially appropriate?

    1. A

      When the system must respond without representing any situation

    2. B

      When all dependencies are soft and represented by probability distributions

    3. C

      When situations can be represented as states connected by actions

    4. D

      When a solution is only an assignment to variables with no meaningful sequence

    Correct answer
    C

    When situations can be represented as states connected by actions

    Explanation

    State-based models represent possible situations as states and actions as transitions between those states.

  36. 36

    Which application is naturally suited to a state-based model?

    1. A

      Representing a Sudoku solution only as simultaneous variable assignments

    2. B

      Estimating a soft dependency between noisy sensor variables

    3. C

      Encoding a fixed relationship between input features and an output label

    4. D

      Planning moves in a game or navigating through a physical environment

    Correct answer
    D

    Planning moves in a game or navigating through a physical environment

    Explanation

    Games, robotics, motion planning, and navigation involve situations and actions that change one state into another.

  37. 37

    What distinguishes a search problem from an adversarial game in state-based modeling?

    1. A

      In search, the objective is classification, whereas adversarial games require no strategy

    2. B

      In search, states do not exist, whereas adversarial games contain only variables

    3. C

      In search, the agent controls the relevant actions, whereas an adversary actively opposes it in a game

    4. D

      In search, outcomes are always random, whereas adversarial games are always deterministic

    Correct answer
    C

    In search, the agent controls the relevant actions, whereas an adversary actively opposes it in a game

    Explanation

    Search problems involve controlling the choices needed to find an optimal path, while adversarial games include an opponent trying to defeat the agent.

  38. 38

    How does randomness affect a state-based model?

    1. A

      Randomness removes the need to represent states and actions

    2. B

      Randomness converts every state-based problem into a reflex model

    3. C

      Randomness means the model contains only deterministic hard constraints

    4. D

      Actions or transitions may have uncertain outcomes, such as traffic or dice rolls

    Correct answer
    D

    Actions or transitions may have uncertain outcomes, such as traffic or dice rolls

    Explanation

    Stochastic state-based problems include uncertain events such as traffic conditions or dice rolls.

  39. 39

    Why is Sudoku naturally represented as a variable-based model rather than primarily as a state-based model?

    1. A

      Sudoku is solved by a fixed reflex computation with no constraints

    2. B

      Sudoku requires an opponent who actively changes the board after every move

    3. C

      A solution is an assignment of values satisfying constraints, and order of assignments is not central

    4. D

      Sudoku contains no variables because all digits are fixed in advance

    Correct answer
    C

    A solution is an assignment of values satisfying constraints, and order of assignments is not central

    Explanation

    Sudoku is naturally described by assigning values to variables subject to row, column, and sub-block constraints; the sequence of assignments is not essential.

  40. 40

    What is a constraint satisfaction problem?

    1. A

      A probabilistic model containing only soft dependencies

    2. B

      A state-based problem in which every transition has a random outcome

    3. C

      A reflex model that maps images directly to classifications

    4. D

      A variable-based problem in which assignments must satisfy hard constraints

    Correct answer
    D

    A variable-based problem in which assignments must satisfy hard constraints

    Explanation

    Constraint satisfaction problems assign values to variables while obeying hard restrictions, such as preventing one person from being in two places at once.

  41. 41

    What characterizes a Bayesian network in the lecture’s framework?

    1. A

      It is a state-based model with an opponent choosing transitions

    2. B

      It is a reflex model with no internal variables

    3. C

      It is a variable-based model with soft dependencies between variables

    4. D

      It is a constraint model in which every relationship is an absolute prohibition

    Correct answer
    C

    It is a variable-based model with soft dependencies between variables

    Explanation

    Bayesian networks were described as variable-based models that represent soft dependencies, such as noisy sensor observations.

  42. 42

    In a tracking example using a Bayesian network, what might the variables represent?

    1. A

      Only the final destination, with no intermediate positions or observations

    2. B

      The fixed weights of a linear classifier with no uncertainty

    3. C

      The legal moves available to an opponent in a board game

    4. D

      The positions of a car and sensor readings associated with those positions

    Correct answer
    D

    The positions of a car and sensor readings associated with those positions

    Explanation

    The example represented car positions over time and sensor readings that provide noisy evidence about those positions.

  43. 43

    What is the main purpose of logic-based systems in the lecture’s example?

    1. A

      To store heterogeneous statements and derive consequences from them

    2. B

      To classify images using millions of labeled examples

    3. C

      To generate predictions without using explicit statements

    4. D

      To replace all reasoning with random sampling

    Correct answer
    A

    To store heterogeneous statements and derive consequences from them

    Explanation

    The logic system accepted facts and rules, then used them to answer questions and derive consequences.

  44. 44

    If a logic system knows that students are people and that Alice is a student, what can it infer?

    1. A

      Alice is a person

    2. B

      Every person is necessarily a student

    3. C

      Alice is not a person

    4. D

      Alice must live in the same city as every student

    Correct answer
    A

    Alice is a person

    Explanation

    Applying the rule that students are people to the fact that Alice is a student allows the system to infer that Alice is a person.

  45. 45

    Why might a logic system answer “I don’t know” to a question about Bob being a student?

    1. A

      The system automatically assumes that every unknown person is not a student

    2. B

      The system can reason only about facts involving cities and weather

    3. C

      Neither the fact nor a rule deriving that fact is present in its knowledge

    4. D

      The system rejects all questions that contain a person’s name

    Correct answer
    C

    Neither the fact nor a rule deriving that fact is present in its knowledge

    Explanation

    A logic system does not need to classify an unmentioned fact as true or false; it may simply lack sufficient information.

  46. 46

    What advantage of logic systems was emphasized compared with many typical machine-learning systems?

    1. A

      They perform only one narrowly defined task after training

    2. B

      They are guaranteed to handle every real-world ambiguity without brittleness

    3. C

      They require millions of examples before using any new statement

    4. D

      A single statement can support many logically related conclusions

    Correct answer
    D

    A single statement can support many logically related conclusions

    Explanation

    Logic systems can accept a statement once and derive its ramifications and consequences, although they may be brittle.

  47. 47

    What is discrete optimization concerned with?

    1. A

      Classifying inputs using a fixed computation with no objective function

    2. B

      Finding the best object from a discrete set, such as a minimum-cost path

    3. C

      Finding the best real-valued vector under a differentiable objective only

    4. D

      Estimating probabilities without comparing candidate solutions

    Correct answer
    B

    Finding the best object from a discrete set, such as a minimum-cost path

    Explanation

    Discrete optimization seeks the best discrete object, such as the path with minimum cost among many possible paths.

  48. 48

    Why is dynamic programming useful for many discrete optimization problems?

    1. A

      It evaluates every possible complete solution independently

    2. B

      It expresses a complex problem through smaller overlapping subproblems

    3. C

      It avoids defining base cases or recurrence relationships

    4. D

      It works only when the number of candidate paths is already small

    Correct answer
    B

    It expresses a complex problem through smaller overlapping subproblems

    Explanation

    Dynamic programming reduces a complex problem to simpler subproblems and reuses solutions to overlapping subproblems.

  49. 49

    What is continuous optimization?

    1. A

      Assigning discrete labels while satisfying hard logical constraints

    2. B

      Searching through an opponent’s possible moves in a game

    3. C

      Finding a real-valued vector that minimizes or maximizes an objective function

    4. D

      Finding a path through a finite graph without assigning numerical parameters

    Correct answer
    C

    Finding a real-valued vector that minimizes or maximizes an objective function

    Explanation

    Continuous optimization seeks the best vector of real numbers according to an objective function.

  50. 50

    What does gradient descent do at each iteration?

    1. A

      It selects a random parameter value without evaluating the objective

    2. B

      It moves the parameters in the direction of greatest increase

    3. C

      It moves the parameters opposite the direction of the gradient

    4. D

      It enumerates every possible parameter vector before choosing one

    Correct answer
    C

    It moves the parameters opposite the direction of the gradient

    Explanation

    The gradient points in the direction of increase, so gradient descent subtracts a scaled gradient to move toward lower objective values.

  51. 51

    What role does the step size play in gradient descent?

    1. A

      It controls how far the parameters move in response to the gradient

    2. B

      It changes a continuous optimization problem into a discrete one

    3. C

      It guarantees that the objective is globally convex

    4. D

      It determines which training examples are included in the objective

    Correct answer
    A

    It controls how far the parameters move in response to the gradient

    Explanation

    The step size, denoted by �eta�eta�eta in the lecture, scales each update and helps control the size of parameter movements.

  52. 52

    What is the edit distance between two identical strings?

    1. A

      One, because one comparison is required

    2. B

      The square of the string length, because all alignments must be checked

    3. C

      The length of the string, because every character must be replaced

    4. D

      Zero, because no edits are needed

    Correct answer
    D

    Zero, because no edits are needed

    Explanation

    Edit distance counts the minimum number of insertions, deletions, and substitutions needed to transform one string into another. Identical strings require no edits.

  53. 53

    Which operations are allowed in the edit-distance problem described?

    1. A

      Only insertion and deletion of complete words

    2. B

      Insertion, deletion, and substitution of characters

    3. C

      Only substitution of characters at matching positions

    4. D

      Transposition, reversal, sorting, and duplication of substrings

    Correct answer
    B

    Insertion, deletion, and substitution of characters

    Explanation

    The described edit operations are inserting a character, deleting a character, or substituting one character for another.

  54. 54

    What recurrence subproblem is used in the edit-distance algorithm?

    1. A

      The distance between the first mmm characters of one string and the first nnn characters of the other

    2. B

      The distance between only the two complete strings after every possible edit sequence

    3. C

      The distance between the first character of one string and the last character of the other

    4. D

      The number of unique characters appearing in either string

    Correct answer
    A

    The distance between the first mmm characters of one string and the first nnn characters of the other

    Explanation

    The recurrence is defined on prefixes: the first mmm characters of one string and the first nnn characters of the other.

  55. 55

    What is the edit distance between an empty string and a string of length nnn?

    1. A

      nnn

    2. B

      000

    3. C

      111

    4. D

      n2n^2n2

    Correct answer
    A

    nnn

    Explanation

    Transforming an empty string into a string of length nnn requires inserting all nnn characters, so the distance is nnn.

  56. 56

    What happens in the edit-distance recurrence when the current characters match?

    1. A

      The recurrence deletes both characters and adds cost 222

    2. B

      The recurrence removes both matching characters without adding an edit cost

    3. C

      The recurrence substitutes one matching character for the other at cost 111

    4. D

      The recurrence branches into insertion, deletion, and substitution cases

    Correct answer
    B

    The recurrence removes both matching characters without adding an edit cost

    Explanation

    Matching final characters can be removed from consideration without an edit, reducing the subproblem to prefixes of lengths m−1m-1m−1 and n−1n-1n−1.

  57. 57

    When the current characters differ, which three choices are considered in the edit-distance recurrence?

    1. A

      Comparing the next three characters, skipping the strings, and restarting

    2. B

      Keeping both characters, deleting both, and halting the computation

    3. C

      Substitution, deletion from one string, and insertion relative to the other

    4. D

      Sorting, reversing, and copying the remaining suffix

    Correct answer
    C

    Substitution, deletion from one string, and insertion relative to the other

    Explanation

    When characters differ, the recurrence considers substitution, deletion, and insertion, each with an edit cost.

  58. 58

    Why does the edit-distance recurrence take the minimum of its alternatives?

    1. A

      Every possible edit sequence has the same cost

    2. B

      Taking the minimum eliminates the need for base cases

    3. C

      The goal is to find the least costly sequence of edits

    4. D

      The maximum branch always represents the most accurate alignment

    Correct answer
    C

    The goal is to find the least costly sequence of edits

    Explanation

    Edit distance is defined as the minimum number of edits, so the recurrence chooses the least costly among the available operations.

  59. 59

    Why is a naive recursive edit-distance implementation slow?

    1. A

      It repeatedly solves the same subproblems, creating an exponential recursion tree

    2. B

      It uses too few recursive calls to explore valid edit sequences

    3. C

      It evaluates only the base cases and skips the recursive cases

    4. D

      It performs no comparisons between corresponding characters

    Correct answer
    A

    It repeatedly solves the same subproblems, creating an exponential recursion tree

    Explanation

    Each nonmatching subproblem can branch into several recursive calls, and many resulting subproblems are duplicated, producing exponential behavior.

  60. 60

    How does memoization improve the recursive edit-distance algorithm?

    1. A

      It explores more recursion branches to improve the final answer

    2. B

      It stores each solved subproblem so later calls can reuse its result

    3. C

      It removes all base cases and estimates their values statistically

    4. D

      It changes character edits into fixed-length word substitutions

    Correct answer
    B

    It stores each solved subproblem so later calls can reuse its result

    Explanation

    Memoization caches results indexed by the subproblem parameters, such as (m,n)(m,n)(m,n), so each subproblem is computed only once.

  61. 61

    What is the objective in the least-squares regression example?

    1. A

      To maximize the number of points lying exactly on the fitted line

    2. B

      To minimize the sum of squared prediction errors over the training points

    3. C

      To minimize the absolute number of training points regardless of predictions

    4. D

      To choose the steepest possible line through the origin

    Correct answer
    B

    To minimize the sum of squared prediction errors over the training points

    Explanation

    Least squares measures the error at each point, squares the error, and sums these squared errors over all training examples.

  62. 62

    In the simplified regression example, what does the parameter www represent?

    1. A

      The slope of a line constrained to pass through the origin

    2. B

      The squared error for the first training example

    3. C

      The vertical intercept of a line with fixed slope

    4. D

      The number of training points in the dataset

    Correct answer
    A

    The slope of a line constrained to pass through the origin

    Explanation

    The model predicts using wxw xwx, so www is the slope of the line, with the intercept fixed at zero.

  63. 63

    For a training point (xi,yi)(x_i,y_i)(xi​,yi​), what prediction does the regression model make?

    1. A

      wxi2w x_i^2wxi2​

    2. B

      xi−yix_i-y_ixi​−yi​

    3. C

      w+yiw+y_iw+yi​

    4. D

      wxiw x_iwxi​

    Correct answer
    D

    wxiw x_iwxi​

    Explanation

    With a line through the origin, the model’s prediction for input xix_ixi​ is wxiw x_iwxi​.

  64. 64

    What does an objective value of zero mean in the least-squares example?

    1. A

      The model has made the largest possible prediction error

    2. B

      The model contains no adjustable parameters

    3. C

      The model’s predictions match all training targets exactly

    4. D

      The model has not been evaluated on any training points

    Correct answer
    C

    The model’s predictions match all training targets exactly

    Explanation

    Because squared errors are nonnegative, an objective of zero means every prediction error is zero.

  65. 65

    What is the derivative of the squared error (wxi−yi)2(w x_i-y_i)^2(wxi​−yi​)2 with respect to www?

    1. A

      2(wxi−yi)xi2(w x_i-y_i)x_i2(wxi​−yi​)xi​

    2. B

      2wxi−yi2w x_i-y_i2wxi​−yi​

    3. C

      2(wxi−yi)yi2(w x_i-y_i)y_i2(wxi​−yi​)yi​

    4. D

      (wxi−yi)2xi(w x_i-y_i)^2x_i(wxi​−yi​)2xi​

    Correct answer
    A

    2(wxi−yi)xi2(w x_i-y_i)x_i2(wxi​−yi​)xi​

    Explanation

    Applying the chain rule gives 2(wxi−yi)2(w x_i-y_i)2(wxi​−yi​) multiplied by the derivative of wxi−yiw x_i-y_iwxi​−yi​ with respect to www, which is xix_ixi​.

  66. 66

    Why is the derivative of a sum of squared errors computed by summing individual derivatives?

    1. A

      The squared terms cancel before differentiation is performed

    2. B

      Differentiation is linear, so the derivative of a sum is the sum of the derivatives

    3. C

      Only the first training point contributes to the derivative of the objective

    4. D

      The derivative of a sum is always the product of individual derivatives

    Correct answer
    B

    Differentiation is linear, so the derivative of a sum is the sum of the derivatives

    Explanation

    The derivative operator distributes over sums, allowing the total gradient to be computed by summing each point’s contribution.

  67. 67

    What happened to the regression parameter in the numerical example after gradient descent?

    1. A

      It diverged toward infinity while the objective increased

    2. B

      It remained fixed at 000 because the gradient was always zero

    3. C

      It converged toward 0.80.80.8 while the objective decreased

    4. D

      It converged toward 7.27.27.2, which was the optimal parameter value

    Correct answer
    C

    It converged toward 0.80.80.8 while the objective decreased

    Explanation

    Starting from w=0w=0w=0, the iterations moved through values such as 0.30.30.3 and approximately 0.80.80.8, while the objective decreased to about 7.27.27.2.

Question 1 of 67
Question 1 of 67

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent