AI→ML
Roadmap  ›  Part I · The AI Landscape  ›  Module 0 · Orientation
Lesson 02 · Foundations

How Intelligent Systems Are Built

Before Machine Learning won, the field spent forty years trying to build intelligence by hand — first as search, then as logic and rules. To understand why learning-from-data took over, you have to feel exactly where those two approaches broke.

Reading: ~30 min Prerequisites: Lesson 1 Code: none yet — one more map before the machine
Why this lesson exists

In Lesson 1 you learned there are four broad approaches to AI (Search, Symbolic logic, Statistical learning, Bio-inspired). This lesson zooms into the first two — the "build it by hand" approaches — because understanding what Machine Learning replaced is the fastest way to understand what Machine Learning is. Every design choice in the rest of this course is a reaction to a wall that search or logic ran into. See the wall, and the whole ML paradigm stops looking arbitrary and starts looking inevitable.

What this lesson delivers

1 · Two questions every builder must answer

Strip away the jargon and building an intelligent system comes down to answering two questions:

Q1
Representation — How do I encode the problem and what the system knows, in a form a computer can manipulate? (A game board? Logical statements? A vector of numbers?)
Q2
Inference — Given that representation, how do I compute an answer or a good action? (Explore possibilities? Deduce with logic? Evaluate a learned function?)

The four approaches are really just four different pairs of answers to Representation and Inference. This lesson examines the first two pairs. Keep the two questions in mind — we'll use them again to see precisely where each approach cracks.

The oldest idea in AI is beautifully simple: many problems can be framed as finding a path from where you are to where you want to be. If you can describe the situations you might be in and the moves that connect them, then "being intelligent" reduces to exploring that space of possibilities until you find a path to the goal.

The state-space model

Formulate a problem as four things: a set of states (possible configurations of the world), a start state, a set of actions that move you from one state to another, and a goal test that recognizes when you've arrived. Solving the problem = finding a sequence of actions from start to a goal state.

This single template covers a startling range of tasks. A GPS route: states are intersections, actions are roads, the goal is your destination. A puzzle like the 8-puzzle: states are tile arrangements, actions slide a tile. A chess game: states are board positions, actions are legal moves. In each case, the "intelligence" is not knowledge about the domain — it's the systematic exploration.

Representation & Inference, filled in

Representation: the state space (a graph of situations connected by actions). Inference: a search algorithm that walks that graph looking for a goal. That's the whole approach — and notice it needs almost no domain knowledge, just the rules of the game.

Blind search vs informed search

The earliest algorithms searched blindly — breadth-first, depth-first — trying options in a fixed order with no sense of which looked promising. They are correct but hopelessly slow on real problems. The key improvement was informed search: use a heuristic, a cheap estimate of "how close is this state to the goal?", to explore promising directions first.

The heuristic idea (the seed of "evaluation functions")

A heuristic h(state) estimates the remaining cost to the goal. The famous A* algorithm expands states in order of f = g + h, where g is the cost already paid to reach the state and h is the estimated cost still to go. A good h is the difference between searching a whole city and driving almost straight to the destination.

f(state) = g(state)  +  h(state)

Hold onto the word evaluation: when a chess engine scores a position, or later when a model outputs a prediction, they are descendants of this same idea — a cheap number that guides a decision.

Where search shines — and where it stops

Search is still the right tool whenever the rules are known, exact, and the state space is navigable: route finding, logistics scheduling, theorem proving, and game engines all lean on it today. It is precise, it can be proven correct, and it needs no training data.

The wall: combinatorial explosion

The state space grows exponentially with the size of the problem. Chess has roughly 1040 reachable positions; Go has more than 10170. No heuristic makes brute-force exploration of such spaces tractable. And crucially, search assumes the world is clean and known: discrete states, deterministic actions, a crisp goal test. The real world — a blurry photo, an ambiguous sentence, a noisy sensor — offers none of that. Search has no idea what to do when it can't even tell which state it's in.

3 · The symbolic (knowledge & logic) approach

If search's weakness is that it has no knowledge, the obvious fix is to give the machine knowledge. This is the second grand approach, often called symbolic AI or GOFAI ("Good Old-Fashioned AI"): represent facts about the world as symbols and logical statements, then derive new conclusions by inference.

Knowledge representation + reasoning

Encode what you know as explicit statements — facts and if–then rules — in a formal language (often logic). A reasoning engine then applies the rules to the facts to deduce answers the programmer never wrote down directly. The knowledge is declarative: you state what is true, not how to compute the answer.

The textbook illustration is a chain of deduction from a rule and a fact:

Rule:   IF x is human THEN x is mortal   ·   Fact: Socrates is human   ⟹   Socrates is mortal

Scale that up and you get an expert system: hundreds or thousands of hand-written rules capturing a specialist's knowledge in a narrow domain. MYCIN (1970s) diagnosed bacterial infections this way; other systems configured computers or approved loans. For a while they genuinely worked and genuinely made money.

Representation & Inference, filled in

Representation: explicit symbols, facts, and if–then rules written by humans. Inference: logical deduction (chaining rules over facts). Compare to search: search knew the rules of the game but nothing about the domain; symbolic AI is the opposite — it's stuffed with domain knowledge but that knowledge had to be poured in by hand.

