Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Binary

  • 20-10-2002 5: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