Data Representation using Signed Magnitude

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

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

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

    Even though this was recorded 5 years ago, I used these for my Digital Design course and I finally understood it without confusion! Thank you sir :)

  • @simratsaini879
    @simratsaini879 8 ปีที่แล้ว +284

    1. +5 = 0101
    2. -5 =1101
    3. +9 =01001
    4. -9 =11001
    5. +16= 010000
    6. -16= 110000

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

      represent -9 inn 6 bits please

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

      @@pratyushraj2640 111001, 111111111001, 11111111111111111111111111111111111111011, just repeat the MSB for whatever bitsize u need.

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

      can you explain how the 16

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

      @@anubhavkumar5372 use successive division

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

      @@anubhavkumar5372 convert 16 to binary form. we'll get 10000. We will then add 0 in beginning for +16 and 1 for -16
      th-cam.com/video/2U9b76JRz7s/w-d-xo.html watch this video if you don't know how to convert.

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

    Homework problems helps most please countinue this in every lectures

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

    So basically increase the bit size by 1 to add in the sign bit (i.e 5 will become from 101 to 0101 (from 3 bit representation to 4 bit)). also the range for, lets say, 5 bit is +-(2^5-1)-1 = +-15 only, cause no matter what, you will always assume the last bit holds no value and only denotes sign. e.g 10000 = 16 in unsigned, but in signed it will be -0. and to show +16 (or even -16) you will NEED to add another bit to show either positive or negative sign which makes it into 6 bits. in total, for signed representation: 5 bits will at max hold (1or0)1111 = 1+2+4+8 = +-15 bits.

  • @yadu2568
    @yadu2568 4 ปีที่แล้ว +17

    Ok..for the people thinking why 11101 is -13 and not 29. I Think this is where range comes in ..here there are 5 digits(11101) which is n..and hence -2^n-1 to 2^n-1 becomes -15 to 15 in which 13 lies and not 29 doesn't . Pls correct me if im wrong..

    • @244harishradhidipocaksono2
      @244harishradhidipocaksono2 3 ปีที่แล้ว

      Thx for the explanation. Do you know what the 've' means?

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

      @@244harishradhidipocaksono2 do u mean the 've'.. at the plus and minus signs..
      If Yes... Its jst a short form of Positive and negative.. Where 've' belongs to positi've'

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

      @@yadu2568 yes 've' following the circled positive and negative signs. Oh it's from the word positiVE 😂. Thanks answering

    • @debabratarouth1235
      @debabratarouth1235 7 หลายเดือนก่อน +2

      Thanks for the explanation. I was in doubt for that too. ❤️

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

    How will we identify that an MSB is a sign bit or just a normal bit representing the number?

    • @gacalka
      @gacalka ปีที่แล้ว +31

      I asked this to my college lecturer, and he said the question will be specific and will state whether it is signed or unsigned. Hope that answers your question.

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

      @@gacalka Thanks 🙏

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

      ​@@gacalkaIn my exam it was not specific, they said "perform A - B using 2's complement" and they gave two numbers as A = 110101 and B = 111010

    • @durgasumesh5263
      @durgasumesh5263 10 หลายเดือนก่อน +15

      Unless mentioned, it is always unsigned!

  • @swethacherukuri234
    @swethacherukuri234 6 ปีที่แล้ว +39

    where the usage of ranges taken into consideration

  • @Amisha-nt4vu
    @Amisha-nt4vu 3 หลายเดือนก่อน

    Thank you Neso Academy 🌟

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

    thanks a
    lot sir you helped me a lot for my finals

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

      you write signed numbers in your finals?

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

      yağız yalçıntaş hahah😅😅😅

  • @Subhasish3030
    @Subhasish3030 20 วันที่ผ่านมา

    5:23 the answers are
    1) +5 -> 0101 , -5->1101
    2) +9 -> 01001 , -9 ->11001
    3) +16 -> 010000 , -16 -> 110000

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

    Thank You Sir 🥹 🙏

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

    uploaded in 2015 but still gets used in dec 2022

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

      Still continue in 2023 😂 and this will carry on...

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

      Il yess 2024

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

    As part of an aircraft's functional monitoring system, a circuit is required to indicate the status of the landing gears prior to landing. Green LED display turns on if all three gears are properly extended when the \gear down" switch has been activated in preparation for landing. Red LED display turns on if any of the gears fail to extend properly prior to landing. When a landing gear is extended, its sensor produces a LOW voltage. When a landing gear is retracted, its sensor produces a HIGH voltage. Implement a circuit to meet this requirement
    SIR....
    this que was asked in our examination.........
    can u please help me in solving this one

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

      ye lo agaye scientist ekk

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

      @@utkarshanand4728 🤣🤣
      Bhai ban gye scientist ki nahi

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

      @@detector_aryan abhi b ban gaya ya nai😂

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

      Take 3 gears G1, G2 and G3, connect not gates to each (as voltage is low, i.e 0), and connect each of them to 3 bit AND gate, the output of the AND gate is now split into two wires , one with Not gate and the other without it, connect the normal one to green LED and the Not one to RED led

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

    you are a hero

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

    Answers for homework questions:
    +5=0101
    -5=1101
    +9=01001
    -9=11001
    +16=010000
    -16=110000
    Thankyou sir 🎉

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

      Correct

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

      how you calculate for 16

    • @DD-gb3ui
      @DD-gb3ui 3 หลายเดือนก่อน

      ​@@anubhavkumar5372simply if we consider bit table (16 8 4 2 1) in this 16 is consider as 1 and all other become 0
      So +16=010000
      -16=110000 (in 6 bit )

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

    how does computer differentiate between -5 (1101) and +13(1101) when both are represented using the same bits?

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

      Today computer are use 2's complement representation

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

      Because computer have the knowledge that which technique of data representation is used and and if it is signed system than u missed to add 0 in 13

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

      @@jancydas5569 .... What about yesterday's computer?

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

      @@abhishekmaurya9503 we leave for you.

    • @AD-wg8ik
      @AD-wg8ik 3 หลายเดือนก่อน

      1101 = -3 not -5. This video is wrong.

  • @user-fg6ng7ej6w
    @user-fg6ng7ej6w 7 หลายเดือนก่อน

    amazing course . thanks

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

    in the range formula 'n' is the number of bits in the no. including the sign bit .Right?

  • @saivamshimarri6733
    @saivamshimarri6733 5 ปีที่แล้ว +13

    Sir if the range is from -7 to +7 then how can we represent +9 &-9 in it?

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

      For that u have to increase the value of n.. That is number of variables.. Use n=4

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

      @@vigneshvadivel6367 ....n =5

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

      Yeah n=5

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

      @@romainegandhi5737 how

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

      -7 to +7 is for 4 bits. +9 and -9 are represented in 5 bits.

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

    There is total 16 ways in 4 bit system, but according to ur range I will be able to represent only 15 binary numbers but what about 16th binary number, I think range should be from -8 to +7

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

      that is so because 0 have no negative form i guess, so -7 to +7 equals 15 binary no.s

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

      O has two representations for +0 it is 0000 and for -0 it is 1000 and it is a drawback of this method

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

    Thank you 🎉

  • @googletwo4068
    @googletwo4068 4 ปีที่แล้ว +10

    Answer : for signed
    1: +5=0101
    -5=1101
    2: +9=01001
    -9=11001
    3: +16=010000
    -16=110000

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

    Thanks Sir🙏🙏

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

    1)+5=0101 and -5=1101, 2)+9=01001 and -9=11001, 3)+16=010000 and -16=110000

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

    thank you so much

  • @sdk-yourfriend1561
    @sdk-yourfriend1561 2 ปีที่แล้ว +1

    Sir -5 is 1101 and +13 is 01101. Does this only one 0 in 1st digit's place distinguish +13 from -5 for the computer to understand it???

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

    Answers to homework problems
    1: 5=00101
    -5=10101
    2: 9=01001
    -9=11001
    3: 16=010000
    -16=110000

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

    Thank you

  • @Rahul-nw3xk
    @Rahul-nw3xk 3 ปีที่แล้ว

    1)0101 and 1101
    2)01001 and 11001
    3)010000 and 110000

  • @akashgarg5770
    @akashgarg5770 6 ปีที่แล้ว +33

    How do we Identify whether
    1110 = -6 or
    1110 = 14
    ?

    • @DataWiseDiscoveries
      @DataWiseDiscoveries 6 ปีที่แล้ว +4

      here it is very ambiguous to represent the number in binary system .so new representation named 2 s complement is used

    • @jancydas5569
      @jancydas5569 6 ปีที่แล้ว +35

      For 4 bit the range of signed magnitude is from -7 to 7 so it definitely -6 for 14 01110

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

      it is decided by the MSB. MSB is for the sign in case of signed binary digits. If '1' it is considered '-' . If '0' it is considered '+'. Otherwise, 2's complement representation is used.

    • @dineshbh3837
      @dineshbh3837 6 ปีที่แล้ว +13

      It should be given weather it is signed or unsigned number in the question, if it is signed it should starts with either 0 (for +num) or 1 (for -num)

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

      @@saisumanth2289 range of signed magnitude representation is -2^(n-1) -1 to 2^(n-1) -1 for n= 4 range -7 to 7..

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

    🔴H/W problem i:
    ✔️+5 = 0101
    -5 = 1101
    .................................................................
    🔴H/W problem ii:
    ✔️+9 = 01001
    -9 = 11001
    .................................................................
    🔴H/W problem iii:
    ✔️+16 = 010000
    -16 = 110000

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

    Thank you..

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

    thank you

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

    Using 4 bit i can represent 16 numbers. But the range you write -7 to +7 can represent only 15 numbers. I am sure that range will be -8 to +7. Kindly reply me.

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

      In the range of signed 4 bit numbers, two 0' s are included , 1000 (a "negative" zero) and 0000 (a "positive" zero). Because they are both still 0, the range technically only represents 15 different numbers, although there are 16 different representations in there, like you pointed out.

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

    1. 0101; 1101
    2. 01001; 11000
    3. 010000; 110000

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

    then what will be signed magnitude value for 0 and what is the use of signed magnitude value??

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

    When doing calculate the range value for purchase sir

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

    Thank You so much Sir.

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

    @Neso Academy please explain use of range ?

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

      Range is just explaining the range of signed magnitude numbers .
      For example:
      The range of numbers (1,2,3,...) with 4 bits (n=4) is:
      -(2^(n-1)-1) to +(2^(n-1) -1)
      so the range of numbers that can be represented with 4 bits is:
      (I'm starting with the positive side of the range)
      0000 = 0
      0001 = 1
      0010 =2
      0011 =3
      0100 =4
      0101 =5
      0110 =6
      0111=7
      (now at this point, 1000 couldn't be +8 because the '1' in the most significant bit represents the value is negative, so it will have to be -0. Yes, with signed magnitude, there are 2 'zeros'. This is one of it's major downsides that 2's compliment fixes.)
      1000 = 0 (as stated above)
      1001 = -1
      1010 = -2
      1011 = -3
      1100 = -4
      1101 = -5
      1110 = -6
      1111 = -7 (no more bits to use after this one if you are limited to 4 bits, thus, -7 is the end of the negative side of the range for signed magnitude with 4 bit values).
      Hopefully this is clear to others.

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

      @@Charge11 Thanks brother 🙏☺️

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

    H. W answers
    +5=0101; - 5=1101
    +9=001001; - 9=101001
    +16=010000; - 16=110000

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

    What is that varible in range?

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

    1. 0101, 1101
    2. 01001, 11001
    3. 010000,110000

  • @KunalKumar-zh4je
    @KunalKumar-zh4je 2 ปีที่แล้ว

    Ans
    1) 0101 and 1101
    2) 01001 and 11001
    3) 010000 and 110000

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

    ans=
    1) 0101 and 1101
    2)01001 and 11001
    3)010000 and 110000

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

    What do you mean by range here ?
    Can anyone explain it.

  • @Sachin-mw7vy
    @Sachin-mw7vy ปีที่แล้ว

    Thnks a lot

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

    adding 6 and -6 according to your convention doesnt yield 0 or a power of two.

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

    Sir please give me Answer of this question ❓
    Represent -12 in 8 bits using sign magnitude and 2' complement
    Kindly solve this

  • @saisandesh.s.b.7036
    @saisandesh.s.b.7036 4 หลายเดือนก่อน

    HW Answers: -
    1) +5 = 0101
    -5 = 1101
    2) +9 = 01001
    -9 = 11001
    3) +16 = 010000
    -16 = 110000

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

    Sir i think you have made a small mistake while assuming the negative signed vale of 13.
    It must be 10011.
    Not 11101.

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

    What is for +17 and - 17

  • @RichaDevi-of8pm
    @RichaDevi-of8pm ปีที่แล้ว +1

    What is msb

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

    answer of
    i) 0101,1101
    ii) 01001,11001
    iii) 010000,110000

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

    is n no.of variables or no. of bits?

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

    why we are taking 1 in - number system?????

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

    What is the range for unsigned representation?

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

      for n bits:
      from 0 to (2^n) - 1

  • @onePunch95
    @onePunch95 9 ปีที่แล้ว +5

    what do you mean by the number of variable?

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

      +Satwik Mishra actually here n is the no. of bits taken into consideration to represent decimal no.s.
      for eg. if n=16 , u can represent -32767 to 32767 and in case of unsigned ucan represent 0 to 65536

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

      0 to 65535 @Jainandan

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

    What does range represent?
    Can we not represent no.s beyond that range?

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

      Yes

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

      In limited bits, we can specify limited numbers which is called range. So if we are given say 4 bits , then in sign magnitude, only -7 to +7 can be represented. If we need to represent other numbers beyond this range, we need more bits. Same goes for other representations like 1s, 2s complement forms

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

    answers
    +5=0101
    -5=1101
    +9=01001
    -9=11001
    +16=010000
    -16=110000

  • @shubham-0819
    @shubham-0819 6 ปีที่แล้ว +4

    TH-cam needs 3x playback speed too:)

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

    +5 = 0101
    -5 = 1101
    +9 = 01001
    -9 = 11001
    +16 = 010000
    -16 = 110000

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

    +5 = 0101
    -5 = 1011
    +16 = 010000
    -16 = 110000

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

    How to find magnitude of signed number

  • @JayeshRathod-Alchemist
    @JayeshRathod-Alchemist 8 ปีที่แล้ว

    what is requirement of diff. 1's and 2's complement data where as i can represent in unsigned too?

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

      Unsigned form can only represent numbers which are positive. For negative numbers we need separate representations like sign magnitude, 1s, 2s complement

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

    The range you mentioned is incorrect.
    its 2^(n-1) to (2^(n-1)-1)

    • @anand-uj1vm
      @anand-uj1vm 7 ปีที่แล้ว +4

      -2^(n-1) to (2^(n-1)-1)

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

      can u represent -8 in binary signed magnitude with 4-bits(n=4)?

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

      Salim Salah for n=4 -8 lies out of range

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

      He is partially correct
      the range of signed magnitude for 1's complement = - (2^(n-1) -1) to (2^(n-1)-1)
      the range of signed magnitude for 2's complement = - 2^(n-1) to (2^(n-1)-1)

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

      @@nitinpandey6037 can u expain me what is use of range?

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

    How to get for 16

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 ปีที่แล้ว

    🔥🔥🔥

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

    Sir how to solve 16

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

      16 = 010000 ( as 16 is +ve, so MSB bit=0 in sign magnitude form)

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

      I know its too late to answer your question but here is the explanation when you covert 16(decimal) to binary no. You get 10000
      And after getting the binary no. You can apply short cut which is for + no
      010000 ( here 0 stands for + no. )
      And for negative no. Add 1
      = 110000 for -16

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

    -9 ka please clear krdo koi 11001

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

    💯🔥🙏👌

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

    💝💝💝💝

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

    /

  • @Amisha-nt4vu
    @Amisha-nt4vu 3 หลายเดือนก่อน

    Thank you Neso Academy 🌟

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

    1. +5 = 0101
    2. -5 =1101
    3. +9 =01001
    4. -9 =11001
    5. +16= 010000
    6. -16= 110000

  • @ChandramouliPatra-l5r
    @ChandramouliPatra-l5r 2 หลายเดือนก่อน

    +5=0101
    -5=1101
    +9=01001
    -9=11001
    +16=010000
    -16=110000