Midterm review

The review sheet’s topics in order. Each topic lists the facts from the lecture slides, links that open the tools on the slide examples, and practice problems graded by the same engines the tools use. Check off a topic when you are done with it; the check marks are saved in this browser.

Progress

0 of 22 topics checked off

  • Intro and readings 10–15 points 0/4
  • Lisp 10–15 points 0/2
  • Search 65–75 points 0/16
Topics

Introductory lectures

0 of 3 checked

1a Definitions of AI

  • Definitions of AI vary along two dimensions: behavior or thought, measured against humans or against an ideal of rationality. That gives four approaches: acting humanly, thinking humanly, thinking rationally, acting rationally. Lecture reference: Introduction to AI · slide 3
  • Acting humanly is the Turing test approach: a machine passes if a human interrogator cannot tell it from a human. Lecture reference: Introduction to AI · slide 5
  • Thinking humanly is the cognitive modeling approach: it needs to know how humans think (introspection, psychological experiments, brain imaging); cognitive science brings AI models and experimental psychology together. Lecture reference: Introduction to AI · slide 13
  • Thinking rationally is the “laws of thought” approach: Aristotle’s attempt to codify “right thinking” gave rise to logic. Logic assumes certainty; probability fills the gap for rigorous reasoning with uncertain information. Lecture reference: Introduction to AI · slide 15
  • Acting rationally is the rational agent approach, the prevailing approach to AI: a rational agent acts to achieve the best outcome (or the best expected outcome). Lecture reference: Introduction to AI · slide 17
  • For each possible percept sequence, a rational agent selects an action that is expected to maximize its performance measure, given the evidence provided by the percept sequence and its built-in knowledge. Lecture reference: Rational Agents · slide 4
  • “Weak” AI: the computer is a tool for studying intelligence and developing useful technology. “Strong” AI: a computer could (in principle) be programmed to actually be a mind, with understanding, beliefs, and other cognitive states. Lecture reference: Introduction to AI · slide 11

In the tools

Questions from the slides

  • Can a rational agent make mistakes?

    Show answer
  • Is the reflex vacuum agent rational?

    Show answer

1b Turing test / Chinese Room

  • The Turing test (Alan Turing, 1950): a machine “passes” if a human interrogator cannot tell machine from human. The original test with written questions and answers requires at least natural language processing, knowledge representation, automated reasoning, and machine learning. Lecture reference: Introduction to AI · slide 5
  • The total Turing test adds interaction with people and objects, so the robot also needs computer vision, speech recognition and generation, and robotic manipulation. Lecture reference: Introduction to AI · slide 6
  • Winograd schemas (Levesque, IJCAI 2013): multiple-choice questions people answer easily but computers cannot answer with “cheap tricks”. Unlike the Turing test they can be graded by machine, do not depend on human judgment, need no English generation, cannot be dodged verbally, and can be made “Google-proof”. Lecture reference: Introduction to AI · slides 7–10
  • John Searle’s Chinese Room (1980) is an argument against strong AI. A person who knows no Chinese sits in a room with a rule book for manipulating Chinese symbols; questions written in Chinese come in, the person follows the rules, and the answers passed out look fluent. The person (and so a computer running the same program) manipulates symbols by their form alone, without understanding them: running the right program is not enough for a mind. Lecture reference: Introduction to AI · slide 11

In the tools

Questions from the slides

  • The trophy would not fit in the brown suitcase because it was so large. What was so large?

    Show answer
  • How did systems do at the 2016 Winograd schema challenge?

    Show answer

