Computer Organization Cheatsheet

Definitions, Symbols, Formulas, and Notes — All in One Place.

Show Shortcuts

Binary

Term

Definition

Example

Binary NumberA number expressed in the base-2 numeral system, which uses only two numbers, 0 and 1.

Most Signficant Bit

MSB

The leftmost bit in a binary number.

Least Significant Bit

LSB

The rightmost bit in a binary number.

Binary to Decimal ConversionFor a binary number n, use the formula n=i=0kai×2i, where ai is each octal digit and i is its position in the number (where the rightmost digit is position 0).

Convert 11001011012 to hexadecimal.

  1. Grouping into sets of four:
    • 001100101101
  2. Convert each group to decimal:
    •  00112=316
    • 00102=216
    • 11012=D16

11001011012=32D16

Binary to Octal ConversionStart from the rightmost binary digit and group them into sets of three. If there are not enough digits in the leftmost group, pad with zeros. Convert each group to decimal and map to each corresponding octal digit.

Convert 10111012 to octal.

  1.  Grouping into sets of three:
    • 001011101 
  2. Convert each group to its octal equivalent:
    • 0012=18
    • 0112=38
    • 1012=58

So, 10111012=1358 in octal.

Binary to Hexadecimal ConversionStart from the rightmost binary digit and group them into sets of four. If there are not enough digits in the leftmost group, pad with zeros. Convert each group of 4 to decimal and then map the result to the corresponding hexadecimal digit.

Convert 11001011012 to hexadecimal.

  1. Grouping into sets of four:
    • 001100101101
  2.  Convert each group to decimal:
    • 00112=316
    • 00102=216
    • 11012=D16

11001011012=32D16

Octal

Decimal

Hexadecimal

Floating Point

Boolean Algebra

Logic Gates

Signed Integers