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. Each pattern of switches on/off shows a different lighting setup, just like each bit pattern shows a different subset.
Set: [1, 2, 3] Bitmask positions: 2 1 0 Example bitmask: 101 Subset: includes elements at positions with bit 1 -> [1, 3]
