WEBVTT

00:00.000 --> 00:04.000
Fundamentals of Binary Arithmetic

00:04.000 --> 00:10.000
In this video we will understand binary numbers as the basic language of computers.

00:10.000 --> 00:15.000
Compare binary with decimal numbers and recognize their role in data.

00:15.000 --> 00:19.000
Learn the rules for performing binary addition with carries.

00:19.000 --> 00:24.000
Learn the rules for performing binary subtraction with borrowing.

00:24.000 --> 00:28.000
Everything a computer does comes down to just two numbers,

00:28.000 --> 00:31.000
one and zero.

00:31.000 --> 00:34.000
Today we'll explore binary arithmetic,

00:34.000 --> 00:38.000
how the simple digits perform calculations, store information,

00:38.000 --> 00:42.000
and power the technology we use every day.

00:42.000 --> 00:47.000
Binary is a numbering system where all possible values are represented by two symbols,

00:47.000 --> 00:52.000
such as on-off, true false, or one and zero.

00:52.000 --> 00:56.000
Computers handle all data as a stream of binary numbers

00:56.000 --> 01:03.000
and it is much easier to work with two values than ten values in a decimal system.

01:03.000 --> 01:09.000
Binary addition follows simple rules, adding zero and zero gives zero.

01:09.000 --> 01:11.000
Zero and one gives one.

01:11.000 --> 01:14.000
One and zero gives one.

01:14.000 --> 01:17.000
And one plus one gives ten.

01:17.000 --> 01:20.000
That's zero with a carry of one to the next column.

01:20.000 --> 01:23.000
Let's explain with example.

01:23.000 --> 01:28.000
So when we add these two digits one plus one, the sum will be zero,

01:28.000 --> 01:30.000
and carry to the next column will be one.

01:30.000 --> 01:33.000
So now let's add these two digits.

01:33.000 --> 01:36.000
One plus one, the sum will be zero,

01:36.000 --> 01:39.000
and carry to the next column will be one.

01:39.000 --> 01:42.000
Now here zero plus one gives us one.

01:42.000 --> 01:45.000
So that's how we can add these numbers together.

01:45.000 --> 01:48.000
Now let's come to the next column one plus one.

01:48.000 --> 01:52.000
The summation will be zero, and carry to the next column will be one.

01:52.000 --> 02:01.000
0 plus 0 is 0. Now let's jump to the next column. 1 plus 0 is 1 and 1 plus 1 is 0.

02:01.000 --> 02:08.500
And carry to the next column is 1. Now again over here 1 plus 1. The sum is 0. And carry

02:08.500 --> 02:17.300
to the next column will be 1. Now 0 plus 1 gives us 1. Now here we have 1 carry. But no

02:17.300 --> 02:23.660
digit is available into this numbers. So by default we will take it as 1. So that is

02:23.660 --> 02:34.360
how you can add 2 binary numbers. Let's understand binary subtraction. Binary

02:34.360 --> 02:46.100
subtraction follow these rules. 0 minus 0 gives 0. 1 minus 0 gives 1. 1 minus 1 gives 0.

02:46.100 --> 02:55.180
And when 0 minus 1 occurs we borrow from the next column. Let's subtract these 2 binary

02:55.180 --> 03:01.060
numbers step by step. We always begin from the rightmost column and move left. In the

03:01.060 --> 03:09.540
first column 1 minus 1 gives 0. In the next column we need to subtract 1 from 0. This

03:09.540 --> 03:15.380
isn't possible directly. So we borrow from the next column just like in decimal subtraction.

03:15.380 --> 03:21.500
In decimal borrowing increases the value by 10. In binary borrowing increases the value

03:21.500 --> 03:32.220
by 2. Which we write as 1 0. So when we borrow the 0 becomes 10. Now 10 minus 1 gives 1.

03:32.220 --> 03:40.540
Moving on 0 minus 0 is 0. And finally 1 minus 1 is 0. That's how binary subtraction