1c Dimensions of complexity (types of environments and problems)

  • A task environment is specified by PEAS: performance measure, environment, actuators, sensors. Lecture reference: Rational Agents · slide 6
  • Environment types: fully or partially observable, deterministic or stochastic, episodic or sequential, static or dynamic, discrete or continuous, single agent or multi-agent, known or unknown (the table below). Lecture reference: Rational Agents · slides 9–16
  • The environment dictates the approach: deterministic environments use search, constraint satisfaction, and classical planning; multi-agent strategic ones minimax search and games; stochastic episodic ones Bayesian networks and pattern classifiers; stochastic sequential known ones Markov decision processes; unknown ones reinforcement learning. Lecture reference: Rational Agents · slide 18
  • The search lectures assume goal-based agents in fully observable, deterministic, discrete, known environments. Lecture reference: Solving Problems by Searching · slide 3
  • Game environments: deterministic with perfect information (chess, checkers, go), stochastic with perfect information (backgammon, monopoly), deterministic with imperfect information (battleships), stochastic with imperfect information (Scrabble, poker, bridge). Lecture reference: Games and Adversarial Search · slide 3
Fully vs. partially observable
Do the agent’s sensors give it access to the complete state of the environment? Lecture reference: Rational Agents · slide 10
Deterministic vs. stochastic
Is the next state completely determined by the current state and the agent’s action? Strategic: deterministic except for the actions of other agents. Lecture reference: Rational Agents · slide 11
Episodic vs. sequential
Is the agent’s experience divided into unconnected single decisions, or a coherent sequence of observations and actions in which the world evolves? Lecture reference: Rational Agents · slide 12
Static vs. dynamic
Is the world changing while the agent is thinking? Semidynamic: the environment does not change with time, but the performance score does. Lecture reference: Rational Agents · slide 13
Discrete vs. continuous
Are the values of the state variables discrete or continuous? Time can be either too. Lecture reference: Rational Agents · slide 14
Single agent vs. multi-agent
Is an agent operating by itself in the environment? Lecture reference: Rational Agents · slide 15
Known vs. unknown
Are the rules of the environment (transition model and rewards) known to the agent? Strictly a property of the agent’s knowledge, not of the environment. Lecture reference: Rational Agents · slide 16

In the tools

Lisp

0 of 2 checked

