Bitwise algorithms are a category of algorithms that operate on individual bits within a data unit, rather than the entire data unit itself. They leverage bitwise operators, which are special operators designed to perform operations on bits. Common bitwise operators include AND (&), OR (|), XOR (^), and NOT (~).
Before diving into the world of bitwise algorithms, a basic understanding of binary representation is crucial. Computers store data in binary form, where each unit (bit) can be either 0 or 1. Numbers we typically use (decimal system) are converted to binary for computer processing.