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 unique subset.
Set: [a, b, c] Bitmask positions: 2 1 0 Example bitmask: 101 Subset: [a, c] Representation: Index: 2 1 0 Bits: [1] [0] [1] Set: a b c
