The halving algorithm is run on a finite class of hypotheses and the labels are realisable (some hypothesis in the class is always correct). What is the largest number of mistakes it can make, and why?
Learning theory, Mistake-bound model
Level L2 Elementary. Length Short. Nature Mat Mathematical.
What's being asked
Whether you can apply the halving argument and handle the integer rounding.
Key idea
Each mistake removes at least half of the remaining hypotheses and the version space never becomes empty, so the number of mistakes satisfies .
Steps
- Halving algorithm: keep the set of hypotheses consistent with all examples so far. Predict by majority vote of . After the true label arrives, remove every hypothesis that was wrong.
- If the algorithm errs, the majority was wrong, so at least hypotheses are deleted. Thus after each mistake is at most halved.
- After mistakes, .
- Realisability means the true hypothesis is never deleted, so . Therefore , i.e. .
- is an integer, so (since ). In general .
Common mistakes
- Answering by rounding up. The bound is the floor, because would need .
- Forgetting that the bound needs realisability. If no hypothesis is perfect, the version space can become empty.
- Using a random member of as the predictor. Majority voting is what guarantees the halving.
How long your answer should be
4 lines; about 1 minute.
Last checked on 4 December 2026.
Read this
Previous in Learning theory: What is the VC dimension of the class of closed intervals on the real line, and why?
Next in Learning theory: A learner must find a conjunction of literals over Boolean variables (each variable may appear positively, negated, or not at all) in the realisable setting. Treat the class as having hypotheses (the extra one is the always-false conjunction). How many examples guarantee error at most with probability at least ?