Mental Model
Each subset can be represented by a series of on/off switches, where each switch decides if an element is included or not.
Analogy: Imagine you have a row of light switches, each controlling a lamp. Turning a switch on means including that lamp in the room's lighting; off means excluding it. Every combination of on/off switches creates a unique lighting setup, just like every combination of elements forms a subset.
Set: [a, b, c] Bitmask positions: 0 1 2 Example bitmask: 101 Subset: [a, c] Positions: [a] ← bit 0 [b] ← bit 1 [c] ← bit 2