The halving algorithm is run on a finite class of 1000 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 M satisfies 1000/2M≥1.

Steps

  1. Halving algorithm: keep the set V of hypotheses consistent with all examples so far. Predict by majority vote of V. After the true label arrives, remove every hypothesis that was wrong.
  2. If the algorithm errs, the majority was wrong, so at least ∣V∣2 hypotheses are deleted. Thus after each mistake ∣V∣ is at most halved.
  3. After M mistakes, ∣V∣≤1000/2M.
  4. Realisability means the true hypothesis is never deleted, so ∣V∣≥1. Therefore 2M≤1000, i.e. M≤log⁡21000≈9.97.
  5. M is an integer, so M≤9 (since 29=512≤1000<1024=210). In general M≤⌊log⁡2∣H∣⌋.

Common mistakes

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 ha,b(x)=1[a≤x≤b] on the real line, and why?
Next in Learning theory: A learner must find a conjunction of literals over n=10 Boolean variables (each variable may appear positively, negated, or not at all) in the realisable setting. Treat the class as having 310+1 hypotheses (the extra one is the always-false conjunction). How many examples guarantee error at most 0.1 with probability at least 0.95?