2a Be able to interpret functions

  • A program is made of s-expressions: atoms (numbers, symbols such as x, t, nil) and lists in parentheses. A list is evaluated as a call in prefix notation: (+ 1 (* 2 3)) is 7.
  • To evaluate a call, Lisp evaluates the arguments left to right, then applies the function. Special forms are the exceptions: quote returns its argument unevaluated ('(a b) is the list (a b)), if and cond evaluate only the branch they pick, defun and let bind names.
  • nil is both the empty list () and false; anything else counts as true, and t is the usual true value.
  • List functions: (car l) is the first element, (cdr l) the rest, (cons x l) puts x in front of l, (list a b c) builds a list, (append l1 l2) joins lists. Predicates: null, atom, listp, numberp, equal, eq, zerop, member.
  • To read a recursive function, trace the calls on a small input: write each call with its arguments, find the base case, then combine the returned values on the way back up.
Lisp forms and their values
FormValue
(+ 1 (* 2 3))7
(car '(a b c))A
(cdr '(a b c))(B C)
(cons 'a '(b c))(A B C)
(list 'a (+ 1 1) 'c)(A 2 C)
(append '(a b) '(c))(A B C)
(null '())T
(if (> 3 2) 'yes 'no)YES
(cond ((= 1 2) 'a) (t 'b))B
(let ((x 2) (y 3)) (* x y))6

A traced call

(defun my-length (l)
  (if (null l)
      0
      (+ 1 (my-length (cdr l)))))
(my-length '(a b c))
= (+ 1 (my-length '(b c)))
= (+ 1 (+ 1 (my-length '(c))))
= (+ 1 (+ 1 (+ 1 (my-length '()))))
= (+ 1 (+ 1 (+ 1 0)))
= 3
Run it in the Lisp evaluator

In the tools

2b Be able to write (basic) functions

  • (defun name (parameters) body) defines a function; the value of the last form in the body is returned.
  • Recursion over a list: test for the empty list first ((null l) → the base value), otherwise combine (car l) with a recursive call on (cdr l). Recursion over numbers: stop at 0 (zerop n), recurse on (- n 1).
  • Build results with cons (adds to the front), keep the order of the input by consing (car l) onto the recursive result, and use cond for more than two cases: (cond ((test1) result1) ((test2) result2) (t default)).

Combine the first element with the rest

(defun sum-list (l)
  (if (null l)
      0
      (+ (car l) (sum-list (cdr l)))))

(sum-list '(4 5 6)) → 15

Run it in the Lisp evaluator

Build a new list

(defun double-all (l)
  (if (null l)
      nil
      (cons (* 2 (car l)) (double-all (cdr l)))))

(double-all '(1 2 3)) → (2 4 6)

Run it in the Lisp evaluator

Keep some elements

(defun evens (l)
  (cond ((null l) nil)
        ((evenp (car l)) (cons (car l) (evens (cdr l))))
        (t (evens (cdr l)))))

(evens '(1 2 3 4)) → (2 4)

Run it in the Lisp evaluator

Recurse into sublists

(defun count-atoms (x)
  (cond ((null x) 0)
        ((atom x) 1)
        (t (+ (count-atoms (car x)) (count-atoms (cdr x))))))

(count-atoms '(a (b c) ((d)))) → 4

Run it in the Lisp evaluator

3a Problem formation (state space representation)

  • A search problem has an initial state, actions, a transition model (the state that results from an action in a state, called the successor), a goal state, and a path cost (a sum of nonnegative step costs). The optimal solution is the action sequence with the lowest path cost to the goal. Lecture reference: Solving Problems by Searching · slide 5
  • The initial state, actions, and transition model define the state space: the set of all states reachable from the initial state by any sequence of actions, a directed graph whose nodes are states and whose links are actions. Lecture reference: Solving Problems by Searching · slide 7
  • Romania: initial state Arad, actions go from one city to another, going from A to B ends in B, goal Bucharest, path cost the total distance traveled. Lecture reference: Solving Problems by Searching · slide 6
  • Vacuum world: a state is the agent location and the dirt locations; actions Left, Right, Suck. The 8-puzzle: a state is the tile locations (181,440 = 9!/2 reachable states); actions move the blank left, right, up, down at 1 per move. Robot motion planning: real-valued joint parameters and continuous motions. Lecture reference: Solving Problems by Searching · slides 8–11
  • The search tree is a “what if” tree of action sequences: the root is the start state and children come from the successor function. A node is not a state: one state can appear in many nodes. Lecture reference: Solving Problems by Searching · slide 27

In the tools

Questions from the slides

  • What is the state space for the Romania problem?

    Show answer
  • Vacuum world: how many possible states? What if there are n possible locations?

    Show answer

3b Blind vs. informed/heuristic

  • A search strategy is defined by the order of node expansion. Uninformed (blind) strategies use only the information available in the problem definition: breadth-first, depth-first, iterative deepening, uniform-cost. Lecture reference: Uninformed Search · slide 2
  • Informed strategies give the algorithm “hints” about the desirability of states: an evaluation function ranks the nodes and the most promising one is expanded. Greedy best-first search, A*, and RBFS. Lecture reference: Informed Search · slide 4
  • A heuristic function h(n) estimates the cost of reaching the goal from node n, such as the straight-line distance to Bucharest. Lecture reference: Informed Search · slides 5–6

In the tools

3c Breadth-first

  • Expand the shallowest unexpanded node; the frontier is a FIFO queue. Lecture reference: Uninformed Search · slide 3
  • Complete if the branching factor b is finite; optimal if every step costs the same; time and space O(bᵈ). Space is the bigger problem. Lecture reference: Uninformed Search · slide 31
  • It finds the path with the fewest steps, which is not always the cheapest one. Lecture reference: Uninformed Search · slide 39

In the tools

Practice: write the expansion order

3d Depth-first

  • Expand the deepest unexpanded node; the frontier is a LIFO queue. Lecture reference: Uninformed Search · slide 5
  • Not complete: it fails in infinite-depth spaces and spaces with loops (avoiding repeated states along the path makes it complete in finite spaces). Not optimal: it returns the first solution it finds. Lecture reference: Uninformed Search · slide 32
  • Time O(bᵐ), terrible when m is much larger than d, but possibly much faster than BFS when there are many solutions. Space O(bm): linear. Lecture reference: Uninformed Search · slide 32

In the tools

Questions from the slides

  • How do you make DFS complete?

    Show answer
  • When is DFS better than BFS?

    Show answer
Practice: write the expansion order

3e Depth-first fixed depth

  • Depth-limited search is DFS with a fixed depth limit ℓ: a node at depth ℓ is goal-tested but not expanded. Iterative deepening uses it as a subroutine (“do a DFS searching for a path of length 1”, then 2, …). Lecture reference: Uninformed Search · slide 33
  • The limit stops infinite descents, so it is never stuck on an infinite path, and memory stays linear: O(bℓ). It misses every goal deeper than ℓ, so it is not complete when ℓ < d, and like DFS it is not optimal. Time O(b^ℓ).
  • The result is a solution, or failure, or a cutoff: no goal within the limit but some node was cut off at depth ℓ, so a deeper search might still succeed.

In the tools

Practice: write the expansion order

3f Iterative deepening

  • Run depth-limited DFS with limits 0, 1, 2, … until a goal is found. Lecture reference: Uninformed Search · slide 33
  • Complete; optimal if every step costs 1; time (d+1)b⁰ + d b¹ + (d−1)b² + … + bᵈ = O(bᵈ); space O(bd). Lecture reference: Uninformed Search · slide 38
  • The shallow levels are generated again in every iteration, but most nodes of a tree are at the bottom level, so the repetition costs little: BFS’s completeness with DFS’s memory. Lecture reference: Uninformed Search · slide 38

In the tools

Practice: write the expansion order

3g Uniform Cost Search

  • Expand the frontier node with the lowest path cost g(n); the frontier is a priority queue ordered by path cost. Equivalent to BFS if all step costs are equal, and to Dijkstra’s algorithm in general. Lecture reference: Uninformed Search · slide 40
  • Complete if every step cost is greater than some positive constant ε. Optimal: nodes are expanded in increasing order of path cost (the goal test runs when a node comes off the frontier). Lecture reference: Uninformed Search · slides 42–44
  • Time and space: the number of nodes with path cost ≤ C*, O(b^(C*/ε)), which can be greater than O(bᵈ). Lecture reference: Uninformed Search · slide 44

In the tools

Questions from the slides

  • When is UCS equivalent to BFS?

    Show answer
  • Can the complexity of UCS exceed the complexity of BFS?

    Show answer
Practice: write the expansion order

3h A*

  • Avoid expanding paths that are already expensive: order the frontier by f(n) = g(n) + h(n), the estimated total cost of the path through n to the goal (g: cost so far, h: estimated cost to the goal). Lecture reference: Informed Search · slide 16
  • Optimal: tree search with an admissible heuristic, graph search with a consistent one. Optimally efficient: no other tree-based algorithm with the same heuristic expands fewer nodes and still guarantees the optimal solution. Lecture reference: Informed Search · slides 29–30
  • Complete unless there are infinitely many nodes with f(n) ≤ C*. Time and space: the nodes with f(n) ≤ C* (exponential). Lecture reference: Informed Search · slide 31
  • Weighted A* inflates an admissible h by α > 1: fewer nodes tend to be expanded, and the solution costs at most α times the optimal cost. Lecture reference: Informed Search · slide 38

In the tools

Practice: write the expansion order

3i Best-first

  • Best-first search expands the frontier node that an evaluation function ranks best. Greedy best-first search uses h(n) alone: it expands the node that looks closest to the goal. Lecture reference: Informed Search · slides 4–7
  • Greedy best-first is not complete (it can get stuck in loops) and not optimal; time and space are O(bᵐ) in the worst case and can be much better with a good heuristic. Lecture reference: Informed Search · slides 12–14
  • Keeping track of the distance already traveled as well as the distance remaining fixes the greedy problem: that is A*. Lecture reference: Informed Search · slide 15

In the tools

Practice: write the expansion order

3j RBFS

  • Recursive best-first search is listed with the informed strategies but is not on the slides; this summary follows the textbook. Lecture reference: Informed Search · slide 4
  • RBFS imitates best-first search (with f = g + h, as A*) in linear space. It descends recursively into the best child while that child’s f-value stays within f_limit, the f-value of the best alternative path available from any ancestor of the current node.
  • When the best child’s f-value exceeds the limit, the recursion unwinds to the alternative, and each node on the way back replaces its f-value with the best f-value of its children (the backed-up value). A forgotten subtree can then be regenerated later if it becomes the best again.
  • Optimal with an admissible heuristic; space O(bd); its time is hard to characterize, because it may regenerate the same nodes many times as the best path changes.

In the tools

3k Minimax

  • Alternating two-player zero-sum games: players take turns, and every terminal state has a utility for each player whose sum is constant. The solution is a strategy (a move for each state), not a fixed sequence of actions. Lecture reference: Games and Adversarial Search · slides 4–5
  • Minimax value of a node: the utility (for MAX) of being in that state, assuming perfect play on both sides. Minimax(node) is Utility(node) at a terminal node, the maximum over the actions at a MAX node, the minimum at a MIN node. The minimax strategy picks the move with the best worst-case payoff. Lecture reference: Games and Adversarial Search · slides 10–11
  • Optimal against an optimal opponent; against a suboptimal one, MAX’s utility can only be higher. Lecture reference: Games and Adversarial Search · slide 12
  • Chess has b ≈ 35 and depth ≈ 100 (a tree of about 10¹⁵⁴ nodes), so search is cut off at a depth and an evaluation function scores the states there, often a weighted sum of features Eval(s) = w₁f₁(s) + … + wₙfₙ(s). The horizon effect: an event just beyond the depth limit is overlooked. Lecture reference: Games and Adversarial Search · slides 5–25
  • With more than two players, utilities are tuples and each player maximizes its own entry. Lecture reference: Games and Adversarial Search · slide 13

In the tools

Questions from the slides

  • What if your opponent is suboptimal?

    Show answer
Practice: minimax value and move

3l Alpha-beta pruning

  • Alpha-beta computes the exact minimax decision without expanding every node. α is the best value for MAX found so far at any choice point above the node; β the lowest value found so far for MIN. Lecture reference: Games and Adversarial Search · slides 14–20
  • α and β start at −∞ and +∞. Min-Value returns as soon as v ≤ α, otherwise sets β = min(β, v); Max-Value returns as soon as v ≥ β, otherwise sets α = max(α, v). Lecture reference: Games and Adversarial Search · slides 21–22
  • Pruning does not change the result. How much is pruned depends on move ordering (best moves first); with perfect ordering the time drops from O(bᵐ) to O(b^(m/2)), effectively doubling the search depth. Lecture reference: Games and Adversarial Search · slide 23

In the tools

Practice: what alpha-beta prunes

3m Heuristics/evaluation (admissibility vs. consistency, what gives optimality or completeness)

  • Admissible: h(n) ≤ h*(n) for every node n, where h*(n) is the true cost to the goal; it never overestimates. Straight-line distance is admissible for road distance. Lecture reference: Informed Search · slide 25
  • Consistent: h(n) ≤ c(n, n′) + h(n′) for every successor n′ (the heuristic “arc cost” never exceeds the real one). Consistency implies admissibility; most natural admissible heuristics are consistent. Lecture reference: Informed Search · slides 28–29
  • Optimality: A* tree search with an admissible (and non-negative) h; A* graph search with a consistent h. UCS is optimal (h = 0); greedy best-first is not, whatever the heuristic. Lecture reference: Informed Search · slide 29
  • Completeness: BFS and IDS with finite b, UCS with step costs ≥ ε, A* unless infinitely many nodes have f(n) ≤ C*; DFS and greedy best-first are not complete. Lecture reference: Informed Search · slide 42
  • 8-puzzle heuristics: h1 = misplaced tiles, h2 = total Manhattan distance. Both are optimal costs of relaxed problems, so both are admissible; h2 ≥ h1 everywhere, so h2 dominates h1 and A* with h2 expands fewer nodes. The maximum of admissible heuristics is admissible. Lecture reference: Informed Search · slides 32–37
  • In games, an evaluation function scores states at the depth cutoff, for example a weighted sum of features (chess material: pawn 1, knight 3, rook 5, queen 9). Lecture reference: Games and Adversarial Search · slide 24

In the tools

Questions from the slides

  • Are h1 and h2 admissible?

    Show answer
  • h2 dominates h1. Which one is better for search?

    Show answer
Practice: admissible or consistent?

3n Be able to explain pros and cons of different methods

  • The strategy table of the slides (complete, optimal, time, space), and below it the trade-offs in a sentence each. Lecture reference: Informed Search · slide 42
MethodProsCons
Breadth-firstPros:Complete (finite b); optimal when all step costs are equal.Cons:O(bᵈ) memory, the bigger problem; not optimal with varying step costs.
Depth-firstPros:Linear memory, O(bm); can be much faster than BFS when solutions are plentiful.Cons:Not complete (infinite depth, loops); not optimal; O(bᵐ) time when m ≫ d.
Depth-limitedPros:Cannot descend forever; linear memory, O(bℓ).Cons:Misses goals deeper than ℓ (incomplete when ℓ < d); not optimal.
Iterative deepeningPros:Complete and optimal for equal step costs, with O(bd) memory.Cons:Regenerates the shallow levels each iteration (a small overhead).
Uniform-costPros:Complete (step costs ≥ ε) and optimal for any step costs.Cons:Uses no information about the goal; O(b^(C*/ε)) can exceed O(bᵈ).
Greedy best-firstPros:Often reaches a goal quickly with a good heuristic.Cons:Not complete (loops); not optimal; O(bᵐ) in the worst case.
A*Pros:Complete; optimal with an admissible (tree) or consistent (graph) h; optimally efficient.Cons:Keeps every generated node: exponential memory.
RBFSPros:Optimal with an admissible h, in linear memory.Cons:Regenerates nodes whenever the best path changes; time hard to predict.
MinimaxPros:Optimal against an optimal opponent.Cons:Searches the whole tree, O(bᵐ); real games need a depth cutoff and an evaluation function.
Alpha-betaPros:The same decision as minimax with less search; O(b^(m/2)) with perfect ordering.Cons:The savings depend on move ordering.

In the tools

Practice: fill in the strategy table

3o Know the individual algorithms and how they work

  • Tree search: put the start state on the frontier; while the frontier is not empty, take a node off it as the strategy says, return the solution if it holds a goal state, else expand it and add its children to the frontier. Lecture reference: Solving Problems by Searching · slide 28
  • Graph search adds two checks: every expanded state goes into the explored set and explored states never go back on the frontier; a child whose state is already on the frontier with a higher path cost replaces that node. Lecture reference: Solving Problems by Searching · slide 36
  • The strategies differ only in which node comes off the frontier next (the table below).
AlgorithmFrontierTakes next
Breadth-firstFrontier:FIFO queueTakes next:The shallowest node Lecture reference: Uninformed Search · slide 3
Depth-firstFrontier:LIFO queueTakes next:The deepest node Lecture reference: Uninformed Search · slide 5
Depth-limitedFrontier:LIFO queueTakes next:The deepest node; nodes at depth ℓ are not expanded Lecture reference: Uninformed Search · slide 33
Iterative deepeningFrontier:LIFO queueTakes next:Depth-limited search with ℓ = 0, 1, 2, … until a goal is found Lecture reference: Uninformed Search · slide 33
Uniform-costFrontier:Priority queue by g(n)Takes next:The cheapest path so far Lecture reference: Uninformed Search · slide 40
Greedy best-firstFrontier:Priority queue by h(n)Takes next:The node that looks closest to the goal Lecture reference: Informed Search · slide 7
A*Frontier:Priority queue by f(n) = g(n) + h(n)Takes next:The lowest estimated total cost Lecture reference: Informed Search · slide 16
RBFSFrontier:Recursion stack (linear space)Takes next:The best child by f, while it stays within f_limit; otherwise back up its f-value Lecture reference: Informed Search · slide 4
MinimaxFrontier:Recursion (depth first)Takes next:Every child, left to right; back up max at MAX nodes and min at MIN nodes Lecture reference: Games and Adversarial Search · slide 11
Alpha-betaFrontier:Recursion (depth first)Takes next:Children left to right until v ≥ β (MAX) or v ≤ α (MIN) Lecture reference: Games and Adversarial Search · slides 21–22

In the tools

Practice: write the expansion order

3p Definitions: admissible, complete, optimal, etc.

Evaluating strategies

Complete
Always finds a solution if one exists. Lecture reference: Uninformed Search · slide 30
Optimal
Always finds a least-cost solution. Lecture reference: Uninformed Search · slide 30
Time complexity
Number of nodes generated. Lecture reference: Uninformed Search · slide 30
Space complexity
Maximum number of nodes in memory. Lecture reference: Uninformed Search · slide 30
b, d, m
Maximum branching factor of the search tree; depth of the optimal solution; maximum length of any path in the state space (may be infinite). Lecture reference: Uninformed Search · slide 30
C*, ε
Cost of the optimal solution; a positive lower bound on step costs. Lecture reference: Uninformed Search · slide 44
Optimally efficient
No other algorithm of its kind using the same heuristic expands fewer nodes and is still guaranteed to find the optimal solution (A* among tree-based algorithms). Lecture reference: Informed Search · slide 30

Heuristics

Heuristic function h(n)
An estimate of the cost of reaching the goal from node n. Lecture reference: Informed Search · slide 5
Evaluation function
Ranks frontier nodes so the most promising is expanded (informed search); in games, scores a state at the depth cutoff instead of its minimax value. Lecture reference: Informed Search · slide 4
Admissible
h(n) ≤ h*(n) for every node n: never overestimates the true cost to the goal. Lecture reference: Informed Search · slide 25
Consistent
h(n) ≤ c(n, n′) + h(n′) for every successor n′. Consistency implies admissibility. Lecture reference: Informed Search · slides 28–29
Dominates
h2 dominates h1 if both are admissible and h2(n) ≥ h1(n) for every n. Lecture reference: Informed Search · slide 35
Relaxed problem
The problem with fewer restrictions on the actions; its optimal solution cost is an admissible heuristic for the original. Lecture reference: Informed Search · slide 33

Problems and trees

State space
All states reachable from the initial state by any sequence of actions. Lecture reference: Solving Problems by Searching · slide 7
Successor function
Captures the transition model: the states an action leads to from a state. Lecture reference: Solving Problems by Searching · slide 14
Frontier
The list of unexpanded nodes. Lecture reference: Solving Problems by Searching · slide 13
Node vs. state
A state is a configuration of the world; a node is part of the search tree, with a parent and a path cost. Many nodes can hold the same state. Lecture reference: Solving Problems by Searching · slide 27
Explored set
States already expanded, kept by graph search so they are not searched again. Lecture reference: Solving Problems by Searching · slide 36

Games

Zero-sum
The sum of the players’ utilities is the same constant in every outcome. Lecture reference: Games and Adversarial Search · slide 4
Minimax value
The utility (for MAX) of a state, assuming perfect play on both sides. Lecture reference: Games and Adversarial Search · slide 10
Ply
One move by one player; the slide 9 tree is a two-ply game. Lecture reference: Games and Adversarial Search · slide 9
Horizon effect
A state’s value is misjudged because an event just beyond the depth limit is overlooked. Lecture reference: Games and Adversarial Search · slide 25

Agents

Agent
Anything that perceives its environment through sensors and acts on it through actuators. Lecture reference: Rational Agents · slide 2
Rational agent
Selects the action expected to maximize its performance measure, given its percept sequence and built-in knowledge. Lecture reference: Rational Agents · slide 4
PEAS
Performance measure, environment, actuators, sensors. Lecture reference: Rational Agents · slide 6

Readings

0 of 1 checked

4a AI regulation

Basic comprehension questions on the assigned reading. No lecture deck or tool covers it.