First, +9 should be written as 01001, because he said that all the representation of the positive number is the same , so 1's complement representation of +9 should be same as signed magnitude, so the -9=10110 Then, the homework answer: i) +10=01010, -10=10101 ii) +4=0100, -4=1011 iii) +23=010111, -23=101000
Even after 2 years of completing my undergrad in EEE, I watched the entire playlist in one go. What an absolute LEGEND! If only our course in college was even a bit like this, I would've been a gold medalist.
Hello, neso academy, I like your videos I watch them regularly. I observe that many viewers get doubts and you guys do not tend to solve them. you guys are teaching good but if u would make sure viewers are getting satisfied it would be great. Thank YOU, I personally have no doubts as such I clarify them with my teachers.
9 needs 5 bits not 4 ,because 4bits range(-7,7) if you think about it you will find that in the range equation the power is (n-1) instead of (n), this means that there's an unused bit which is there to indicate if the number is complemented or not (if it's 0 then the number isn't complemented) and (if it's 1 then the number is complemented)
Sir,thank you for this videos. Because of this videos i have clear my this subject and i have cleared my third semester. You have done an amazing thing which is so grateful to me...!!! So, Once again thank you.
1) +10 = 01010 -10 = 10101 as range for 5 bits is -15 to +15 2) +4 = 0100 -4 = 1011 as range for 4 bits is -7 to +7 3) +23 = 010111 -23 = 101000 as range for 6 bits is -31 to +31
n = 4 bits -[(2^4-1)-1] to +[(2^4-1)-1] = -7 to +7 The numbers -6 & +6 falls in this range. So use 4 bits to represent -6 & +6. n = 5 bits -[(2^5-1)-1] to +[(2^5-1)-1] = -15 to +15 The numbers -9 & +9 falls in this range. So use 5 bits to represent -9 & +9.
while he represented +13 in signed way he added 0 before 1101 but while he represented +9 in 1's complement he just wrote 1001 (magnitude only) and did not add 0 .. it is very confusing
+10 = 0000 1010 (No. of digits is always in power of 2, 1010 is the magnitude so we cannot change the first bit of the magnitude as signed bit instead we can add 1 bit to represent the sign. If we add 1 zero than, total digits is 5 which is not in the power of 2. So we add 4 zeros ) -10 = 1111 0101 (No. of digits is always in power of 2)
1 s complement representation of -9 requires atleast 5 bits. With 4 Bits the we can only represent up to -7. So 0110 doesnt represent -9, It just represents +6 in any format. -9 in 1s complement representation is 10110 or 110110 or 1110110.... so on. it requires minimum 5 bits
1) +10 = 01010 -10 = 10101 because range is from -15 to +15 for n=5 2) +4 = 0100 -4 = 1011 because range is from -7 to +7 for n=4 3) +23 = 010111 -23 = 101000 because range is from -31 to +31 for n=6
The computer’s CPU interact with complier for this distinction, rest in exams or questions the problem would be assigned as signed or unsigned problem.
here +10 in 1s compliment form is 01010 ie i have represented +10 in 5 bits forms . it is not necessary that it will take only 5 bit form else it can be represented in any bits by just copying the MSB ie 0 to get the desirednumber
hello, how do you if a number should be represented by 4 bits, 5 bits, 6 bits etc? because why are some double digit numbers (ex 10) represented by 5 bits and others (ex 23) by 6 bits?
With 4 bits we can only represent +7 to -7 As -9 is not within the range of numbers that can be represented with 4 bits we can ignore the -9 and take +6 as the value of 0110 in 1's complement Also the +9=01001 -9=10110
I don't know about this. 6 in binary 0110. -6 is 1010 not 1001. He just did the 1's complement but if you want to know what the actual -6 is in binary you still need to get the 2's complement.
1) +10---->01010 -10--->10101 2)+4--->0100 -4--->1011 3)+23---> 010111 -23--->101000 Here I've used msb to represent the sign of the numbers.. Hope you like it..
The range of decimal numbers that can be represented using four bits in 1's compliment representation is -7 to +7! so 9 and -9 cannot be represented using 1's compliment representation!
You can change bits even 7 and 9 could come in one range: if we take 2^8 values or 8 bits, then the range would be -127 to +127 and each decimal digit can be written in 8 bits in binary system. Am I wrong?
For +6, he takes into consideration "sign bit" such as 0110, but on the other hand he doesn't for +9 such as "1001" instead of "01001". This makes me confused. Which is correct? From my understanding, +9 should be "01001" not "1001". (Then, -9 should be "10110".) Someone corrects me! Thank you!
Simple thing in 1s complement data representation is FIRST calcuate unsigned (means you have to put either 0 or 1 depends on +ve or -ve in front of your ans ) and THEN you have to take its 1 s complement
sir why didn't you took 0 for +9 in left side but you have taken 0 of +6 on left ; like in video +6=0110 and +9= 1001so why is +9=01001 and its compliment is 10110 ? I would appreciate the valid ans for this! :)
See..first example is of signed representation..ok ..so we have to take an extra bit for sign and then complement it ..second one is example of unsigned ..so we are not taking extra bit
but where is the bit of sign?? we of course know in unsigned 9 is 1001, what we dont understand is where is the 0 in the beginning? he did write 6 as 0110 not 110... @amir ansari. I think he made a mistake
many others also mentioned it and none of them were answered so i didnt bother asking the same, so you wrote +6 in signed way (0110) but wrote +9 in unsigned (1001) and no explanation what to choose when. if you check other comments you will see a great confusion about that.
@@nesoacademy +ve representation of 9 is 01001 nd its 1's complement will be 11001. You forgot to write the signed bit sir. Kindly look into this matter.
First, +9 should be written as 01001, because he said that all the representation of the positive number is the same , so 1's complement representation of +9 should be same as signed magnitude, so the -9=10110
Then, the homework answer:
i) +10=01010, -10=10101
ii) +4=0100, -4=1011
iii) +23=010111, -23=101000
Correct
thank u
@William John where did 2’s compliment come from? The video talks about 1’s compliment.
That's just a writting mistake, thanks for correction.
+10 = 00101
Even after 2 years of completing my undergrad in EEE, I watched the entire playlist in one go.
What an absolute LEGEND! If only our course in college was even a bit like this, I would've been a gold medalist.
chodse
why did u watch it again?are u preparing for any exam?
Abey fir EEE me kya kar rha tha?
Hello, neso academy,
I like your videos I watch them regularly. I observe that many viewers get doubts and you guys do not tend to solve them.
you guys are teaching good but if u would make sure viewers are getting satisfied it would be great. Thank YOU, I personally have no doubts as such I clarify them with my teachers.
haan theek hai ...baap ko mat sikha....
@@rishabhnegi479 kyu teri maa ko bura laga
@@shreenathsingh007 😂😂shi hai bhai
Hats off
9 needs 5 bits not 4 ,because 4bits range(-7,7)
if you think about it you will find that in the range equation the power is (n-1) instead of (n),
this means that there's an unused bit which is there to indicate if the number is complemented or not (if it's 0 then the number isn't complemented) and (if it's 1 then the number is complemented)
so , before solving every question we'll first check whether no. is falling in range or not , and then we'll represent no. accordingly , right?
@@aakashnailwal2249 correct
Sir,thank you for this videos. Because of this videos i have clear my this subject and i have cleared my third semester. You have done an amazing thing which is so grateful to me...!!! So, Once again thank you.
1) +10 = 01010
-10 = 10101
as range for 5 bits is -15 to +15
2) +4 = 0100
-4 = 1011
as range for 4 bits is -7 to +7
3) +23 = 010111
-23 = 101000
as range for 6 bits is -31 to +31
How you solve for +23 and -23
i) +10 (01010),-10(10101 *1's complement).
ii)+4 (0100), -4(1011 *1's complement)
iii) +23 (010111), -23 (101000 *1's complement).
Is it necessary to show signed representation also
n = 4 bits
-[(2^4-1)-1] to +[(2^4-1)-1] = -7 to +7
The numbers -6 & +6 falls in this range.
So use 4 bits to represent -6 & +6.
n = 5 bits
-[(2^5-1)-1] to +[(2^5-1)-1] = -15 to +15
The numbers -9 & +9 falls in this range.
So use 5 bits to represent -9 & +9.
sir plzz make the correction in representation of 9. 9 needs 5 bits and not 4 bits. Its creating bit of confusion.
sushmita it actually needs 4bits not 5 . from no. 8 till 15 4bits is needed
while he represented +13 in signed way he added 0 before 1101 but while he represented +9 in 1's complement he just wrote 1001 (magnitude only) and did not add 0 .. it is very confusing
she is talking of an extra sign bit
sushmita, I support you. Up to 7, we have to use 4bits but from 8 to 15 we have to use 5bits.
sushmita is right, look at +9(1001) and -6(1001), and as he said in the video 4 bits range is (-7,7)
+10 = 0000 1010 (No. of digits is always in power of 2, 1010 is the magnitude so we cannot change the first bit of the magnitude as signed bit instead we can add 1 bit to represent the sign. If we add 1 zero than, total digits is 5 which is not in the power of 2. So we add 4 zeros )
-10 = 1111 0101 (No. of digits is always in power of 2)
Where did this rule come from that no if digits is in power of 2
PLEASE BRING BACK THE DBMS PLAYLIST I NEED THAT
neso academy is best....it help me a lot as i have most lazy teachers who dont give a s**t about lec
1 s complement representation of -9 requires atleast 5 bits. With 4 Bits the we can only represent up to -7. So 0110 doesnt represent -9, It just represents +6 in any format. -9 in 1s complement representation is 10110 or 110110 or 1110110.... so on. it requires minimum 5 bits
correct
Thanks
I think,he made the error ..
Thank you for your clear explanation. Also, it would be really nice if you justified the range part of this video.
a) 1010 & 0101
b) 0100 & 1011
c) 10111 & 01000
thank you so much sir for these videos
1) +10 = 01010
-10 = 10101
because range is from -15 to +15 for n=5
2) +4 = 0100
-4 = 1011
because range is from -7 to +7 for n=4
3) +23 = 010111
-23 = 101000
because range is from -31 to +31 for n=6
Tq divesh i cleared my concept by seeing ur answers
Thank you very much
thank you i can now check my ans
Here for +10 you did 01010
But in vedio for +9 he only did 1001
Why it happened??
@@abhighildiyal4119 +9 is wrong in video
Can't thank you enough. Still thank you so so much😊😊
how to differentiate between -6 and 9 then...both are represented as 1001
Amit Chauhan exactly !I have the same doubt
9 needs 5 bits not 4 ,because 4bits range(-7,7)
Use 2s representation
@@sammymishal5629 thanks
@@shreyaperla3828 noob
Thank you sir❤❤❤❤
Why did you use 4 bits to represent +9 and -9.You mentioned at 2:47 that range for 4 variables(or bit) is -7 to +7?
yes the solution will be +9=01001 and -9=10110
🔴H/W problem i:
✔️ +10 = 01010
-10 = 10101
.................................................................
🔴H/W problem ii:
✔️ +4 = 0100
-4 = 1011
.................................................................
🔴H/W problem iii:
✔️ +23 = 010111
- 23 = 101000
If i write a number 11011 in 1's complement method...then how will you get to know if it is +27 or -4?
The computer’s CPU interact with complier for this distinction, rest in exams or questions the problem would be assigned as signed or unsigned problem.
HW Answers: -
1) +10 = 01010
-10 = 10101
2) +4 = 0100
-4 = 1011
3) +23 = 010111
-23 = 101000
What does the range signify Sir ?
I have a doubt regarding this lecture. You have represented +6 as 0110 but you represented +9 as 1001 and not as 01001. Why you did so ?
thats a mistake, please correct that
here +10 in 1s compliment form is 01010 ie i have represented +10 in 5 bits forms . it is not necessary that it will take only 5 bit form else it can be represented in any bits by just copying the MSB ie 0 to get the desirednumber
Sir thank you for this amazing lectures .I request you to add lectures on logic families and their interfacing.Thank you
sir, what is concept of range?
i dont able to get it.
It means , by using n bits we can represent numbers with in range...using mentioned representation
hello, how do you if a number should be represented by 4 bits, 5 bits, 6 bits etc? because why are some double digit numbers (ex 10) represented by 5 bits and others (ex 23) by 6 bits?
Here +6 = 0110 and -9 = 0110 so how will the circuit know which one to consider.
With 4 bits we can only represent +7 to -7
As -9 is not within the range of numbers that can be represented with 4 bits we can ignore the -9 and take +6 as the value of 0110 in 1's complement
Also the +9=01001
-9=10110
@@veereshkammara9139 nice one
I don't know about this. 6 in binary 0110. -6 is 1010 not 1001. He just did the 1's complement but if you want to know what the actual -6 is in binary you still need to get the 2's complement.
1) +10---->01010
-10--->10101
2)+4--->0100
-4--->1011
3)+23---> 010111
-23--->101000
Here I've used msb to represent the sign of the numbers..
Hope you like it..
-23will u plzz explain
the number in the range -23 to + 31 is represented by the minimum number of bits is ? please explain also
5bits + 1 sign bit
@@davidwarner2491 you played very bad today
@@arpit5506 😢
sir in 1's complement representation -9 is not represented correctly as msb is assigned for sign. which is 0 means no. is +ve
Do we have to consider even number of bits since we are representing 6 as 0110 not 110?
Thanks Sir😃😃
for +9 =01001
For -9 =11001
Then 1’s complement for -9 is 00110
Am I correct plese correct if wrong......
Wrong! 1's complement of -9 = 10110
Sir 1s complement of any number doesn't represent negative of it.
The range of decimal numbers that can be represented using four bits in 1's compliment representation is -7 to +7! so 9 and -9 cannot be represented using 1's compliment representation!
You can change bits even 7 and 9 could come in one range: if we take 2^8 values or 8 bits, then the range would be -127 to +127 and each decimal digit can be written in 8 bits in binary system. Am I wrong?
thank you sir
sir are we going to use the sign bit here ?
Zero has two representations in both Sign magnitude and 1's complement.
Sign Magnitude
+0 = 0000
-0 = 1000
1's complement
+0 = 0000
-0 = 1111
Am I correct to say that in 1's complement representation, all the negative numbers start with 1?
What is the difference between -6 and 9 then...both are represented as 1001 ???
please neso academy post the tutorials of fault detection method and experiment as soon as possible please please please please
exam kaisa gya?
For +6, he takes into consideration "sign bit" such as 0110, but on the other hand he doesn't for +9 such as "1001" instead of "01001". This makes me confused. Which is correct? From my understanding, +9 should be "01001" not "1001". (Then, -9 should be "10110".) Someone corrects me! Thank you!
I think u are absolutely right
Refer :- try to understand BCD
to represent 9 you need total 5 bits, 4 bits for magnitude and 1 bit for the sign.
In this video sir has done for +13=01101
-13=11101
Hi there
So signed 1's comp is the same as signed magnitude ?
Thank you SIr
How are you taking 6 in 3 bit while signed magnitude and 4 bit in case of 1' complement.This could change the answer.
Both are different representation of same number ....like decimal form and binary are two different representations
ans=
1) (+10=01010) (-10=10101)
2) (+4=0100 (-4=1011)
3) (+23=010111) (-23=101000)
why did u write +6 as 0110 and not 110 ?
0 gives the magnitude
sir, why dont we use 5 bits to represent +10 instead of 4bit ????
we have to use 5 bits representation if we are showing signed representation.
what software you are using to making this video...I mean what you are using for writing.
In neso most watched videos are for digital electronics and signals and SYSTEMS
u can't write +9=1001 because for 4 bit we can represent only from -7 to +7. v need to write +9 as 01001. then -9=10110
+9 should've been represented by 01001 right? and taking its complement 10110.
Right
Thanks a lot man .Make a video about 9's and 10's compliment. And make out about there addition and subtraction
Simple thing in 1s complement data representation is FIRST calcuate unsigned (means you have to put either 0 or 1 depends on +ve or -ve in front of your ans ) and THEN you have to take its 1 s complement
hello dr , i have a question in digital design.. can i send it to you in your email?
I guess for +9 that should be 01001 the MSB will represent the sign. isn't it?
yeah
Sir, you are wrong with representation of +9 and +9. Can you please fix it to not to cause confusion ?
What do you think is wrong?
@@nesoacademy I think it cannot be represented in 4 bits. Am I wrong ?
(i) +10=1010 ; -10=0101
(ii)+4=100 ; -4=011
(iii)+23=10101; -23=01000
"A signed binary's bit length must be equal to a power of 2"
i) 1010;10101
ii)100;1011
iii)10111;101000
hyphen point exactly right
hyphen point it's wrong
It's 101001for -23
Wrong
thank you
sir having doubt in representing -23 in ones complement can you please explain
binary of 23 is 10111
+23 = 0 10111
-23 = 1 01000
what is the range sir?
sir plss upload fault detection full topic nd homing experiment tooo
Sir plz make videos on microprocessor 8085 also...plz sir…
Why did you take 4 bits to represent +6???
because of range, if we tae 3 bits then range is between -3 to+3
can someone provide me the solution of hw problem +23 and -23
sir for +10 it is 01010 and for -10 =10101 it is correct or not for only 1's complement?
Correct. I am not sir though ;)
How -6 and +9 have same binary representation?
Also how +6 and -9 have same binary representation?
answer of
i) 01010, 10101
ii) 0100, 1011
iii) 010111, 101000
I dont undestand : 0110 is -9, no +6
?
Homework answers:
+10=010010
-10=101101
+4=0100
-4=1011
+23=010111
-23=101000
Thankyou sir 🎉🎉🎉
isnt 1001 also equals to -1 ?
Vedio is Short and sweet
sir why didn't you took 0 for +9 in left side but you have taken 0 of +6 on left ; like in video +6=0110 and +9= 1001so why is +9=01001 and its compliment is 10110 ?
I would appreciate the valid ans for this! :)
6=110 in binary and 9=1001 , for positive sign we use 0 in front.
@@gurgaon_videos then in 9 too...we should take a 0 im front
That is an example for 1's complement.
For signed representation we take 0 as MSB.
@@gurgaon_videos i got u but then why 0 is taken in front in representation of 6
See..first example is of signed representation..ok ..so we have to take an extra bit for sign and then complement it ..second one is example of unsigned ..so we are not taking extra bit
1. +10=1010 -10=0101
2. +4=100 -4=011
3. +23=10111 -23=01000
can u justify by using ranges
Tmkc
we must use 4 bits for 4
sir why didnt u take +9 as 01001 instead 1001 in 1's compliment while u took +6 as 0110, could u reply me fast plz
+srinadh j we were taking 4 bits for the number...if we take 5 bits per number then 0 would be 01001 and then 6 would be 00110
it depends on the range -(2^(n-1)-1) to 2^(n-1)-1
lokesh|| cud u explain?
using 4 bits the range is -7 o +7 but for 9 then we should use 5 bits right? but he still used 4 bits... can you plz explain?
but where is the bit of sign?? we of course know in unsigned 9 is 1001, what we dont understand is where is the 0 in the beginning? he did write 6 as 0110 not 110... @amir ansari. I think he made a mistake
Why is 6 0101 and not just 101 ?
Bacause 6 magnitude is 101 and 0 is positive sign
10 ) 1010 _ 0101
4) 100 _ 011
23) 10111 _ 01000
Wtf . So many doubts are pile up.
bhai +9 ko 5 digit se dikhao ....jaise +6 k liye kiye
Answer to homework problems:
1. +10=1010
-10=0101
2. +4= 100
-4=011
3. +23= 10111
-23=01000
1 . 0101 and 1101
2 . 01001 and 11001
3 . 010000 and 110000
+10=01010; -10=10101 ; +4 = 0100 ;-4 = 1011 ; +2223 = 010111 ; -23 = 101000 is this answers are correct
Had a question. Why would you add an extra 0 before 10 and 23? I mean I got the same answers if you don't consider the zero at the start.
SIR aap hindi me leacture digiya
Write English but leacture in hindi
I like your vids but you made a mistake writing +9 in signed form and didnt answer any questions so i disliked.
many others also mentioned it and none of them were answered so i didnt bother asking the same, so you wrote +6 in signed way (0110) but wrote +9 in unsigned (1001) and no explanation what to choose when. if you check other comments you will see a great confusion about that.
@@nesoacademy +ve representation of 9 is 01001 nd its 1's complement will be 11001. You forgot to write the signed bit sir. Kindly look into this matter.
@neso please reply for -9
-9=11001
Very low voice.
Answers to homework problems
1: 1010; 0101
2: 0100;1011
3: 10111;01000