ai-generated methods-of-ai exam-prep

Quiz on the three chosen focus topics for the oral exam (1 Jun 26).

Cluster reported to Kühnberger: (Local) Search · CSPs · Machine Learning.
39 questions, each tagged by difficulty. ML weighted heavily toward Random Forest & SVM — Max’s weak spots.
Answers are hidden in collapsible callouts. Fill in your answer + result during the session.

Difficulty legend

  • 🟢 Moderate — definitions, recall, single-concept “what is X / name the steps.” Warm-ups; you should answer these fast.
  • 🔴 Hard — “why does X fail when Y”, compare two methods, derive a formula, apply to an example. This is where the oral exam lives.
  • ⚠️ = known exam trap (easy to confuse / sign errors / direction confusions), independent of difficulty.

Fact-check note

Q1–Q15 were verified 27/05/26 against the SoSe 2026 lecture slides — every claim is correct AI/ML, with 📋 Slide scope tags marking slide-grounded vs. supplementary (R&N textbook) material. Q16–Q39 (added 28/05/26) are correct AI/ML but not yet individually slide-verified; treat their scope notes as “standard course/textbook material” and double-check exact slide wording before relying on a specific phrasing in the oral.
Key Q1–Q15 caveats: AC-3 / O(c·d³) (slides show AC-1 only), soft-margin C & slack ξ (slides cover hard-margin only), OOB error (slides give the 63.2 % fact but not the term), and the bias–variance variance formula (textbook).

Companion


Local Search

Q1 — Local Search · 🔴 Hard

Question: Hill Climbing gets stuck in local maxima. Compare Random-Restart Hill Climbing and Simulated Annealing in their escape strategy — how exactly does each get out of a local maximum, and when is which one superior?

Max’s answer: RRHC runs often i parallel and by chance it might find the global maximum, because it always starts at a different starting point, SA escapes by accepting worse loss results at the beginning and later the probability of accepting worse outcomes lowers by a cooling schedule which lowers the temperature - which determined how probabilistic a worse acceptance is.
Result:

Q2 — Local Search · 🔴 Hard ⚠️

Question: Write down the acceptance probability for a worse neighbour in Simulated Annealing and explain each variable. What happens in the limits T→∞ and T→0? (Exam trap: the sign of ΔE.)

Max’s answer: exp(deltaE/T): cooling schedule reduces temperature T, the lower T, the more only a better neighbour is chosen.
Result:

Q3 — Local Search · 🔴 Hard ⚠️

Question: What is the decisive difference between Local Beam Search with k states and k parallel (random-restart) Hill Climbings? Why is it more than just “k times the same thing”?

Max’s answer: global vs local
Result:

Q4 — Local Search · 🔴 Hard

Question: Given two parent chromosomes A = 1 1 0 1 0 and B = 0 0 1 0 1. Perform single-point crossover at the point after position 2, then a mutation at position 4 of the first child. And: how does fitness-proportionate selection work?

Max’s answer: child C1: 1 1 1 1 1
Result:

Q5 — Local Search · 🟢 Moderate

Question: How does local search differ from classical/tree search (BFS, A*)? What is the “complete-state formulation”, and why is local search well-suited to optimization problems like n-queens?

Max’s answer: BFS and A* are not local searches by default - they are global ones assessing the entire tree
Result:

Q6 — Local Search · 🟢 Moderate

Question: Name and explain the three classic ways Hill Climbing gets stuck.

Max’s answer: plateaus, no better neighbour, local minimum
Result:

Q7 — Local Search · 🟢 Moderate

Question: Distinguish steepest-ascent, first-choice, and stochastic Hill Climbing.

Max’s answer: steep: all neighbourhood → picking the best, firt-choice: all neighbourhood → picking the first one that improves, stochastic → chooses among better neighbours by chance
Result:

Q8 — Local Search · 🔴 Hard

Question: Why does a ridge defeat Hill Climbing even though the ridge itself ascends? What kind of move would fix it?