The genuine strengths

The wall: the knowledge-acquisition bottleneck

Every rule must be elicited from a human and hand-coded. That runs into three fatal problems:

4 · Two walls, one root cause

Step back and look at the two failures side by side. They look different but share a single root cause.

ApproachWhat it needs from a humanThe wall it hitsFails on
Search & planningthe exact rules / state spacecombinatorial explosionhuge spaces; noisy, uncertain, or unknown states
Symbolic / logicall the knowledge, as explicit rulesknowledge-acquisition bottlenecktacit knowledge; novel cases; scale
The root cause (this is the whole point of the lesson)

Both approaches demand that a human specify the intelligence up front — either as the complete rules of the space, or as the complete body of knowledge. That works only when the problem is small enough and clean enough for a person to fully articulate. The messy, high-variety, tacit-knowledge-laden real world is neither. The bottleneck was never the computer — it was the human in the loop, trying to write down what they cannot fully articulate and cannot exhaustively enumerate.

The escape: invert the pipeline

If the human can't write the rules, remove the human from that job. Instead of programmer → rules → program, do data + desired outcomes → learning procedure → rules. Let the machine infer the rules from examples. This is exactly the pivotal insight from Lesson 1 — and now you can see it solves both walls at once:

✓
It dissolves the knowledge bottleneck — you no longer hand-write rules for tacit skills; you provide examples (labeled faces, labeled spam) and the rules are learned. Gathering examples is far easier than articulating rules.
✓
It tames the explosion — instead of exhaustively searching or enumerating, a learned model generalizes: it maps even unseen, noisy inputs to good outputs, because it captured the statistical pattern rather than a lookup table.
✓
It embraces uncertainty — learned models output graded, probabilistic answers, so blur, noise, and ambiguity are normal inputs rather than fatal ones.
Connect back to Mitchell's triple

The learning approach fills in the <T, P, E> template from Lesson 1: the task T stays the same, but the rules now come from experience E (data) instead of a programmer, and we tune them to maximize a performance measure P. Where symbolic AI asked a human "what are the rules?", ML asks the data "what rules make P as high as possible?"

5 · Reality is a composite — don't over-learn this lesson

It would be a mistake to walk away thinking "search and logic are obsolete." They aren't. The honest picture is that modern systems combine all the approaches, each where it's strongest:

The builder's decision rule

On any new problem, ask: can I write the rules down completely and correctly? If yes and the space is tractable — use search or logic; they're exact, explainable, and need no data. If no — because the knowledge is tacit, the cases are too varied, or the input is noisy — then learn the rules from data. Most valuable modern problems fall in the second bucket, which is why this course lives there.

6 · Limitations — what this reframing does not claim

Guardrails to carry forward

How this connects to the next lesson

Bridge to Lesson 3

You now understand the approaches and why the learning approach won. But the vocabulary around it is a mess — people say "AI", "ML", "Deep Learning", and "Data Science" almost interchangeably, and they are not the same thing. In Lesson 3 — AI vs ML vs Deep Learning vs Data Science, we draw the precise containment map so you can place any tool, headline, or job description in its correct box. After that, Lesson 4 opens the ML machine itself and we finally start filling in the <T, P, E> triple with real mechanics.

Exercises & reflection

Still no code — these sharpen the judgment you'll use constantly. A sentence or two each is enough.

Exercise 1 · Rules or learning?

For each task, decide whether you'd write the rules (search/logic) or learn them from data (ML), and say which wall the other approach would hit:

  1. Validating that a credit-card number has the correct check digit.
  2. Deciding whether a photo contains a cat.
  3. Finding the cheapest flight itinerary between two cities.
  4. Detecting sarcasm in a tweet.
Show discussion

(1) Rules. The check-digit algorithm is exact and tiny — learning it from data would be absurd. (2) Learning. "Cat" is tacit and infinitely varied; a rulebook hits the knowledge-acquisition bottleneck instantly. (3) Search. The rules (routes, prices, connections) are known and exact — a classic state-space search, though pruning matters to fight explosion. (4) Learning. Sarcasm depends on context and tone no one can enumerate as rules; symbolic AI would be hopelessly brittle.

Exercise 2 · Name the wall

A team spends two years hand-coding a 4,000-rule expert system for medical triage. It works in demos but keeps giving dangerous advice on unusual patients, and every new rule seems to break an old one. Name the wall they hit and explain, in one sentence each, the two symptoms described.

Exercise 3 · The composite

Pick one everyday system (a maps app, a spam filter, a smart speaker) and identify at least two of the four approaches working together inside it. This trains the "intelligence is a composite" instinct you'll need all course.

One-paragraph summary to lock it in

Intelligent systems are built by answering two questions — how to represent the problem and how to infer an answer. The first two historical answers were search (explore a space of states with heuristics) and symbolic logic (deduce over hand-written rules). Both demand that a human specify the intelligence up front, so both hit walls: search explodes combinatorially and drowns in noise, while logic chokes on the knowledge-acquisition bottleneck. Machine Learning escapes both by inverting the pipeline — inferring the rules from data instead of from a person — which is exactly why it became the dominant approach and the subject of this course.