Consider inputs with Boolean features . How many distinct Boolean functions exist in total, how many semantically distinct conjunctions of literals (allowing unnegated literals , negated literals , or omitting feature ) exist, and what are both counts for ?
Foundations, Hypothesis spaces
Level L2 Elementary. Length Short. Nature Th+Mat Both.
What's being asked
Whether you can count both the unrestricted function space and a structured hypothesis class, seeing how fast inductive bias shrinks the search space.
Key idea
A Boolean function assigns or independently to each of the inputs, giving functions, whereas a satisfiable conjunction chooses one of states (, , or omitted) per feature, plus contradictory always-false hypothesis, giving .
Steps
- Count all Boolean functions: there are possible binary input vectors , and each vector can be mapped to or , giving distinct truth tables.
- Count distinct conjunctions of literals: for each feature , a satisfiable conjunction either includes , includes , or omits feature ( choices per feature, giving distinct non-empty subsets of ). Any contradictory pair such as represents the single empty (always-false) function, adding for a total of semantically distinct hypotheses.
- Evaluate at : there are Boolean functions in total, compared with conjunctive hypotheses (already nearly a tenfold reduction, which becomes vs at ).
Common mistakes
- Writing instead of for the total number of Boolean functions.
- Counting syntactic strings with separately as instead of collapsing all contradictions to the single always-false function (+1).
How long your answer should be
3–4 sentences with the two formulas and the numbers for .
Last checked on 4 December 2026.
Read this
Previous in Foundations: Suppose a concept is a conjunction of three attributes with , and . Given the training examples , , and , what sequence of hypotheses does the Find-S algorithm produce, and what assumptions does it rely on?
Next in Foundations: You fit two nested Gaussian regression models on data points: Model A has parameters and maximised log-likelihood , while Model B has parameters and . Using and (lower is better), which model does each criterion select?