Artificial Intelligence Introduction
- 75Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What ambitious goal did the 1956 Dartmouth workshop propose for artificial intelligence?
75 questions
- 1
What ambitious goal did the 1956 Dartmouth workshop propose for artificial intelligence?
Model answer
It proposed that every aspect of learning and every feature of intelligence could be described precisely enough for a machine to simulate it.
Explanation
The workshop represented an early attempt to formulate intelligence as a precise computational problem.
- 2
Name two early artificial intelligence programs developed after the Dartmouth workshop.
Model answer
Examples include programs that played checkers and programs that proved mathematical theorems.
Explanation
These systems demonstrated that machines could perform narrowly defined intellectual tasks.
- 3
What did the machine-translation example involving English, Russian, vodka, and meat illustrate?
Model answer
It illustrated that early translation systems could produce grammatically or semantically incorrect results because they lacked a deep understanding of language.
Explanation
The mistranslation helped expose the limitations of early symbolic approaches.
- 4
What was an AI winter?
Model answer
An AI winter was a period when artificial intelligence research received reduced attention, activity, and funding after failing to meet inflated expectations.
Explanation
The first AI winter followed disappointment with early AI achievements and translation systems.
- 5
Identify two major reasons early AI systems failed to meet expectations.
Model answer
Computing power was insufficient, and many problems were formulated in ways that required exponential search.
Explanation
Even large increases in computation cannot make an inherently exponential search practical in general.
- 6
Why could unlimited computation alone not solve machine translation?
Model answer
Translation requires learning a language and experiencing its subtleties, not merely performing more computation on an incomplete representation.
Explanation
The limitation was informational and representational rather than simply computational.
- 7
What important computer-science contributions emerged from early AI research?
Model answer
Contributions included ideas associated with Lisp, garbage collection, time-sharing, and the separation of modeling from inference.
Explanation
Although early AI did not achieve its broad goals, it produced useful programming and problem-solving concepts.
- 8
What was the central idea behind expert systems in the 1970s and 1980s?
Model answer
Expert systems attempted to encode specialists' knowledge, often as deterministic rules, so a computer could solve narrowly defined problems.
Explanation
Typical applications included disease diagnosis and converting customer orders into component parts.
- 9
Why were deterministic rule-based expert systems limited?
Model answer
They were not rich enough to represent the nuances of the real world and required substantial manual effort to maintain.
Explanation
Their limitations contributed to another cycle of overpromising, underdelivery, and reduced AI support.
- 10
What did McCulloch and Pitts contribute to artificial intelligence in 1943?
Model answer
They developed a mathematical theory of artificial neural networks and showed connections between neurons and logic.
Explanation
Their work became an early foundation for neural-network research and, indirectly, deep learning.
- 11
What limitation of linear classifiers was highlighted by the study of perceptrons?
Model answer
Linear classifiers cannot solve the XOR problem, which requires distinguishing whether two inputs are the same or different.
Explanation
This result contributed to a decline in neural-network research even though it did not rule out deeper networks.
- 12
Why was backpropagation important for neural networks?
Model answer
Backpropagation provided a general method for training multilayer neural networks, overcoming limitations of single-layer models.
Explanation
Its wider adoption helped renew interest in neural networks during the 1980s.
- 13
What was significant about Yann LeCun's 1989 convolutional-neural-network application?
Model answer
It recognized handwritten digits and was deployed by the postal service to read ZIP codes.
Explanation
This was an early practical success for convolutional neural networks.
- 14
Why was AlexNet's 2012 result considered a major turning point?
Model answer
Its strong performance on the ImageNet benchmark transformed the computer-vision community and accelerated the rise of deep learning.
Explanation
The result demonstrated the practical power of large neural networks trained with substantial data and computation.
- 15
What are the two major intellectual traditions in AI described in the lecture?
Model answer
They are the symbolic, logical tradition associated with John McCarthy and the neuroscience-inspired neural-network tradition.
Explanation
Although these traditions differed philosophically, they have important connections and overlaps.
- 16
How do logic and neural networks connect in examples such as Go?
Model answer
Go has precisely defined logical rules, while neural networks can learn models that play the game effectively, showing that neural methods can exploit mathematically structured tasks.
Explanation
The combination of logical structure and learned representations remains an important question in AI.
- 17
Why is AI described as drawing from many different fields?
Model answer
AI combines techniques from statistics, economics, optimization, neuroscience, and computer science to solve complex problems.
Explanation
Examples include maximum likelihood from statistics, game ideas from economics, and gradient descent from optimization.
- 18
What is the difference between viewing AI as agents and viewing AI as tools?
Model answer
The agent view asks how to create or recreate intelligence, while the tool view asks how technology can benefit and assist society.
Explanation
The views share technical methods but differ in their philosophical goals.
- 19
List four capabilities associated with human intelligence that AI agents may attempt to reproduce.
Model answer
Examples include perception, object recognition, physical action, language communication, knowledge representation, reasoning, and learning.
Explanation
These capabilities have generated subfields such as computer vision, natural-language processing, robotics, and machine learning.
- 20
Distinguish declarative knowledge from procedural knowledge.
Model answer
Declarative knowledge is knowledge of facts, such as the capital of France, whereas procedural knowledge is knowledge of how to perform an action, such as riding a bicycle.
Explanation
Intelligent agents need both factual knowledge and action-oriented skills.
- 21
Why is learning central to human intelligence and modern AI?
Model answer
Humans are not born with most of their abilities but acquire them through experience, and learning enables AI systems to develop useful capabilities from data.
Explanation
Learning provides a way to acquire complex behavior without manually specifying every detail.
- 22
How do current successful AI systems differ from humans in their learning regime?
Model answer
Current systems often specialize in narrow tasks and require millions or billions of examples, whereas humans learn diverse tasks from relatively few examples.
Explanation
Building systems with human-like breadth and data efficiency remains a major challenge.
- 23
Give two examples of AI used as a tool rather than as a human-like agent.
Model answer
Examples include using satellite images to estimate economic conditions and using AI to determine when to cool data centers to save energy.
Explanation
These applications assist humans without attempting to reproduce general human intelligence.
- 24
What is an adversarial example?
Model answer
An adversarial example is an input intentionally modified so that an AI system makes an incorrect prediction, such as misidentifying a face or a road sign.
Explanation
Adversarial examples create security and reliability concerns in systems such as authentication and autonomous vehicles.
- 25
How can machine-learning systems reproduce societal biases?
Model answer
Because they are trained on data generated by society, they may learn and reproduce patterns of social bias present in that data.
Explanation
For example, translation systems may associate genders with occupations in biased ways.
- 26
What fairness problem was illustrated by the COMPAS example?
Model answer
One analysis found that among people who did not reoffend, Black individuals were incorrectly classified as high risk at more than twice the rate of non-Black individuals.
Explanation
The example shows how predictive systems can have unequal error rates across groups.
- 27
Why can different fairness criteria be mathematically incompatible?
Model answer
Different definitions of fairness impose different statistical requirements, and a model may be unable to satisfy all of those requirements simultaneously.
Explanation
Choosing an appropriate fairness standard is therefore both a technical and societal question.
- 28
What is the modeling-inference-learning paradigm?
Model answer
It is a framework that separates AI problem solving into constructing a model, answering questions using inference, and learning model parameters from data.
Explanation
The paradigm provides a structured way to approach complex real-world problems.
- 29
What is a model in the modeling-inference-learning paradigm?
Model answer
A model is a mathematically precise simplification of the real world that can be manipulated computationally.
Explanation
A model must discard some information, so a key modeling decision is determining what information to retain.
- 30
Why must modeling involve simplification?
Model answer
The real world is too complex to represent completely, so a system must focus on the information relevant to its task and available resources.
Explanation
Good modeling requires choosing which details matter rather than attempting to preserve everything.
- 31
How could a city route-finding problem be modeled as a graph?
Model answer
Locations are represented as nodes, connections between locations are represented as edges, and edge costs represent quantities such as travel time.
Explanation
This converts a real-world navigation problem into a precise mathematical structure.
- 32
What is inference?
Model answer
Inference is the process of asking and answering questions about a model through computation.
Explanation
For a route graph, finding the shortest path is an example of inference.
- 33
What problem does learning solve in the modeling paradigm?
Model answer
Learning determines the model's parameters from data instead of requiring every parameter to be specified manually.
Explanation
For a route graph, observed travel times can be used to estimate the costs of edges.
- 34
What is the relationship between a parameter-free model and a learned model?
Model answer
A parameter-free model specifies the model's structure, while learning uses data to fill in its parameters and produce a usable model.
Explanation
The structure acts like a skeleton and the data supplies the task-specific values.
- 35
Why is learning a philosophy rather than a single algorithm?
Model answer
Learning refers generally to defining a model structure and acquiring its details from data; it can use many algorithms, including nearest neighbors or neural networks.
Explanation
The central idea is the division between specifying structure and estimating details.
- 36
What does it mean to move complexity from code to data in machine learning?
Model answer
Instead of writing extensive rules manually, a system uses a smaller amount of code to learn patterns from a large collection of examples.
Explanation
This shift is a major reason data-driven methods have been effective in AI.
- 37
What is the central concern of generalization in machine learning?
Model answer
Generalization concerns how well a learned model performs on new experiences rather than merely on the data used for training.
Explanation
A model that only memorizes its training data has limited practical value.
- 38
What is a reflex model?
Model answer
A reflex model maps an input directly to an output using a fixed set of computations without explicitly representing intermediate states or planning.
Explanation
Examples include linear classifiers and deep neural networks used for rapid recognition.
- 39
What is the main advantage of a reflex model?
Model answer
It can produce outputs quickly because it performs a direct computation from input to output.
Explanation
This makes reflex models useful for tasks such as immediate visual recognition.
- 40
What is a state-based model?
Model answer
A state-based model represents situations as states and represents actions as transitions between those states.
Explanation
This representation supports planning by allowing an agent to reason about possible future situations.
- 41
Why are state-based models useful for chess, robotics, and navigation?
Model answer
These tasks require considering possible actions and their future consequences, which can be represented as transitions through states.
Explanation
Planning and foresight are central to such problems.
- 42
What distinguishes search problems, stochastic problems, and adversarial games?
Model answer
Search problems involve controlling the outcomes, stochastic problems include randomness, and adversarial games include an opponent actively working against the agent.
Explanation
A route with known actions is a search problem, traffic uncertainty introduces randomness, and an opponent introduces adversarial behavior.
- 43
How can a Pac-Man problem be represented as a state-based model?
Model answer
A state can describe Pac-Man's position, the remaining dots, and the ghosts' positions, while actions specify possible movements.
Explanation
The agent must plan to collect dots while avoiding dangerous ghost configurations.
- 44
Why is Sudoku naturally represented as a variable-based model rather than a state-based model?
Model answer
Sudoku is naturally described as assigning values to variables subject to constraints, and the order of assignments is not inherently important.
Explanation
Although Sudoku can be expressed as a sequence of states, the variable-based representation supports more natural solving algorithms.
- 45
What is a constraint satisfaction problem?
Model answer
It is a problem in which a solution assigns values to variables while satisfying hard constraints.
Explanation
Sudoku requires assigning digits while obeying row, column, and sub-block constraints.
- 46
What is a Bayesian network in the framework presented?
Model answer
A Bayesian network is a variable-based model with soft dependencies that represent probabilistic relationships among variables.
Explanation
Tracking a vehicle from noisy sensor readings is an example of Bayesian-network inference.
- 47
What is the difference between a hard constraint and a soft dependency?
Model answer
A hard constraint must be satisfied, whereas a soft dependency expresses a probabilistic or preference-based relationship that can tolerate uncertainty.
Explanation
A person being unable to occupy two places at once is a hard constraint, while a noisy sensor relationship is soft.
- 48
What role does logic play in an AI system that stores facts and answers questions?
Model answer
Logic allows the system to represent statements, derive their consequences, and answer queries from stored facts and rules.
Explanation
For example, from 'Alice is a student' and 'students are people,' the system can infer that Alice is a person.
- 49
Why can a logic-based system answer some questions after receiving only one statement?
Model answer
It applies general rules to the statement and derives all logically implied consequences without needing repeated examples of each consequence.
Explanation
This gives logic systems broad reasoning ability from relatively little explicit information.
- 50
What is a major weakness of the logic-based approach demonstrated in the lecture?
Model answer
Logic systems can reason deeply over explicit rules but are often brittle when information is incomplete, ambiguous, or outside the encoded rules.
Explanation
Their strength in precise reasoning comes with limited flexibility.
- 51
What are the two broad types of optimization discussed?
Model answer
Discrete optimization searches for the best discrete object, while continuous optimization searches for real-valued parameters that optimize an objective function.
Explanation
Finding a path is discrete optimization, whereas fitting model weights is continuous optimization.
- 52
Why can a discrete optimization problem require an algorithm more sophisticated than testing every candidate?
Model answer
The set of possible candidates, such as paths, may be too large to enumerate and evaluate individually.
Explanation
Dynamic programming can exploit structure to avoid examining every complete candidate separately.
- 53
What is dynamic programming?
Model answer
Dynamic programming solves a complex problem by expressing it in terms of smaller subproblems and reusing solutions to repeated subproblems.
Explanation
This reduces redundant computation when different solution paths reach the same subproblem.
- 54
What operations define the edit distance between two strings?
Model answer
The permitted operations are character insertion, character deletion, and character substitution.
Explanation
Edit distance is the minimum number of these operations needed to transform one string into another.
- 55
What is the edit distance between identical strings, such as "cat" and "cat"?
Model answer
The edit distance is 0 because no edits are required.
Explanation
A string already matches its target exactly.
- 56
What is the edit distance between "cat" and "dog" under unit-cost edits?
Model answer
The edit distance is 3 because all three characters must be substituted.
Explanation
Each substitution has cost 1.
- 57
What is the edit distance between "cat" and "at"?
Model answer
The edit distance is 1, because the initial "c" can be deleted.
Explanation
One deletion transforms the first string into the second.
- 58
Why can insertion into the source string be treated as deletion from the target string?
Model answer
Inserting a character into the source to match the target is equivalent to deleting the corresponding character from the target while comparing the remaining prefixes.
Explanation
This equivalence reduces the number of distinct cases in the recurrence.
- 59
What subproblem is used in the recursive edit-distance formulation?
Model answer
The subproblem asks for the minimum edit distance between the first m characters of one string and the first n characters of the other.
Explanation
Using prefix lengths identifies subproblems without repeatedly copying substrings.
- 60
What is the edit-distance recurrence when the next two characters match?
Model answer
If the last characters match, they require no edit, so the problem reduces to the distance between prefixes of lengths m−1 and n−1.
Explanation
Matching characters can be removed from consideration without increasing the cost.
- 61
What three choices must be considered when the next characters do not match in edit distance?
Model answer
The algorithm considers substitution, deletion from the source, and insertion into the source, or equivalently deletion from the target.
Explanation
Each choice costs 1 and produces a smaller subproblem.
- 62
What are the base cases for the recursive edit-distance algorithm?
Model answer
The distance between an empty string and a string of length n is n, and the distance between a string of length m and an empty string is m.
Explanation
Only insertions or deletions are possible when one string is empty.
- 63
Why does the naive recursive edit-distance algorithm become very slow?
Model answer
Each mismatch branches into several recursive calls, causing many identical subproblems to be recomputed and producing exponential growth in work.
Explanation
The recursion tree contains repeated computations for the same pair of prefix lengths.
- 64
How does memoization improve recursive edit-distance computation?
Model answer
Memoization stores the result for each pair of prefix lengths (m,n) and returns the stored value whenever the same subproblem appears again.
Explanation
The algorithm pays for distinct subproblems rather than for every path through the recursion tree.
- 65
What is the least-squares objective for fitting a line y=wx to data points (xi,yi)?
Model answer
The objective is f(w)=sumi=1n(wxi−yi)2, which sums the squared prediction errors.
Explanation
A value of 0 indicates perfect fit, while larger values indicate greater total error.
- 66
What does the parameter w represent when fitting the line y=wx?
Model answer
The parameter w represents the slope of the line through the origin.
Explanation
Changing w changes the model's prediction for every input xi.
- 67
Why are squared errors used in least-squares regression?
Model answer
Squaring makes all errors nonnegative and penalizes larger deviations more strongly, allowing the total error to measure how poorly the line fits.
Explanation
The resulting objective can be optimized mathematically using derivatives.
- 68
What is gradient descent?
Model answer
Gradient descent repeatedly moves the parameters in the direction opposite the gradient so that the objective function decreases.
Explanation
The gradient points toward increasing objective value, so its negative indicates a local descent direction.
- 69
What information does the derivative provide in one-dimensional optimization?
Model answer
The derivative indicates how the objective changes as the parameter increases and therefore whether to move left or right to reduce the objective.
Explanation
A negative derivative indicates that increasing the parameter decreases the function locally.
- 70
What is the gradient of the least-squares objective f(w)=∑i=1n(wxi−yi)2 with respect to w?
Model answer
The derivative is f′(w)=∑i=1n2(wxi−yi)xi.
Explanation
The chain rule differentiates the squared error and then multiplies by the derivative of wxi−yi, which is xi.
- 71
What is the purpose of the step size in gradient descent?
Model answer
The step size controls how far the parameters move in the negative-gradient direction at each iteration.
Explanation
A step that is too large can overshoot or diverge, while a step that is too small can make convergence slow.
- 72
What update rule is used for one-dimensional gradient descent?
Model answer
The parameter is updated according to w←w−ηf′(w), where η is the step size.
Explanation
Subtracting the derivative moves w opposite the direction in which the objective increases.
- 73
What does the term gradient mean in higher-dimensional optimization?
Model answer
The gradient is the vector of partial derivatives with respect to all parameters.
Explanation
It generalizes the one-dimensional derivative and identifies the direction of greatest local increase.
- 74
Why is gradient descent important in machine learning?
Model answer
It provides a simple and broadly applicable method for optimizing model parameters and underlies many machine-learning algorithms.
Explanation
The method can be applied even when a closed-form solution is unavailable.
- 75
What slope minimizes the least-squares objective for the points (2,4) and (4,2) when the line must pass through the origin?
Model answer
The minimizing slope is w=0.8.
Explanation
This value produces the lowest total squared error for the two specified points.

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