Binary Subtraction using 1's Complement

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

ความคิดเห็น • 441

  • @HAwKY.
    @HAwKY. 3 ปีที่แล้ว +191

    Not gonna lie, I couldn't understand this 1's complement through online classes and now after watching this i understood very well.. Thank you Sir.

    • @tahahaider5836
      @tahahaider5836 2 ปีที่แล้ว +1

      This is also online class

    • @Dhanadi2001
      @Dhanadi2001 2 ปีที่แล้ว +3

      Exactly 💙😌 Thanks alot for making such easy understanding video

    • @DestinyPathway0
      @DestinyPathway0 ปีที่แล้ว +2

      What is (16)10-(5)10

    • @mohdkhalidshaikh848
      @mohdkhalidshaikh848 ปีที่แล้ว

      ​​@@DestinyPathway0(11)10 😂

  • @tayyab.sheikh
    @tayyab.sheikh ปีที่แล้ว +13

    The answers I got !
    1 » 0111
    2 » 0101
    3 » 00110 (Took 1's comp. of 11001)
    4 » 01101

    • @MY-dq6nt
      @MY-dq6nt 2 หลายเดือนก่อน +1

      Hey, in ques 2 I am getting the same answer but 0101 base 2 should be +5 and 1010 base2 should be -5. And the correct answer is indeed -5. How are you saying that 0101 base 2 is -5

  • @sarder681
    @sarder681 ปีที่แล้ว +28

    HW-3: A=11001=(25)base 10 , B=1111 =(15)base 10 =01111(took one bit ""0"" for divide with A. Now 1's comp. of B=10000. Here, A+B=11001+10000=101001(carry 1).so,01001+1=01010=(10 )base 10.

  • @jyeshtar8333
    @jyeshtar8333 6 ปีที่แล้ว +59

    A=0111
    B=0101
    C=01010
    D=01101

    • @oximas-oe9vf
      @oximas-oe9vf 8 หลายเดือนก่อน +2

      shouldn't the last one be -15, why did the answer come as -13 in binary?

    • @Meetboii_10
      @Meetboii_10 6 หลายเดือนก่อน +1

      @@oximas-oe9vf after addition, the sum is 10010. Since there is no carry, you need to complement it which comes out to be 01101

  • @adamamaral5949
    @adamamaral5949 7 ปีที่แล้ว +83

    1) 0111 (utilizes end carry)
    2)1010 (-5 because 1s comp = 0101 +5)
    3)1010 (utilizes end carry)
    4)10010 (-13 because 1s comp = 01101 +13)

  • @dmwmm
    @dmwmm 8 ปีที่แล้ว +62

    By far the best videos regarding Digital Electronics out there!

    • @shivanngpuri
      @shivanngpuri 3 ปีที่แล้ว +5

      5 years later, still the best!

    • @devdoodle69
      @devdoodle69 3 ปีที่แล้ว +3

      @@shivanngpuri Agreed 👍🏻
      Best in TH-cam

    • @shailesh_rajpurohit
      @shailesh_rajpurohit ปีที่แล้ว +1

      bro what are doing in your life now?

    • @SohelDarwajkar
      @SohelDarwajkar ปีที่แล้ว

      ​@@shailesh_rajpurohit😂

  • @baptizedInFire27
    @baptizedInFire27 2 ปีที่แล้ว +9

    Not gonna lie, I couldn't understand this 1's complement through online classes and now after watching this i understood very well.. Thank you Sir

  • @CoolCool-jp4hv
    @CoolCool-jp4hv 5 ปีที่แล้ว +24

    In this video answer of three will be 01010.you have to pad one zero at the beginning to the term being subtracted. U can also check this by carrying out normal binary subtraction
    .

  • @swetachaudhary9220
    @swetachaudhary9220 3 ปีที่แล้ว +24

    Man!! How can someone make videos at this level of understanding. These videos are so awesome yar.... thank you so so so much sir. Like always, can't describe in words. Literally can't. Can say thanks only..😊😊

  • @aaliyafarheen7031
    @aaliyafarheen7031 3 ปีที่แล้ว +21

    OMG this was soooo good...All my doubts are cleared...I am sooo happppppy that I just want to cry😭😭😭

  • @adithya.k7677
    @adithya.k7677 2 ปีที่แล้ว +3

    man!!!! thank you so much , day after is my final exam, i understood perfectly ,,...🤞🤞🤞🤞🤞🤞🤞🤞

  • @shohineemandal6367
    @shohineemandal6367 6 ปีที่แล้ว +7

    really helpful nesco academy..a big thanks for all the videos...it help teachers also

  • @RahulMadhavan
    @RahulMadhavan 6 ปีที่แล้ว +17

    To clarify further on Example 2 at 8.30, we may want to take 1 extra bit
    1) The 4 bit number system has range [-(2^3)-1,+(2^3) -1)] = [-7,7]. Then the number 0101 is 5 as expected, but 1100 is actually -(0011) or -3
    Then (0101)2 - (1100)2 = 5-(-3) = 8, which again cannot be represented in 4 bit system.
    So we consider a 5 bit system
    2) The 5 bit system has range [-15,15]. So 00101 represents 5 and 01100 represents 12
    (00101) - (01100) = (00101) + (10011) = 11000 = -(00111) = -7 in the 5 bit system

    • @Im_DJ
      @Im_DJ 3 ปีที่แล้ว +1

      Thank you so much

    • @jatindersingh9771
      @jatindersingh9771 2 ปีที่แล้ว

      You are correct in clarifying.
      Example 2: (0101)-(1100) gives you 1000 with a carry of 0. The carry of 0 tells us our answer will be negative. It also tells us the magnitude will be the 1's complement. Taking the 1's complement of 1000 (which is 8), gives us 0111 which is 7. The carry gives the sign. The magnitude after the complement is taken.

    • @ArnavVerma-oy4dc
      @ArnavVerma-oy4dc ปีที่แล้ว

      could u you tell why you have wriiten -(0011) ? does writing - have sense with binary because negative is essentially 1's complement ? also why do we invert the answer when there is no end carry because answer should be negative and if you invert the answer then it becomes positive , so why do we invert the final answer then ?

  • @adnanmohamed6517
    @adnanmohamed6517 3 ปีที่แล้ว +19

    Thanks for your efforts. You've showed that the algorithm (steps) work in some cases, and it would be great if you reasoned why it works in general for all numbers (since the algorithm is claimed to work in general and not just for those 2 to 4 cases).

  • @saninamu6567
    @saninamu6567 7 ปีที่แล้ว +44

    1. 0111
    2. 0101
    3. 1010
    4. 01101

    • @arnavkanwal5888
      @arnavkanwal5888 4 ปีที่แล้ว +5

      @Anuj I add 11001 and 10000, you will get 101001 , but since we need a 5 bit answer , add the carry ,i.e 1 , to the answer. So it will become 01001 + 1 = 01010

    • @meghanareddy1788
      @meghanareddy1788 4 ปีที่แล้ว

      @@arnavkanwal5888 could you please explain me the answer of first one in hw problems

    • @comicallyyours6307
      @comicallyyours6307 4 ปีที่แล้ว

      @@meghanareddy1788 -B=1011, now A-B=10110, now this is a 5 bit number so the final carry is 1, so for the final answer we will add 1 to 0110, ie, binary addition of 0110 + 1=0111

    • @balaramathmakuri1245
      @balaramathmakuri1245 4 ปีที่แล้ว +1

      can any one say next step in Q4 after getting 10010 by adding 10000 and 00010 ? plssss

    • @vasundaraasaravanan4871
      @vasundaraasaravanan4871 3 ปีที่แล้ว +3

      @@balaramathmakuri1245 10010 is the answer which is equal to minus 13(16-29)

  • @neeharbindu6564
    @neeharbindu6564 4 ปีที่แล้ว +22

    ANS :- (1) 0111 or 7 in decimal (2) 0101 or (-5) in decimal
    (3)01010 or 10 in decimal (4) 01101 or (-13) in decimal

    • @_ranjanchauhan
      @_ranjanchauhan 3 ปีที่แล้ว

      your first answer is wrong , right answer is 00011

    • @vvivek2381
      @vvivek2381 3 ปีที่แล้ว +3

      @@_ranjanchauhan no its correct!!

    • @prakashreddy9224
      @prakashreddy9224 3 ปีที่แล้ว

      it is not sign number .so result must be positive in any case

    • @ashokkumarerla4017
      @ashokkumarerla4017 3 ปีที่แล้ว

      Oka sari 4 th explain chestara

    • @020yaminisaraswathi8
      @020yaminisaraswathi8 3 ปีที่แล้ว +3

      In the 3 rd question we were not getting the carry right.....the answer should be 00110 but it is equal to decimal number 6.... why is this so?

  • @neralp8252
    @neralp8252 2 ปีที่แล้ว +5

    years after this video is published, it's still helping people ❣❣❣❣

  • @fasih_jarral58
    @fasih_jarral58 หลายเดือนก่อน

    My all concepts get cleared after watching your videooo wonderful job you are doing ❤

  • @tcggggg
    @tcggggg หลายเดือนก่อน

    Guys, he inverts the 1000 because the 1 in front tells you it is negative (as in 1000 while in 1's compliment form ) but to find the magnitude of the answer you invert it back to 0111 (value is 7). Then you combine. So it's -7. But the actual answer in 1's compliment form is indeed 1000 (base 2) you just invert it back to check the magnitude.

  • @amitghosh3938
    @amitghosh3938 6 ปีที่แล้ว +7

    instead of 12 i think 1100 is negative and in 1's complement form which is -3 in decimal

  • @veeralvora07
    @veeralvora07 3 ปีที่แล้ว +8

    In the second scenario, the answer is supposed to be negative (5-12=-7), then why do we need to complement again? 1000 is -7 only, right?

    • @omop5922
      @omop5922 3 ปีที่แล้ว

      1000 is 8

    • @Im_DJ
      @Im_DJ 3 ปีที่แล้ว

      Same doubt😞

    • @yasharthgupta9002
      @yasharthgupta9002 3 ปีที่แล้ว +1

      @@Im_DJ I think sir is doing that for us to understand that 1000 is -7 and not +8 as most of us would assume that, the answer is what we actually got just by directly adding two numbers A and B, if you have +7->0111 do 1's comp you get 1000, so in 1's complement representation 1000 represents -7.

  • @learnwithmanu5655
    @learnwithmanu5655 8 ปีที่แล้ว +26

    Sir can u please make a lecture series on microprocessor and it's programming. Please Sir.

  • @vikku_19
    @vikku_19 6 ปีที่แล้ว +19

    1. 0111
    2. 0101
    3. 00110( In this case we have zero carry so we should invert the addition result)
    4. 01101
    Are these answers correct ?

    • @lokeshkumar9682
      @lokeshkumar9682 5 ปีที่แล้ว

      yes

    • @akshitarawat1970
      @akshitarawat1970 5 ปีที่แล้ว +1

      In example(2) it is said 1100 is 12 but sir it is -3 in 1's complement form. beside, its MSB is 1 , so it should be -ve
      Plz explain me anybody???

    • @pennapatipavankalyan9567
      @pennapatipavankalyan9567 5 ปีที่แล้ว +7

      2,3,4 are wrong answers.
      Correct are:-
      1st-0111(7);
      2nd-10101(-5);
      3rd-1010(10);
      4th-101101(-14);

    • @YuvrajSingh-rs9fd
      @YuvrajSingh-rs9fd 5 ปีที่แล้ว +8

      @@pennapatipavankalyan9567 you are wrong

    • @goshikasaravana
      @goshikasaravana 3 ปีที่แล้ว +1

      I can say definately that 3rd and 4th is wrong bcoz when u convert it to decimal and perform the same subtraction you will get different answers

  • @piyughosh4542
    @piyughosh4542 4 ปีที่แล้ว +8

    I have a doubt. Pls anyone clear it. In example 2 we are doing (5-12). So ans should be -7... From the addition result comes 1000 which is -7 in decimal. But complementing makes it +7. According to decimal -7 should be the ans not +7

  • @BtechF15
    @BtechF15 2 ปีที่แล้ว +2

    1Ans is 0111 and result is positive
    2Ans is 0101 and result is negative
    3Ans is you make b=01111 and now perform then we get 01010 positive
    4Ans is 01101 and result is negative

  • @DEEPIKASINGH-gg4mk
    @DEEPIKASINGH-gg4mk 2 ปีที่แล้ว +3

    1.0111
    2.1010
    3.11001
    4.10010

  • @wilsongal809
    @wilsongal809 2 ปีที่แล้ว

    Thank you God bless you, you just help me understood very clearly and I am now ready for my exam tomorow.

  • @adityassrana
    @adityassrana 7 ปีที่แล้ว +6

    we love you sir for your efforts . Hope you live a very happy and joyful life, and you complete all your dreams. thanks for helping all of us out

  • @RahulBisht_001
    @RahulBisht_001 2 ปีที่แล้ว +1

    Love it sirji . Neso academy is best❤️❤️❤️❤️

  • @ChandanKumar-zl5jo
    @ChandanKumar-zl5jo 2 ปีที่แล้ว

    Most beautiful video lectures of Digital electronics Thank You So Much...

  • @safiyanadam200
    @safiyanadam200 2 ปีที่แล้ว +1

    I really appreciate you. I understood better here

  • @allinone-ro1sk
    @allinone-ro1sk 7 ปีที่แล้ว +6

    why we are doing 1's complement again if the answer is -7 i.e 01000 @8:30min

    • @cptninja7890
      @cptninja7890 7 ปีที่แล้ว

      all in one read the 3 step carefully,u will understand easily

    • @cptninja7890
      @cptninja7890 7 ปีที่แล้ว

      In step 3 it is clearly mentioned that if the carry is 0 then the answer obtained after addition is negative,so we have to invert it to make it positive 7,understood bro👍

    • @sudheernidamarthi5136
      @sudheernidamarthi5136 6 ปีที่แล้ว +2

      Same doubt bro. Y d final ans is +7 ??? Actually we should get 1111(-7)

    • @ajj7794
      @ajj7794 6 ปีที่แล้ว +1

      it is to show what magnitude is of the negative value for example 1000 what number is that ? we know it to be negative what not what number so when we complement we see its a 7 there fore -7 is the answer. it for checking you working i think. since the question is 5-12 = -7

    • @nitinpandey6037
      @nitinpandey6037 6 ปีที่แล้ว

      If there is no carryover, then 1’s complement of the result of the addition is obtained to get the final result and it is negative.

  • @hassankumail1053
    @hassankumail1053 6 ปีที่แล้ว +2

    Given the two unsigned numbers X= -58 and Y= 65 (both in deciaml) perform
    subtraction X-Y using 1’s complement method. how to do this my answer comes -124 but it should be -123

  • @vikramvaranwal1284
    @vikramvaranwal1284 8 ปีที่แล้ว +24

    in H/W Q.3 11001 -1111
    after doing A+(-B),the end carry is 0 which indicates that the answer sud be a (-ve) no......but in real it sud b (+ve) no.....plz tell the solution

    • @abhinavkumarr
      @abhinavkumarr 4 ปีที่แล้ว +18

      try to take compliment after adding an extra zero to 1111

    • @harshchauhan6508
      @harshchauhan6508 3 ปีที่แล้ว +1

      @@abhinavkumarr nice one man

  • @thomasbutman
    @thomasbutman 6 ปีที่แล้ว +5

    nice video...congrats on 100k views

  • @karthikpaladugula5424
    @karthikpaladugula5424 5 ปีที่แล้ว +8

    Sir, In the h/w questions, why are you not considering the sign bit....?u are treating the numbers as unsigned!!! Can u make it clear..pls..

    • @amarachi5501
      @amarachi5501 3 ปีที่แล้ว

      i was wondering the same thing...can anyone please help

  • @anthonydsouza5038
    @anthonydsouza5038 หลายเดือนก่อน

    This is the only part in digital logic where neso academy messed up else all other concepts are crystal clear.

  • @harshavardhanamn7494
    @harshavardhanamn7494 7 ปีที่แล้ว +5

    Superb
    How r u explaining digitally ,
    using which tool r u explaining

  • @ulvimardaliyev6709
    @ulvimardaliyev6709 8 ปีที่แล้ว +21

    here are correct answers:
    1. (0111)base2
    2. (0101)base2
    3. (01010)base2
    4. (01101)base2

  • @rdxprajapati8952
    @rdxprajapati8952 5 วันที่ผ่านมา

    Thank you sir ❤❤❤❤❤

  • @divesh_deva
    @divesh_deva 4 ปีที่แล้ว +2

    1.) 0111
    2.) 0101
    3.) 01010
    4.) 01101

  • @mukeshpatel4306
    @mukeshpatel4306 6 ปีที่แล้ว +1

    thank u sir...this is so useful...u make it easy

  • @amirsuliman2346
    @amirsuliman2346 3 ปีที่แล้ว +1

    HW Answers
    1) (1011)-(0100) = 0111
    2) (0110)-(1011) = - 0101
    3) (11001)-(01111) = 01010
    4) (10000)-(11101) = - 01101

  • @smithayb7944
    @smithayb7944 6 ปีที่แล้ว +2

    Sir..ur videos are great...love ur voice..the way u explain with so much of patience.. Neatness in writing.. I will give u perfect 10 out of 10.. Are you giving paid coaching to competitive exams? Plz let me know.
    And also plz post answers to homework problems sir.
    One more request plz make videos on control systems.

  • @YaraHMY
    @YaraHMY 2 ปีที่แล้ว +1

    Thank you, this is incredibly helpful!

  • @dhanyabhatk3608
    @dhanyabhatk3608 ปีที่แล้ว +1

    1.0111
    2.-0101
    3.01010
    4.-01101

  • @SN-ow1bp
    @SN-ow1bp ปีที่แล้ว

    Very clear and concise, thank you

  • @lukwagoalex7806
    @lukwagoalex7806 6 ปีที่แล้ว +1

    i enjoy your videos they have helped me alot

  • @achajackson5898
    @achajackson5898 6 ปีที่แล้ว +11

    1) 0111
    2) 0101
    3) 1010
    4) 0011

    • @sandeepponnusamy7093
      @sandeepponnusamy7093 2 ปีที่แล้ว

      2) 1010 ( representation of -5 in 1's complement), we should consider the ans in 1's complement negative format converting it into 0101 is to find what is the negative reprentation of that number only.
      4 ) 10010 (same explanation)
      new viewers don't confuse with @acha jackson's answer.

  • @kingshukbiswas2723
    @kingshukbiswas2723 3 ปีที่แล้ว +3

    9:02 1000 is (8) in decimal, not -7. And 0111 is (7) in decimal, not (-7). The answer should be (-7)

    • @nasanasaable
      @nasanasaable 3 ปีที่แล้ว +7

      Since end around carry is 0 we get to know that result is negative. So sign part is done. Now for magnitude part we take 1s complement of result.
      I hope it is clear now

    • @suruthitharan3426
      @suruthitharan3426 3 ปีที่แล้ว

      In signed integer msb 1 and all others are 0 means max negative value. For n=3 range is -7 to 7, thus 1000=-7 in signed representation and 1000 = 8 in decimal.
      I hope it's clear

    • @bushraw66
      @bushraw66 ปีที่แล้ว

      @@nasanasaable I have a question which is how is the end around carry is zero? the answer of the addition is 1000. I don't understand why everyone is saying the end around is zero why are we adding a new number to the left most of the result

  • @shubhamsharma3954
    @shubhamsharma3954 7 ปีที่แล้ว +3

    sir what is the difeerence betwen normal binary subtration and binary subtraction using 1s complement

  • @mdkalimullahhussain5819
    @mdkalimullahhussain5819 3 ปีที่แล้ว +2

    Sir, you said 1's complement is negative but actually 2's complement is negative of a number.
    So, second problem's answer is doubtful.
    Please check...

  • @kumarutkarsh5905
    @kumarutkarsh5905 3 วันที่ผ่านมา

    When we subtract (0101) - (1100), wouldn't we need to add extra 0s to the front? So that we could represent -12 in 1's complement for which we will need 5 bits

  • @guliyevshahriyar
    @guliyevshahriyar 2 ปีที่แล้ว

    Thank you teacher, your classes helps us a lot.

  • @ashimdas2335
    @ashimdas2335 2 ปีที่แล้ว

    Sweet explanation

  • @timestampsbelow
    @timestampsbelow 8 ปีที่แล้ว +2

    Great Work!!!!

  • @OVCA96
    @OVCA96 8 ปีที่แล้ว +9

    Homework:
    1) (0111)base2
    2) (0101)base2
    3) (0110)base2
    4) (01101)base2
    Is it correct?
    Thank you Sir for that great job. Could you make also videos about IEE 753 standard, pipelining, finite state machine and more sophisticated circuits like parallel multiplexer?

    • @ulvimardaliyev6709
      @ulvimardaliyev6709 8 ปีที่แล้ว

      +Yashank Kumar, whom did you say about his wrong answer? life is good or +Mr.Cairo?

    • @realshubham1998
      @realshubham1998 8 ปีที่แล้ว +7

      +Mr. Cairo, your third answer is wrong. It should be (01010)base2

    • @hondahonda1539
      @hondahonda1539 2 ปีที่แล้ว +4

      @@realshubham1998 I think 3rd answer is 1010

    • @muzan33
      @muzan33 2 ปีที่แล้ว +6

      00110 base 2
      Answer of 3rd

    • @infiniteways1951
      @infiniteways1951 ปีที่แล้ว

      @@muzan33right

  • @PRAVH
    @PRAVH ปีที่แล้ว

    Think this the right way
    Rather than what teacher explained

  • @alikamran6317
    @alikamran6317 ปีที่แล้ว

    7:59 didn't get this point. How did u get this final 0?

  • @aakashnailwal2249
    @aakashnailwal2249 หลายเดือนก่อน

    0:54 and you know 1's comp. of any no. is (-ve) of that no. ??
    is this covered in data representation lectures ?

  • @s_madhan623
    @s_madhan623 3 ปีที่แล้ว +1

    For the 3rd homework problem whether we need to do with converting 2nd one into the 5 bits or else do with same 4 bits....

  • @AbhishekKumar-qb3ls
    @AbhishekKumar-qb3ls 5 ปีที่แล้ว +1

    It's help me a lot
    Thanks

  • @Umeshchandra-tn4dv
    @Umeshchandra-tn4dv 6 ปีที่แล้ว +1

    i think 2's complement of a number is negative of that number
    but you shown that 1's complement is negative of that number

  • @ViratSmriti
    @ViratSmriti 2 ปีที่แล้ว

    You are really awesome sir thanks for your explanation 😌😌

  • @geronimostilton5057
    @geronimostilton5057 3 ปีที่แล้ว

    Amazing! Really helped me out in school.

  • @pasindugunawardhana8327
    @pasindugunawardhana8327 3 ปีที่แล้ว +1

    Thank you💖

  • @harshjain9004
    @harshjain9004 2 ปีที่แล้ว +1

    Why in eg.2 , we write 0 in the sum, after performing A+(-B) ?

  • @sadiajawed5921
    @sadiajawed5921 10 หลายเดือนก่อน

    Thank you so much❤🎉

  • @sanjeevanibhandari5652
    @sanjeevanibhandari5652 5 ปีที่แล้ว +2

    Correct answers are :
    1. 0111
    2. -0101
    3. 00001010= 01010
    4. -00001101= -01101

  • @venkatanagasaikrishnam6414
    @venkatanagasaikrishnam6414 6 ปีที่แล้ว

    A=0101=5
    B=1100=12 and A-B= -7
    -ve symbol should be assigned after taking 1's complement in the end....

  • @akif7699
    @akif7699 หลายเดือนก่อน

    I don't understand question 2. I got 1010 because final carry is 0 and I took its complement therefor it is 0101. But when we calculate in terms of decimal numbers, we get -5 but when we convert 0101 to decimal number we got only 5.

  • @morongwamaboya8498
    @morongwamaboya8498 3 วันที่ผ่านมา +1

    How is 1100(A) equal to 12 and (B)0101 equal to 5? I don't understand there please help

    • @niccolopaganini1782
      @niccolopaganini1782 21 ชั่วโมงที่ผ่านมา

      Those are binary numbers, if you convert them to decimal, they would be 12 and 5. Do you know binary conversion and the general concept behind different number systems?

  • @fremontfernandes9015
    @fremontfernandes9015 ปีที่แล้ว +3

    Do we have to add minus sign in front of BCD?

    • @peterbonucci9661
      @peterbonucci9661 หลายเดือนก่อน

      Not here. Ones compliment is a way of representing positive and negative numbers in binary. You just need to know the number length. -1 is written down as 1110 using 4-bit 1's compliment. Using 8 bits it is 11111110. No sign need. You can tell a number is negative by looking at the first bit.
      An inconvenient part of 1's compliment is there are 2 ways to represent 0: 0000 and 1111. +0 and -0. That's why computers usually use 2's compliment notation.

  • @noneofurbusiness350
    @noneofurbusiness350 3 ปีที่แล้ว

    Thank you very much sir🙏

  • @nitishkumarprajapati6096
    @nitishkumarprajapati6096 3 ปีที่แล้ว

    Thanks Sir😃😃

  • @Facts_4_you_12
    @Facts_4_you_12 2 ปีที่แล้ว +1

    Amazing Explanation 👏

  • @RethinPuthenpurackal
    @RethinPuthenpurackal ปีที่แล้ว +2

    in the second example if the ans is -7 why took the 1s compliment 1s compiment is +7

  • @mirzoulugbekyusupov5884
    @mirzoulugbekyusupov5884 6 ปีที่แล้ว +2

    Hello, I am facing some problems with the homeworks. If you help me, I would really appreciate it. My question is about h-m number 3. when you take 1's complement of (1111), it will be (0000) and when you do 2nd step it is the same answer. I am confused. please help me

    • @DhruvGoyaI
      @DhruvGoyaI 11 หลายเดือนก่อน

      U r adding 0 to it, so ofc it will give same answer.
      It will have no carry, so u have to take its complement, which will be the answer

  • @PratapGhoshi
    @PratapGhoshi 28 วันที่ผ่านมา

    Can you perform subtraction using 1's and 2's complement for the data 13 and -9

  • @mithunr496
    @mithunr496 3 ปีที่แล้ว +4

    Nice explanation sir .But what if we subtract 5 bit from 4 bit or 4 bit from 5 bit .And in that case will we get carry in 6 bit position. Pls reply sir

  • @afjalmd5164
    @afjalmd5164 6 ปีที่แล้ว +1

    1-0111
    2-0101
    3-1010
    4-01101

  • @ahteshamquraishi9950
    @ahteshamquraishi9950 7 ปีที่แล้ว +6

    que 3: A=11001
    B=1111
    or B = 01111
    now (-B)= 10000
    A+(-B)=101001
    it means carry is generated ,hence
    01001+1=01010(Ans). Is it right ?????

  • @yagzyalcntas553
    @yagzyalcntas553 6 ปีที่แล้ว +3

    I have a question, in previous vid. to take the negative of +5 (0101) we take 2's comp.(1011=-5) but here when we are substracting we add the neg. version of it taking 1's comp. I am a bit confused about computing the neg. version of a binary number, should i take 2's or 1's comp?

    • @s_madhan623
      @s_madhan623 3 ปีที่แล้ว +2

      You can take anything, but according to what sir told 2s is best than 1s for representing negative numbers....

    • @s_madhan623
      @s_madhan623 3 ปีที่แล้ว +2

      Negative numbers representation are different and unique for all the 4 data representations

  • @biyyalaharshavardhan7805
    @biyyalaharshavardhan7805 ปีที่แล้ว

    1)0111
    2)1010=-5
    3)1010
    4)10010=-13

  • @tahmidgalib5427
    @tahmidgalib5427 5 ปีที่แล้ว

    Thank u so much sir!

  • @duaasaleem539
    @duaasaleem539 5 ปีที่แล้ว +1

    Sir can you plz clear me that addition of 1's and 2's complement is similar ko the binary addition

  • @ourentertainmentakash
    @ourentertainmentakash 3 ปีที่แล้ว

    Nice video 👍🏼👍🏼

  • @Shivamkumar-ue4hl
    @Shivamkumar-ue4hl ปีที่แล้ว +1

    At 6:05 I think as 12 and 5 are signed so we should write 12 as, 01100 and 5 as 11010 in 1s complement. There would be no overflow and we just have to add the carry out to the LSB and then the ans is +7. Im not satisfied with the concept honestly !

  • @i_am_subham55
    @i_am_subham55 3 ปีที่แล้ว +2

    Is the ans of the 3rd question is 01010??
    If it's not then plz explain me sir

  • @FC2plays
    @FC2plays 6 ปีที่แล้ว

    a) 0111
    b) 0101
    c) 00110
    d)1101

  • @akshitarawat1970
    @akshitarawat1970 5 ปีที่แล้ว +1

    In example(2) u said 1100 is 12 but sir it is -3 in 1's complement form. beside, its MSB is 1 , so it should be -ve
    Plz explain me anybody???

    • @karthikpaladugula5424
      @karthikpaladugula5424 5 ปีที่แล้ว

      ya..this is a valid doubt..Even, i have a confusion in this..To represent positive 12, we should use 5 bits...but, why the sir is not doing that...!!!

  • @gabbydiaz4922
    @gabbydiaz4922 7 ปีที่แล้ว +2

    Can you post the answers so I can check if I did it right pls

  • @frankvalen2147
    @frankvalen2147 2 ปีที่แล้ว

    What if you are asked to perform Binary addition, will you use the same method

  • @arwavasaiwala
    @arwavasaiwala 2 ปีที่แล้ว

    Amazing video

  • @tatendaangels5003
    @tatendaangels5003 2 หลายเดือนก่อน

    a = 0111
    b = 0101
    c = 11010
    d = 10011

  • @elvinhuseynli9408
    @elvinhuseynli9408 5 หลายเดือนก่อน

    i dont understand what is the between this with 2 complement subb. in 1 complement first you inverter number and add each other after add 1.in 2 compement you invert number and add 1 after add other number. they are the same

  • @RichardMoore-b4b
    @RichardMoore-b4b 2 หลายเดือนก่อน

    Rippin Point

  • @Biotech___point
    @Biotech___point 8 ปีที่แล้ว +4

    sir amazing videos
    please tell me what software do you use for teaching ?

  • @busahari4198
    @busahari4198 6 ปีที่แล้ว

    Thanks sir.

  • @bubunmazumder
    @bubunmazumder 8 ปีที่แล้ว +6

    1.0111
    2.0101
    3.00110
    4.01101

    • @dosa5819
      @dosa5819 8 ปีที่แล้ว +5

      3. is wrong i guess
      25(11001)-15(1111)=10(01010)

    • @dexterns7369
      @dexterns7369 7 ปีที่แล้ว

      11001 in 1's comp is -6 and 1111 is 0 so -6+0=-6 which is 11001(OR -00110)
      if you want to check www.convertforfree.com/ones-complement-calculator/

    • @sanjaydahal121
      @sanjaydahal121 6 ปีที่แล้ว

      you are right
      answer of 3 is 01010

    • @sanjaydahal121
      @sanjaydahal121 6 ปีที่แล้ว

      and i think the answer of 2 is -0101