Bit manipulation is the act of algorithmically manipulating bits or other pieces of data shorter than a word. Programming tasks that require bit manipulation include low-level device control, error detection and correction algorithms, data compression, encryption algorithms, and optimization. For most other tasks, modern programming languages allow the programmer to work directly with abstractions instead of bits that represent those abstractions. Source code that does bit manipulation makes use of the bitwise operations: AND, OR, XOR, NOT, and bit shifts.
Bit manipulation, in some cases, can obviate or reduce the need to loop over a data structure and can give many-fold speed ups, as bit manipulations are processed in parallel, but the code can become rather more difficult to write and maintain.
Read more about Bit Manipulation: Terminology, Example of Bit Manipulation, Bit Manipulation in The C Programming Language
Famous quotes containing the words bit and/or manipulation:
“unless I can shake myself free of my dog, my flag,
of my desk, my mind, I find life a bit of a drag.
Not always, mind you. Usually Im like my frying pan
useful, graceful, sturdy and with no caper, no plan.”
—Anne Sexton (19281974)
“Denotation by means of sounds and markings is a remarkable abstraction. Three letters designate God for me; several lines a million things. How easy becomes the manipulation of the universe here, how evident the concentration of the intellectual world! Language is the dynamics of the spiritual realm. One word of command moves armies; the word liberty entire nations.”
—Novalis [Friedrich Von Hardenberg] (17721801)