export class PowerSet {
    static generate(numValues) {
        const total = 1 << numValues;
        const powSet = [];
        for (let i = 0; i < total; i++) {
            const group = [];
            for (let j = 0; j < numValues; j++) {
                group.push(!!((i >> j) & 1));
            }
            powSet.push(group);
        }
        return powSet;
    }
}
