Binary & Algorithm
Binary & Algorithm
Ms. Shamini
WHAT IS A
COMPUTER?
HOW DOES A
COMPUTER
COMMUNICATE?
WHAT IS
BINARY?
0
OFF
1
ON
INTERPRETING BINARY
• Following shows how binary is read;
16 8 4 2 1
24 23 22 21 20
How these numbers are calculated?
2x0=1
2x1=2
2x2=4
2x3=8
2 x 4 = 16
BASE 2 : BINARY
EXAMPLE HOW BINARY IS
INTERPRETED
• When a binary number card is not
showing, it is represented by a zero.
• When it is showing, it is represented by a
one. This is the binary number system.
=9
3
=3
5
9
It’s Quiz Time!
The binary for 6 is
1010 111
110 11
The binary for 8 is
101 111
110 1000
The binary for 20 is
10010 10101
10100 11111
10
is the binary for…
2 3
10 1
101
in binary is the same as…
3 5
9 17
1111
is the binary for …
4 7
15 20
LET’S REVIEW
A: Binary Code
• Q: What are the two digits used in
binary code?
A: 0 and 1
• Algorithm is a funny word.
• It is really just a set of step-by-step
instructions.
• Algorithms tell computers and other
machines what to do.
• Humans use algorithms too!
Link here