Max’s answer: the algorithm never leaves the ridge and therefore cannot reach the global minimum, but keeps on exploring the ridge
Result:

Q9 — Local Search · 🔴 Hard

Question: In Genetic Algorithms, why is crossover powerful but also potentially destructive? When does a GA genuinely beat a mutation-only (hill-climbing-like) search?

Max’s answer: powerful, it creatively combines two very good sets and therefore might form an even better one: but sometimes the parent sets are coherent within itself and make sense → splitting them up may destruct them completely
Result:

Q10 — Local Search · 🔴 Hard ⚠️

Question: Simulated Annealing borrows from physical annealing. What is its theoretical convergence guarantee, and what is the practical catch?

Max’s answer: First, it explores the loss surface a lot by accepting worse neighbours → therefore might avoid local minima. But as the iterations progress, the temperature falls and therefore the probibility of accepting worse neighbours also decreases → getting closer to the global minimum. In theory, if the cooling-schedule is long enough, SA will almost always find the global minimum.
Result:


Constraint Satisfaction

Q11 — CSP · 🔴 Hard ⚠️

Question: Define arc consistency precisely and explain why it is not commutative. Give a concrete example where (X,Y) is arc-consistent but (Y,X) is not.

Max’s answer: soo if D1: red blue green; D2: red blue, then D2 is arc consistent with D1, but D1 is not arc consistent with D2, therefore green is removed → now D1 is also arc consistent with D2
Result:

Q12 — CSP · 🔴 Hard ⚠️

Question: The complexity of AC-3 is O(c·d³) (c = number of arcs/constraints, d = domain size). Justify where each factor comes from.

Max’s answer:
Result:

Q13 — CSP · 🔴 Hard ⚠️

Question: MRV, the Degree heuristic, and LCV — which control variable selection, which control value selection? MRV (“take the most constrained variable”) and LCV (“take the least constraining value”) sound contradictory. Why aren’t they?

Max’s answer: MRV and Degree Heur: variable, LCV: value. mostly you would apple MRV and LCV at the same time, since they observe two different angles. MRV chooses for failing fast, while LCV tries to stay in as long as possible
Result:

Q14 — CSP · 🔴 Hard ⚠️

Question: Does the combination of node + arc consistency guarantee that a solution exists? If not — what good is arc consistency then?

Max’s answer: no arc consistency can only disprove the tree, because it is a binary constraint and does not check the global constraints - while path consistency can at strong k-consistency
Result:

Q15 — CSP · 🟢 Moderate

Question: Give the formal definition of a CSP as a triple, and define what a solution is.

Max’s answer: CSP is a triple of vairbales, domains and constraints, a solution (all assigneed) and consistent
Result:

Q16 — CSP · 🟢 Moderate

Question: Define node consistency and distinguish unary, binary, and higher-order constraints.

Max’s answer: node consistency only that evry value sastisfies the unary constraint, binary means it involves two varibales, and hogher order even more variables and values
Result:

Q17 — CSP · 🟢 Moderate

Question: What is backtracking search for CSPs, and how does it improve on naive “generate complete assignments and test”?

Max’s answer: backtracking finds a complete assignment by depth fist and
Result:

Q18 — CSP · 🟢 Moderate

Question: What is forward checking?

Max’s answer: prune neighbours domains after each assignment
Result:

Q19 — CSP · 🔴 Hard

Question: Why is MAC (Maintaining Arc Consistency) strictly stronger than forward checking? Sketch a situation FC misses but AC catches.

Max’s answer: because it applies AC-3 after each step
Result:

Q20 — CSP · 🔴 Hard

Question: Describe the Min-Conflicts algorithm (local search for CSPs). Why is it astonishingly effective on the n-queens problem, even for huge n?

Max’s answer:
Result:

Q21 — CSP · 🟢 Moderate

Question: What does RCC-8 model, and can you name several of its relations?

Max’s answer: spatial reasoning - meaning it describes how regions related to each other
Result:

