AI Exam Mega Notes
A polished exam revision note with light-mode and dark-mode editions for search, logic, probability, and belief update topics.
Interactive study notes
Visual solve-plans for every major problem in the page
Each problem type now has a clear visual roadmap: what to identify, what to compute, what to prune or compare, and how to present the final answer step by step.
If the question asks for a path
Write the frontier order, parent links, and final path reconstruction.
If the question asks for a proof or comparison
State the property, then give the shortest valid defense in one or two sentences.
If the question asks for a solved example
Show the data structure after every expansion or assignment so the grader can follow the logic.
Final revision
2-page comprehensive last-minute sheet
Use this as the final pass before exam time. It condenses the full syllabus into two high-density pages.
Final Revision Sheet — Page 1
Search, Adversarial Search, CSP
Uninformed vs Informed Search
- Uninformed: BFS, DFS, DLS, IDS, UCS (no heuristic guidance).
- Informed: Greedy Best-First, A*, Beam, AO*, Hill-Climbing (heuristic-driven).
- BFS is complete + optimal only with uniform step cost; UCS handles non-uniform costs.
- A*: f(n)=g(n)+h(n), optimal when h is admissible/consistent.
- Greedy uses only h(n): often fast, not guaranteed optimal.
Core Search Comparison (exam one-liners)
- BFS: shallowest solution first, memory-heavy.
- DFS: memory-light, can get stuck deep/infinite without checks.
- IDS: DFS memory with BFS depth guarantee.
- UCS: expands least g(n), optimal with positive costs.
- A*: best practical optimal search when heuristic quality is good.
8-Puzzle / Graph Question Workflow
- Write initial + goal state, legal moves, and cost model.
- Track frontier/open list + explored/closed list every expansion.
- For A*, show g, h (Manhattan), f values at each step.
- Stop at goal and backtrack parent pointers for final path.
- If asked failure/case analysis: mention local minima, plateaus, branching effects.
Adversarial Search (Minimax, Alpha-Beta)
- Alternate MAX/MIN levels; evaluate leaves; propagate up.
- MAX picks highest child, MIN picks lowest child.
- Alpha = best already guaranteed for MAX; Beta = best for MIN.
- Prune when alpha >= beta; pruning changes speed, not final minimax result.
- Good move ordering => dramatically more pruning.
CSP Formulation
- CSP = Variables + Domains + Constraints.
- Goal: complete assignment satisfying all constraints.
- Binary CSP uses constraint graph; structure can reduce complexity.
- Backtracking baseline: assign one variable, test consistency, recurse, backtrack on failure.
- N-Queens, map coloring, scheduling, cryptarithmetic are classic CSP examples.
CSP Heuristics + Propagation
- MRV: choose variable with fewest legal values.
- Degree heuristic: tie-break with most constraints on remaining variables.
- LCV: value that rules out fewest choices for neighbors.
- Forward Checking: prune neighbor domains after assignment.
- AC-3 Arc Consistency: remove unsupported values until stable or domain wipeout.
Final Revision Sheet — Page 2
Probabilistic AI, Evolutionary Methods, Logic, Uncertainty
Bayes / Naive Bayes
- Bayes Rule: P(H|E)=P(E|H)P(H)/P(E).
- Naive Bayes assumes conditional independence of features given class.
- Classifier workflow: compute class scores, normalize, pick max posterior.
- Always write prior, likelihood, evidence term, posterior clearly.
- Mention assumption explicitly: independence often approximate, still practical.
Bayesian Belief Networks (BBN)
- DAG where nodes are random variables and edges are dependencies.
- Joint factorization: product of local conditional probabilities.
- Inference with evidence: update beliefs via marginalization/conditioning.
- d-separation gives conditional independence checks.
- Use BBN when dependencies are structured and interpretable.
Genetic Algorithm (GA)
- Pipeline: initialize population -> evaluate fitness -> selection -> crossover -> mutation -> next generation.
- Selection can be roulette-wheel using fitness percentages.
- Crossover recombines parent genes (e.g., single-point).
- Mutation maintains diversity and avoids premature convergence.
- Report best/average fitness trend to show convergence behavior.
Local / Iterative Search Notes
- Hill-Climbing: move to best neighbor; can fail at local maxima/plateaus/ridges.
- Beam Search: keeps top-k candidates; faster, can miss optimal path.
- Min-Conflicts for CSP: iterative repair, very effective for large random n-queens.
- Use random restart when search gets trapped.
- State quality metrics must be explicit in answer.
Logic (FOL + 2nd Order)
- FOL uses predicates over objects with forall/exists quantifiers.
- Key exam risk: quantifier scope mistakes.
- Convert natural language -> symbols -> validate with one concrete interpretation.
- Second-order logic quantifies over predicates/relations (more expressive, harder reasoning).
- When asked comparison: FOL is often computationally friendlier; SOL is stronger expressively.
Jeffrey's Rule / Dempster-Shafer
- Jeffrey's rule updates beliefs with soft (uncertain) evidence probabilities.
- Dempster-Shafer represents belief intervals (belief/plausibility), not single precise probability only.
- Combination rule fuses evidence and handles conflict mass.
- Use Bayes for hard evidence, Jeffrey for soft evidence, D-S for explicit ignorance.
- Always end with interpretation, not just raw numbers.
Last-Minute Exam Output Template
- 1) Problem model (state/variables/evidence/utilities).
- 2) Chosen algorithm + why appropriate.
- 3) Stepwise working table (frontier/domains/probabilities/values).
- 4) Final answer (path/assignment/posterior/move) with one-line justification.
- 5) If comparison asked: complexity + optimality + completeness in one compact sentence.
Organized theory bank
Formulas, proof sketches, reasoning relations, and semantic networks
This section consolidates uncertainty math, Markov and MCMC formulas, reasoning taxonomy, and semantic network representation into exam-ready tables and visuals.
Formula bank (core + advanced)
| Concept | Formula | Use | Exam note |
|---|---|---|---|
| Conditional probability | When event B is already observed | Class example: P(Math|English) = 0.40 / 0.70 = 0.5714 (~57.14%) | |
| Bayes rule | Posterior update after evidence | Use total probability for P(E) if needed | |
| Total probability | Normalization denominator for Bayes | Hypotheses H_i are mutually exclusive and complete | |
| Naive Bayes score | Fast classification with conditional independence | Compute class scores then normalize | |
| Markov chain step | State distribution update in Markov models | P is transition matrix | |
| Stationary distribution | Long-run Markov behavior | Exists/unique under ergodic conditions | |
| Metropolis-Hastings acceptance | MCMC sampling when direct sampling is hard | Accept move with probability alpha | |
| Jeffrey update | Soft/uncertain evidence updates | Unlike Bayes, evidence does not need to be hard-true | |
| Dempster combination | Combine independent evidence sources | K = conflict mass = sum_{B intersect C = empty} m1(B)m2(C) |
Bayes theorem and probability - structured note
Organized from your provided content: uncertainty sources, probability rules, Bayes workflow, independence, Naive Bayes, limitations, and extensions.
1) Probability foundations (what to write first)
- Axioms: 0 <= P(A) <= 1, P(True)=1, P(False)=0, and sum/product rules.
- Core rules: P(A and B)=P(A|B)P(B), P(A|B)=P(A and B)/P(B).
- Marginalization: P(B)=sum_a P(B,a)=sum_a P(B|a)P(a).
- Always define random variables, domain, prior, and evidence before solving.
2) Bayes inference workflow (exam-safe sequence)
- State hypothesis H and evidence E clearly.
- Write Bayes: P(H|E)=P(E|H)P(H)/P(E).
- Compute P(E) using total probability when multiple causes exist.
- Normalize posteriors and choose MAP hypothesis if classification is asked.
- For streaming evidence: posterior at step t becomes prior at step t+1.
3) Independence and Naive Bayes
- Absolute independence: P(A and B)=P(A)P(B).
- Conditional independence: P(A and B|C)=P(A|C)P(B|C).
- Naive Bayes: P(C|x) proportional to P(C) * product_i P(x_i|C).
- Use log probabilities in implementation to avoid underflow.
- If features are strongly correlated, Naive Bayes quality may degrade.
4) Limits of simple Bayes and richer models
- Simple Bayes struggles with interacting causes (e.g., alarm-burglar-earthquake style dependence).
- Multi-fault and causal chaining need structured models (Bayesian networks).
- Use Jeffrey update for soft evidence, Dempster-Shafer for ambiguous evidence.
- Use Bayes factors for model comparison and maximum entropy under constraints.
Key equations (KaTeX)
Bayesian method map (when to use what)
| Method | Evidence type | Update idea | Best use |
|---|---|---|---|
| Bayes theorem | Certain evidence | Posterior proportional to Likelihood x Prior | Diagnosis, inference, classification |
| Law of total probability | Any | Decompose evidence across causes | Denominator/normalization in Bayes |
| Odds form Bayes | Certain evidence | Posterior odds = Prior odds x likelihood ratio | Medical/legal evidence strength |
| Jeffrey rule | Soft/uncertain evidence | Weighted update over revised evidence probabilities | Belief revision with noisy observations |
| Sequential Bayes | Time-sequenced evidence | Posterior becomes next prior | Filtering and online inference |
| Bayes factor | Observed data | Relative support BF = P(E|H1)/P(E|H0) | Model/hypothesis comparison |
| Dempster-Shafer | Partial/ambiguous evidence | Belief over sets + conflict-aware combination | Sensor fusion and ambiguous AI evidence |
| Maximum entropy | Constraint-based | Choose least-biased distribution satisfying constraints | Inference with incomplete info constraints |
Bayes normalization proof sketch
- Start from definition: P(H|E) = P(H and E)/P(E).
- Apply product rule: P(H and E) = P(E|H)P(H).
- Substitute and normalize using P(E) from total probability.
Metropolis-Hastings detailed-balance sketch
- Transition kernel uses proposal q and acceptance alpha.
- Show pi(x)T(x,x') = pi(x')T(x',x) by alpha ratio construction.
- Hence pi is stationary; chain samples target distribution asymptotically.
Markov convergence sketch (exam level)
- For ergodic chains (irreducible + aperiodic), repeated multiplication by P mixes distributions.
- Distance between pi_t and pi* decreases with t.
- Therefore pi_t converges to unique stationary pi* independent of start.
A* optimality sketch (admissible h)
- Admissible h never overestimates true remaining cost.
- So f(n)=g(n)+h(n) is a lower bound on solution cost through n.
- When goal is popped first from OPEN, no cheaper solution can remain.
Reasoning types and relations
| Type | Flow | Conclusion status | Example |
|---|---|---|---|
| Deductive | General -> specific | Certain if premises true | All humans are mortal; Suresh is human; so Suresh is mortal. |
| Inductive | Specific -> general | Probable | Observed many white pigeons; infer pigeons are white. |
| Abductive | Observation -> best explanation | Most likely, not guaranteed | Ground is wet; maybe it rained. |
| Common-sense | Heuristic everyday inference | Practical, context-based | Fire burns hand; one person cannot be in two places at once. |
| Monotonic | Conclusions never retract | Stable under added facts | Earth revolves around Sun remains true after adding facts. |
| Non-monotonic | Conclusions may retract | Revision-friendly | Birds fly; Pitty bird -> flies; add Pitty penguin -> does not fly. |
Semantic network (organized)
Semantic networks store knowledge as nodes (objects/concepts) and arcs (relations like IS-A, OWNED-BY, COLOR). They are intuitive but lack standard quantifier handling and can be expensive to traverse.
Statements encoded
- Jerry IS-A Cat
- Cat IS-A Mammal
- Mammal IS-A Animal
- Jerry OWNED-BY Priya
- Jerry COLOR Brown
Advantages vs drawbacks
- Natural and transparent representation.
- Easy to extend with new nodes/arcs.
- Runtime traversal can be expensive in worst case.
- No strict standard for link naming and quantifiers.
Interactive Lab
Step by step algorithm visualizations
Each widget shows the frontier, bounds, pruning, and backtracking steps. Use the controls to replay every decision the algorithm makes.
A* Search Visualization
Search technique
InformedState graph snapshots (calculation view)
All algorithms quick comparison
| Algorithm | Family | Typical problems | Use when | Complete | Optimal | Time | Space | Trajectory | Replacement |
|---|---|---|---|---|---|---|---|---|---|
| BFS | Uninformed (Blind) | Unweighted shortest path, level-order traversal, minimum moves puzzles | Shortest path in unit-cost graphs | Yes | Yes (if cost=1) | O(b^d) | O(b^d) | Trajectory-based | Use UCS/A* when costs vary; BFS is only step-optimal for uniform costs. |
| DFS | Uninformed (Blind) | Backtracking, maze traversal, topological-style deep exploration | Memory-limited deep exploration | No (infinite loops) | No | O(b^m) | O(bm) | Trajectory-based | Use IDS or A* when completeness and reliable optimality matter. |
| UCS | Uninformed (Cost-based) | Weighted shortest path, route planning with varying costs | Optimal path with varying edge costs | Yes | Yes | O(b^(C*/e)) | O(b^(C*/e)) | Trajectory-based | Use A* with admissible heuristic to reduce expansions. |
| Best First | Informed | Fast heuristic routing, rough path planning | Fast guided exploration | No | No | O(b^m) | O(b^m) | Trajectory-based | Use A* to combine heuristic guidance with path-cost awareness. |
| Greedy Best First | Informed | Quick approximate search, low-latency navigation | Quick approximate route search | No | No | O(b^m) | O(b^m) | Trajectory-based | Use A* or UCS if greedy gets trapped by misleading heuristics. |
| A* | Informed | Optimal pathfinding, maps/robot navigation with heuristics | Optimal search with admissible heuristic | Yes | Yes | O(b^d) | O(b^d) | Trajectory-based | Use IDA* or SMA* when memory is the main constraint. |
| IDS | Uninformed (Hybrid) | Unknown solution depth with limited memory | BFS-like completeness with DFS space | Yes | Yes (if cost=1) | O(b^d) | O(bd) | Trajectory-based | Use A* when heuristic quality can cut repeated depth iterations. |
| IDA* | Informed (Memory-aware) | Heuristic search under tight memory | A*-style optimality with low memory | Yes | Yes | O(b^d) | O(bd) | Trajectory-based | Use A* if memory permits and repeated re-expansion is too costly. |
| SMA* | Informed (Memory-bounded) | Memory-bounded optimal heuristic search | Heuristic search under memory constraints | Yes (if mem>d) | Yes (if mem) | O(b^d) | O(M) | Trajectory-based | Use A* when memory is enough; use IDA* if memory is very tight. |
| AO* | Informed (AND-OR) | AND/OR planning, diagnosis, decomposition with required subgoals | Problems with mandatory AND subgoals | Yes | Yes | O(b^d) | O(bd) | Trajectory-based | Use dynamic programming over solved subgraphs if dependencies are repeated. |
| Beam | Informed (Approximate) | Large-branching approximate search, sequence decoding | Large branching with strict runtime limits | No | No | O(w*b*m) | O(w*b) | Trajectory-based | Use A* or increase beam width when pruning loses solution paths. |
| Hill | Local Search | Local optimization, scheduling/tuning with iterative improvement | Optimization when only final state matters | No | No | O(∞) | O(b) | Non-trajectory | Use simulated annealing / genetic search / random restarts for local maxima. |
Study plan — A*
- Heuristic-guided pathfinding
- Route planning with admissible heuristic
- Display g/h/f values per node
- Show how heuristic improves pruning vs blind search
Properties (A*) -
Pseudocode
function AStar(problem):node = node(problem.initial)frontier = [node]explored = []while frontier not empty:node = pick_next(frontier) // pq.push(child, g+h)if problem.isGoal(node.state):return pathexplored.push(node.state)for child in expand(node):score = priority(child)if child not in explored:frontier.push(child, score)return failure
Search
8-Puzzle with suitable search algorithms
Compare BFS, A*, Greedy, IDA*, Backtracking Search, and Hill Climbing Search on the same puzzle.
Adversarial
Minimax with alpha beta bounds
Track node values, alpha and beta bounds, and pruned branches as the tree is evaluated.
Step detail
Initialize
Root MAX node starts with alpha=-inf, beta=inf
Leaf values
CSP
Backtracking with domain pruning
Track MRV selection, domain pruning, and explicit backtracking steps.
Step detail
Initialize
Domain size = 4
Domains
- Backtracking: DFS with single-variable assignment per node (b = d, not n!d^n)
- Variable Selection: MRV heuristic (choose var with fewest legal values)
- Degree Heuristic: Tie-breaker: most constraints on remaining variables
- Value Ordering: Least-constraining value (rules out fewest remaining values)
- Forward Checking: Track remaining legal values for unassigned variables; fail if any empty
- Arc Consistency (AC-3): X→Y consistent iff ∀x ∈ domain(X) ∃y ∈ domain(Y) satisfying constraint
- Iterative Deepening: Apply AC-3 as preprocessor or after each assignment
- Min-Conflicts: Iterative repair for complete-state formulation; near-constant time for n-queens
- Independent Components: Identify connected components in constraint graph; solve separately
- Tree-Structured: Solvable in O(n·d²) (vs O(d^n) for general CSPs)
- Cutset Conditioning: Instantiate variables to make remainder a tree; runtime O(d^c · (n-c)·d²)
- Unary: Single variable (e.g., SA ≠ green)
- Binary: Two variables (e.g., SA ≠ WA)
- Higher-order: 3+ variables (e.g., cryptarithmetic column constraints)
- Soft: Preferences with costs (constrained optimization)
CSP
N-Queen with suitable algorithms
Visual trace for Backtracking, Min-Conflicts, and Branch-and-Bound.
Evolutionary Optimization
Modern Genetic Algorithm Simulator
Full phase-based simulator for the 8-queens chromosome workflow.
- Chromosomes encode queen-row positions for columns 1..8.
- You can edit genes directly and see immediate fitness changes.
- Fitness is computed as 28 - attacking queen pairs.
| Individual | Gene 1 | Gene 2 | Gene 3 | Gene 4 | Gene 5 | Gene 6 | Gene 7 | Gene 8 | Fitness |
|---|---|---|---|---|---|---|---|---|---|
| P1 | 24 | ||||||||
| P2 | 23 | ||||||||
| P3 | 20 | ||||||||
| P4 | 11 |
Probability
Bayes, Markov, and Naive Bayes math
Step through the math that drives posterior updates and transition models.
| Term | Value |
|---|---|
| P(D) | 0.030 |
| P(+|D) | 0.950 |
| P(+|not D) | 0.080 |
| P(+) | 0.106 |
| P(D|+) | 0.269 |
| From \\ To | Sunny | Cloudy | Rainy |
|---|---|---|---|
| Sunny | 0.70 | 0.20 | 0.10 |
| Cloudy | 0.30 | 0.40 | 0.30 |
| Rainy | 0.20 | 0.30 | 0.50 |
| Feature | P(feature|Spam) | P(feature|Ham) |
|---|---|---|
| win | 0.70 | 0.10 |
| free | 0.60 | 0.05 |
Jeffrey and Dempster-Shafer
Soft evidence and belief fusion
Follow each term in Jeffrey updates and Dempster-Shafer combination.
Probability and Logic
Naive Bayes, Bayesian belief networks, and FOL to 2nd-order transformations
| Condition | P(Rain=T) | P(Sprinkler=T) |
|---|---|---|
| Cloudy=T | 0.80 | 0.10 |
| Cloudy=F | 0.20 | 0.50 |
Step-by-step solve plans
Clear visual plans for each problem type
Search
How to solve a search problem
Use this when the question asks for the best path, the shortest route, or a node expansion order.
Write the initial state, goal test, legal actions, and path cost.
Choose the algorithm family: BFS/DFS/IDS for uninformed, UCS for weighted cost, A* for informed search.
Track the frontier, explored set, parent links, g(n), and h(n) if the method needs it.
Expand the next node according to the algorithm rule and record every state change.
Stop at the goal, then reconstruct the path by following parent pointers backward.
- 1
Write the initial state, goal test, legal actions, and path cost.
- 2
Choose the algorithm family: BFS/DFS/IDS for uninformed, UCS for weighted cost, A* for informed search.
- 3
Track the frontier, explored set, parent links, g(n), and h(n) if the method needs it.
- 4
Expand the next node according to the algorithm rule and record every state change.
- 5
Stop at the goal, then reconstruct the path by following parent pointers backward.
Search
How to solve a minimax / alpha-beta tree
Use this when the problem is a game tree and the players are MAX and MIN.
Label the root as MAX and alternate MAX/MIN levels down the tree.
Assign utilities at the leaves, then propagate values upward by minimax choice.
At MAX nodes, keep the largest child value; at MIN nodes, keep the smallest child value.
Carry alpha and beta bounds while traversing to prune branches that cannot affect the final result.
Return the move selected at the root and explain that pruning does not change the final minimax value.
- 1
Label the root as MAX and alternate MAX/MIN levels down the tree.
- 2
Assign utilities at the leaves, then propagate values upward by minimax choice.
- 3
At MAX nodes, keep the largest child value; at MIN nodes, keep the smallest child value.
- 4
Carry alpha and beta bounds while traversing to prune branches that cannot affect the final result.
- 5
Return the move selected at the root and explain that pruning does not change the final minimax value.
CSP
How to solve a CSP by hand
Use this for map coloring, Sudoku, scheduling, N-Queens, and any assignment-style problem.
| Variable | Domain | Assignment (step) |
|---|---|---|
| WA | {Red, Green, Blue} | Red (1) |
| NT | {Red, Green, Blue} | Green (2) |
| Q | {Red, Green, Blue} | Conflict with WA → backtrack |
| NSW | {Red, Green, Blue} | Green (3) |
List the variables explicitly and define each domain.
Write the constraints atomically, not as one vague sentence.
Pick a variable ordering such as MRV or degree heuristic.
Try a value, then forward check or arc-consistency prune the neighbors.
Backtrack immediately on a conflict and continue until every variable is assigned consistently.
- 1
List the variables explicitly and define each domain.
- 2
Write the constraints atomically, not as one vague sentence.
- 3
Pick a variable ordering such as MRV or degree heuristic.
- 4
Try a value, then forward check or arc-consistency prune the neighbors.
- 5
Backtrack immediately on a conflict and continue until every variable is assigned consistently.
Logic
How to translate and reason in FOL
Use this when the task asks you to encode English statements or compare first-order and second-order logic.
Identify the objects, predicates, and relations in the sentence.
Decide where universal and existential quantifiers belong.
Translate each clause with the correct logical connectors and scope.
Check the formula against a small example model to catch quantifier mistakes.
Close with a short defense: FOL is enough when you only need objects and relations, not predicates over predicates.
- 1
Identify the objects, predicates, and relations in the sentence.
- 2
Decide where universal and existential quantifiers belong.
- 3
Translate each clause with the correct logical connectors and scope.
- 4
Check the formula against a small example model to catch quantifier mistakes.
- 5
Close with a short defense: FOL is enough when you only need objects and relations, not predicates over predicates.
Probability
How to solve a Bayes / Naive Bayes question
Use this when the question asks for a posterior, classification result, or probabilistic update.
Write the prior probability and the evidence likelihood.
Apply Bayes' rule and, if needed, normalize with total probability.
For Naive Bayes, multiply the feature likelihoods under the conditional-independence assumption.
Compare the posterior probabilities for each class or hypothesis.
State the final answer with a one-line explanation of why the evidence shifts the belief.
- 1
Write the prior probability and the evidence likelihood.
- 2
Apply Bayes' rule and, if needed, normalize with total probability.
- 3
For Naive Bayes, multiply the feature likelihoods under the conditional-independence assumption.
- 4
Compare the posterior probabilities for each class or hypothesis.
- 5
State the final answer with a one-line explanation of why the evidence shifts the belief.
Uncertainty
How to explain Jeffrey's rule and Dempster-Shafer
Use this when the question says the evidence is uncertain, incomplete, or partially trusted.
Check whether the evidence is certain or only partially trusted.
If the evidence is soft, apply Jeffrey's rule by updating the belief distribution proportionally.
If the question asks about ignorance or sets of hypotheses, use belief and plausibility instead of a single probability.
When combining sources, mention conflict mass and explain what happens when the sources disagree.
Finish with the exam-safe line: Bayes needs firm evidence, Jeffrey handles soft evidence, and D-S can represent ignorance explicitly.
- 1
Check whether the evidence is certain or only partially trusted.
- 2
If the evidence is soft, apply Jeffrey's rule by updating the belief distribution proportionally.
- 3
If the question asks about ignorance or sets of hypotheses, use belief and plausibility instead of a single probability.
- 4
When combining sources, mention conflict mass and explain what happens when the sources disagree.
- 5
Finish with the exam-safe line: Bayes needs firm evidence, Jeffrey handles soft evidence, and D-S can represent ignorance explicitly.
Chapter notes
What each chapter is really asking you to do
The notes below keep the theory short and exam-friendly. The solve-plans above are the part you should follow when solving a question by hand.
Search Algorithms
State space, frontier handling, heuristics, optimality, and exam-safe explanations for the classic search family.
Constraint Satisfaction Problems
Variables, domains, constraints, backtracking, forward checking, and heuristic ordering for clean CSP answers.
Logic
Translate natural language into formal logic with quantifiers, predicates, and a short proof-oriented workflow.
Probability
Prior, likelihood, posterior, conditional independence, and Bayesian reasoning under uncertainty.
Jeffrey & Dempster-Shafer
Soft evidence, belief updates, and how to explain uncertain evidence without forcing a hard Bayes update.
Exam checklist
How to present the answer cleanly
1. Identify the problem
Write the state, variables, evidence, or utility structure before solving anything.
2. Show the working
List the frontier, assignments, quantifiers, or probabilities in the same order you reason about them.
3. Close with the verdict
End with the path, assignment, formula, or final defense statement that answers the question directly.