Results 1 to 4 of 4

Thread: BuYS: How strong is your "addition" skill Share/Save - My123World.Com!

  1. #1
    ... I am no Expert b0nd.g4h@gmail.com b0nd's Avatar
    Join Date
    Jul 2010
    Location
    irc.freenode.net #g4h
    Posts
    744

    BuYS: How strong is your "addition" skill

    Are you sure you understand the basic addition concept?
    Anyone can add the following decimal numbers:
    10 + 23 + 1342, right...

    But what about the following binary numbers:
    1111
    +1010
    +0101
    +1101
    +1011
    +1101 ???

    Not to challenge anyone, but you might be amazed to see how tough this small problem could become

    Dedicated to fresh grads and those who are still in college. Give it a shot! and if possible, do pm me the answers.

    Ofcouse, please don't use calculator ...

    Rgds
    b0nd
    [*] To follow the path: look to the master, follow the master, walk with the master, see through the master,
    ------> become the master!!! <------
    [*] Everyone has a will to WIN but very few have the will to prepare to WIN
    [*] Invest yourself in everything you do, there's fun in being serious

  2. #2
    ... I am no Expert b0nd.g4h@gmail.com b0nd's Avatar
    Join Date
    Jul 2010
    Location
    irc.freenode.net #g4h
    Posts
    744
    Just one reply (pm) so far .... anyway, I am very patient.
    [*] To follow the path: look to the master, follow the master, walk with the master, see through the master,
    ------> become the master!!! <------
    [*] Everyone has a will to WIN but very few have the will to prepare to WIN
    [*] Invest yourself in everything you do, there's fun in being serious

  3. #3
    ... I am no Expert b0nd.g4h@gmail.com b0nd's Avatar
    Join Date
    Jul 2010
    Location
    irc.freenode.net #g4h
    Posts
    744
    Hey guys,

    I recevied couple of entries as the solution. Few are correct and I'll try to post the answer and my way of doing it soon, just busy with some very boring tasks.

    Thanks for participating.

    Rgds
    [*] To follow the path: look to the master, follow the master, walk with the master, see through the master,
    ------> become the master!!! <------
    [*] Everyone has a will to WIN but very few have the will to prepare to WIN
    [*] Invest yourself in everything you do, there's fun in being serious

  4. #4
    ... I am no Expert b0nd.g4h@gmail.com b0nd's Avatar
    Join Date
    Jul 2010
    Location
    irc.freenode.net #g4h
    Posts
    744
    By Prashant: 0101011 (Wrong)

    By s1ayer: 01000011 (Correct) but he added two number first and then added third one to the sum and so on...

    By Abhay: (Correct)
    Ans:

    We organize the binary numbers

    1111
    1010
    0101
    1101
    1011
    1101

    We start with LSB and add them => 1+0+1+1+1+1


    Code:
    Now we can use the following addition grid for 2 bits :
    0+0=0
    0+1=1
    1+0=1
    1+1=10Code:
    And for 3 bits we can use grid for 2 bits and extend the addition and so on
    1+1+1=10+1=11 (As 0+1=1 in rightmost column if we organize them)Hence back to the problem -->
    1+0+1+1+1+1 = (1+0)+1+1+1+1 = (1)+1+1+1+1= (1+1)+1+1+1= (10)+1+1+1= (10+1)+1+1=(11)+1+1 = (11+1)+1
    = (100) + 1= 101

    We just put rightmost 1 of 101 below in the answer ( below the rightmost column) and carry the rest 10 above to the top of 2nd last rightmost column. And hence we proceed further adding this carry and the rest all members of the 2nd last rightmost column.

    The final binary answer we get is 1000011 which is binary equivalent for 67.

    And sorry for the confusing reply !!
    By fb1:
    Well binary addition we need to know this table
    0 + 0 = 0
    0 + 1 = 1
    1 + 0 = 1
    1 + 1 = 10

    So 1111
    + 1010
    = 11001
    + 00101 extra padede o
    = 11110

    And goes on, and becomes a huge pain, well so I would simply automate this process :
    Unless and until we are strictof doing a binary addition , well convert to decimal add then convert the decimal back to binary :P
    So probably everyone agree that this small bit is not easy to digest. I'll be posting my way of doing it this weekend.

    cheers!
    [*] To follow the path: look to the master, follow the master, walk with the master, see through the master,
    ------> become the master!!! <------
    [*] Everyone has a will to WIN but very few have the will to prepare to WIN
    [*] Invest yourself in everything you do, there's fun in being serious

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •