Consider a conjunctive hypothesis space over three binary attributes A1,A2,A3∈{1,2}. What sequences of specific boundaries S and general boundaries G does the candidate-elimination algorithm produce on the four examples (1,1,1,+), (2,2,2,−), (1,2,1,+) and (2,1,1,−), and which hypotheses remain in the final version space?

Foundations, Concept learning
Level L3 Intermediate. Length Long. Nature Th+Mat Both.

What's being asked

Whether you can execute both boundary updates and subsumption pruning in Candidate Elimination, and enumerate the resulting version space.

Key idea

The version space of all hypotheses consistent with the data is bracketed between the maximally specific boundary S and maximally general boundary G; positive examples generalise S and prune G, while negative examples prune S and minimally specialise G.

Steps

  1. Initialise S0={⟨∅,∅,∅⟩} and G0={⟨?,?,?⟩}.
  2. Example 1: (1,1,1,+). ⟨?,?,?⟩ covers (1,1,1) so G1=G0. Generalise S0 to cover (1,1,1): S1={⟨1,1,1⟩}.
  3. Example 2: (2,2,2,−). S1 does not cover (2,2,2) so S2=S1. Specialise ⟨?,?,?⟩ minimally in each coordinate to exclude (2,2,2) while staying at least as general as S2: G2={⟨1,?,?⟩,  ⟨?,1,?⟩,  ⟨?,?,1⟩}.
  4. Example 3: (1,2,1,+). Remove any member of G2 that fails to cover (1,2,1): ⟨?,1,?⟩ is dropped, leaving G3={⟨1,?,?⟩,  ⟨?,?,1⟩}. Minimally generalise S2={⟨1,1,1⟩} to cover (1,2,1): S3={⟨1,?,1⟩} (both members of G3 are more general than ⟨1,?,1⟩).
  5. Example 4: (2,1,1,−). S3={⟨1,?,1⟩} rejects (2,1,1) so S4=S3. In G3, ⟨1,?,?⟩ already rejects (2,1,1) and stays, while ⟨?,?,1⟩ wrongly covers (2,1,1). Its only minimal specialisation that rejects (2,1,1) and remains at least as general as S4={⟨1,?,1⟩} is ⟨1,?,1⟩, which is strictly less general than ⟨1,?,?⟩∈G3 and is therefore pruned. Thus S4={⟨1,?,1⟩} and G4={⟨1,?,?⟩}.
  6. List the final version space {h∈H:∃s∈S4, g∈G4 with g⪰h⪰s}: only two hypotheses lie between ⟨1,?,1⟩ and ⟨1,?,?⟩, namely ⟨1,?,1⟩ and ⟨1,?,?⟩.

Common mistakes

How long your answer should be

Half a page to one page; 6–8 minutes showing Si and Gi at every step.

Last checked on 4 December 2026.

Read this

Previous in Foundations: In positive-unlabelled (PU) learning, every labelled example is positive (s=1  ⟹  y=1), and each true positive is labelled independently of its features with constant probability c=P(s=1∣y=1,x)=P(s=1∣y=1)>0. How do you express the true posterior P(y=1∣x) in terms of the observed-label posterior P(s=1∣x) and c, and how can c be estimated from a held-out set of labelled positives?
Next in Foundations: How do AIC and BIC compare in terms of their complexity penalties and their large-sample behaviour (n→∞) regarding model-selection consistency versus predictive efficiency, and when would you prefer one over the other?