Skip to content

Glossary: Algorithms Beyond the Basics

Bitmask

Also written: flag, flags, bitmasks

A single number whose bits each stand for an on/off option; one such option is a flag. For example, grind, gift wrap and express shipping can be stored as bits 1, 2 and 4 of one number.

Where the book teaches it

Related terms

BinaryBit operatorsPower of twoSubset