Lecture 02 Bits, Bytes and Integers¶
Everything is bits.
Boolean Algebra¶
- And & Intersection
- Or | Union
- Not ~ Complement
- Exclusive-Or(XOR) ^ Symmetic difference
Shift Operations¶
- Left Shift: x << y
- Right Shift: x >> y
- Logical
- Arithmetic
Encoding Integers¶
Two's Complement