Mental Model
We use numbers in binary form to represent which elements to include in a subset. Each bit tells us if an element is in or out.
Analogy: Imagine a row of light switches, each switch controls one item. On means include the item, off means exclude it. By flipping switches in all possible ways, we get all subsets.
Set: [a, b, c]
Bitmask: 000 -> []
001 -> [a]
010 -> [b]
011 -> [a, b]
100 -> [c]
101 -> [a, c]
110 -> [b, c]
111 -> [a, b, c]