Q5 — Rete Expert System

Resistor Rete net with a three-deep beta chain: how the join topology alone predicts which tuples can exist before any WME arrives.

The Question

A small part of the Rete Net for classifying resistors is shown in the figure. The labels A1, A2, ..., A10, A11, ..., B1, ..., B5 uniquely identify the nodes in the network. When required, use the above label ordering to break ties and to enter short answers.

#QuestionOfficial answer
5.1Which of the following rule-data tuples are in the conflict-set?A,C
5.2If the Inference Engine uses Specificity as the conflict resolution strategy theC
5.3If the Inference Engine uses Recency as the conflict resolution strategy then idA
Source-data notice

The working-memory list and option texts were lost in transcription - only the net and official answers survive. This page teaches the complete machinery for THIS net; with the exam's WMEs the keyed tuples regenerate mechanically.

The Topic in 60 Seconds

HalfNodesJob
Alpha netA1–A15constant tests: CLASS → itemNo binding ⟨n⟩\langle n \rangle → colour
Beta netB1–B5joins on shared nn; B3/B4 chain a previous join's output with one more colour

Deep-dive: browse the Concepts section for Rule-Based Expert Systems / Rete.

Step 1 — Read the rule structure off the net

Follow every arrow into rules:

RuleFed byFull condition set (same nn throughout)
R1B3black ∧ red ∧ orange — via B1(black⋈red) then ⋈orange
R2B4brown ∧ yellow ∧ blue — via B2(brown⋈yellow) then ⋈blue
R3B5everything R2 needs plus gold — 4 conditions

Structural consequences worth stating in an answer script:

  1. R2 ⊂ R3: any R3 tuple implies an R2 tuple on the same nn (B5 hangs off B4). So R3 firing ⇒ R2 also in the conflict set.
  2. R1 is independent of both — it needs no gold/brown/yellow/blue at all, just black+red+orange on one resistor.

Step 2 — File WMEs and build tokens

Each exam WME (Band-k ^itemNo n ^colour c) lands as token (n)(n) in exactly one colour store among A9–A15. The conflict set is then:

{(R1;nb,r,o), (R2;nbr,y,bl), (R3;nbr,y,bl,g), … }\{(R1; n_{b,r,o}),\ (R2; n_{br,y,bl}),\ (R3; n_{br,y,bl,g}),\ \dots\}

one tuple per complete colour-combination per item number.

Step 3 — Resolve with specificity and recency

Specificity counts conditions — the net hands us the ranking directly:

R3⏟4  >  {R1,R2}⏟3\underbrace{R3}_{4} \;>\; \underbrace{\{R1, R2\}}_{3}

Keyed winner C therefore corresponds to whichever listed tuple belongs to R3 (or, if only R2/R1 tuples exist in WM, the longer of those). Specificity always promotes the deepest beta chain.

Recency compares sorted-descending timestamp lists of each tuple's WMEs; newest element dominates, ties continue down the list, and a longer list beats a shorter one sharing its prefix. Keyed winner A is the tuple whose newest supporting WME was stamped latest — typically the last-inserted band of the winning combination.

Worked micro-example (illustrative)

Suppose WM holds four bands of resistor #7 arriving in order black(101), red(103), orange(105), plus a stray blue #9(104):

  1. Alpha filing: 101→A9, 103→A11, 105→A13, 104→A14.
  2. B1 joins black⋈red at n=7n{=}7 ✓ → passes to B3.
  3. B3 adds orange at n=7n{=}7 ✓ → tuple (R1, 101, 103, 105) enters the conflict set.
  4. Blue #9 dies at B4 (needs brown⋈yellow at n=9 first).

Specificity would rank this lone R1 tuple first trivially; recency picks it because [105,103,101] beats nothing else present.

Tricks & Tips

Answers: 5.1 A,C · 5.2 C · 5.3 A