Skip to content

Glossary: Algorithms Beyond the Basics in Java

bitmask

Also written: flag, flags, mask

A single number whose bits each stand for an on/off option, such as grind, gift wrap and express on an order. Each option is called a flag, and you set, test and clear flags with `|`, `&` and `~`.

Where the book teaches it

Related terms

bit operatorspower of twosubset