Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Binary

  • 20-10-2002 06:14PM
    #1
    Closed Accounts Posts: 752 ✭✭✭


    Anyone know of some decent links that explain the basics of binary, (addition, subtraction, division, multiplication, complements, etc)
    Thanks ;)


Comments

  • Registered Users, Registered Users 2 Posts: 2,281 ✭✭✭DeadBankClerk


    www.google.com / search ?q= binary + operations


  • Closed Accounts Posts: 14,483 ✭✭✭✭daveirl


    This post has been deleted.


  • Registered Users, Registered Users 2 Posts: 2,281 ✭✭✭DeadBankClerk


    Addition:
    0 + 0 = 0
    0 + 1 = 1
    1 + 0 = 1
    1 + 1 = 0 + carry 1

    Subtraction:
    0 - 0 = 0
    0 - 1 = 1 (borrow 1)
    1 - 0 = 1
    1 - 1 = 0

    Multiplication:
    x * 2^n = Shift all bits n places to the left.

    Division:
    x / 2^n = Shift all bits n plaves to the right.

    Not:
    Replace 1's with 0's and vice versa.

    Or:
    0 or 0 = 0
    0 or 1 = 1
    1 or 0 = 1
    1 or 1 = 1

    And:
    0 and 0 = 0
    0 and 1 = 0
    1 and 0 = 0
    1 and 1 = 1

    XOR:
    0 xor 0 = 0
    0 xor 1 = 1
    1 xor 0 = 1
    1 xor 1 = 0


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Now try that with qbits. :p


  • Closed Accounts Posts: 14,483 ✭✭✭✭daveirl


    This post has been deleted.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    I don't believe so.

    5 qbits (32 possible states) would be the same as 5x32 bits (160 bits to hold all 32 possible states) but would also be able to perform calculations on itself before the answer is given, something you can't do with 160 bits.

    The only public known Quantam machine does 5 qbits btw.


  • Closed Accounts Posts: 14,483 ✭✭✭✭daveirl


    This post has been deleted.


  • Closed Accounts Posts: 1,141 ✭✭✭fisty


    if you understand number bases you'll get the whole binary thing easier i'de say - it will also help you understand hexadecimal which is handy to know.
    googlize number bases - most colleges have decent tutorials online about how they work.
    binary is a number base btw : base 2 :)


  • Closed Accounts Posts: 14,483 ✭✭✭✭daveirl


    This post has been deleted.


Advertisement