Q22 — CSP · 🔴 Hard

Question: Map colouring is the canonical CSP. Set it up formally, describe its constraint graph, and show how MRV + Degree behave on the Australia map.

Max’s answer:
Result:


Machine Learning

Q23 — ML · 🔴 Hard ⚠️

Question: Define bias and variance. Explain precisely why bagging reduces variance but not bias.

Max’s answer:
Result:

Q24 — ML · 🔴 Hard ⚠️

Question: What is the one extra source of randomness a Random Forest introduces over plain bagging of trees? Why does decorrelating the trees reduce ensemble variance — and not bagging alone?

Max’s answer:
Result:

Q25 — ML · 🔴 Hard ⚠️

Question: What is the Out-of-Bag (OOB) error, why do you get it “for free”, and what does it approximate?

Max’s answer: it is like a free test-set, since when creating a new bag, you take the left-overs and you get a similar distribution to a test-run
Result:

Q26 — ML / SVM · 🔴 Hard ⚠️

Question: What exactly are support vectors, and why do only they determine the hyperplane? What happens to the decision boundary if you delete a non-support-vector — and what if you delete a support vector?

Max’s answer:
Result:

Q27 — ML / SVM · 🔴 Hard ⚠️

Question: The C parameter in the soft-margin SVM: what do large vs. small C do to the margin width and to the bias–variance tradeoff? (Direction is frequently confused!)

Max’s answer:
Result:

Q28 — ML / SVM · 🔴 Hard ⚠️

Question: Explain the kernel trick: what does it compute, and why do you never have to evaluate φ(x) explicitly? Give the form of the RBF / Gaussian kernel.

Max’s answer:
Result:

Q29 — ML · 🔴 Hard

Question: Decision trees: entropy and information gain drive the splits. Why does a single tree overfit, and how do max-depth / pruning relate to the bias–variance tradeoff?

Max’s answer:
Result:

Q30 — ML · 🟢 Moderate

Question: Distinguish supervised, unsupervised, and reinforcement learning, with one example each.

Max’s answer:
Result:

Q31 — ML · 🟢 Moderate

Question: What distinguishes overfitting from underfitting in terms of training vs. test error?

Max’s answer:
Result:

Q32 — ML · 🟢 Moderate

Question: What is k-fold cross-validation and what problem does it solve?

Max’s answer:
Result:

Q33 — ML · 🟢 Moderate

Question: What does a perceptron learn, and what is its fundamental limitation?

Max’s answer:
Result:

Q34 — ML / SVM · 🔴 Hard

Question: Why does a hard-margin SVM fail on real data, motivating the soft margin? And geometrically, why is the margin width 2/‖w‖?

Max’s answer:
Result:

Q35 — ML / SVM · 🔴 Hard

Question: Show why “maximize the margin” turns into the optimization min ½‖w‖² s.t. yᵢ(⟨w,xᵢ⟩+b) ≥ 1.

Max’s answer:
Result:

Q36 — ML · 🟢 Moderate

Question: What is bootstrap sampling, and what does bagging do with it?

Max’s answer:
Result:

Q37 — ML · 🔴 Hard ⚠️

Question: Why is accuracy a misleading metric on imbalanced data? Define precision, recall, and F1, and say when you care about which.

Max’s answer:
Result:

Q38 — ML · 🔴 Hard

Question: Sketch the U-shaped test-error curve as model complexity grows, in terms of bias and variance. Where is the optimum?

Max’s answer:
Result:

Q39 — ML / SVM · 🟢 Moderate

Question: Name the three kernels from the slides and give the linear and polynomial forms.

Max’s answer:
Result:


Score

  • Local Search: __ / 10
  • CSP: __ / 12
  • Machine Learning: __ / 17
  • Total: __ / 39

By difficulty:

  • 🟢 Moderate: __ / 14
  • 🔴 Hard: __ / 25

Re-Quiz

Note any questions answered wrong/unsure here and revisit in 2–3 days: