473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

binary numbers and computers

Asghar baig
Computer understands information only in binary format i.e. in the form of zeros and ones. Do you think that Binary number system is essential for computers to understand and process the information OR do you think that any other number system can be more powerful than Binary number system? Post your answers with valid arguments?
Jan 10 '07 #1
8 3800
r035198x
13,262 8TB
Computer understands information only in binary format i.e. in the form of zeros and ones. Do you think that Binary number system is essential for computers to understand and process the information OR do you think that any other number system can be more powerful than Binary number system? Post your answers with valid arguments?
Unfortunately I may not be able to give a "valid argument". All I know is that a switch is either on or off.
Jan 10 '07 #2
Banfa
9,065 Expert Mod 8TB
I think there have been computers that have worked in systems other than the binary system. There have been tertiary computers, i.e. base 3 (not sure what voltage levels they used for 0, 1, 2 may be -ve 0 +ve).

I can't think of any reason why they would have any advantage over binary systems which is probably why binary systems are prevailent since they are easy to design.
Jan 10 '07 #3
r035198x
13,262 8TB
I think there have been computers that have worked in systems other than the binary system. There have been tertiary computers, i.e. base 3 (not sure what voltage levels they used for 0, 1, 2 may be -ve 0 +ve).

I can't think of any reason why they would have any advantage over binary systems which is probably why binary systems are prevailent since they are easy to design.
Fuzzy logic?
Jan 10 '07 #4
DeMan
1,806 1GB
(IMHO) The easy thing with binary is that there are 2 states. Something is on, or something is off, something can't be a little bit on. That having been said, so long as we can accurately (and definitively) measure how much something is (and this could go beyond current - eg light frequency/sound frequency/amplitude) and then could generate the aforementioned to those frequencies, there is no reason why we couldn't have a computer that works on something other than binary.

The biggest problem, however (and many will deny this because the theory is that computers working in binary is one of the things that is keeping machines from ever being able to replicate intelligence - sure they can mimic <and of course it depends how you define intelligence, so we leave the philosophy out>), is that no matter how much we pretend otherwise, computers are simple(ish) to understand because they are binary. Boolean logic sort of goes out the window when you work beyond binary. Even the coping with data loss through noise (you know parity bits and things) become unfathomable, instead of trying to determine whether a bit should have been a one or a zero, you have to be able to work out whether a nit (sorry couldn't resist but if a Binary digIT is a bit then an N-ary digIT must be a NIT) is a 1 or an f or a 642. That having been said, I don't think these are necessarily insermountable problems, but at the very least they would require a MASSIVE rethink on how we do all of our computing today (not to thing of potential compatibility problems when using bases other than 2^n).

SHORT ANSWER: Binary is not essential, but given how long we've used binary for, it is comfortable, it works and alternatives aren't necessarily better.

{total aside (which I think merits a mention) why do we use a decimal system for every day life? (and yes I know not everyone has decimal everything, but humans compute decimal well, even though 60 (which we use in time) is a better option because it is divisible by the primes 2,3,5 (or even 30). Is it deliberate that round things seem to conform to 30 or 60 (clocks, degrees,....etc, etc, etc) We have been trained to use numbers a certain way and find them convenient, but time and time again nature proves the fibonacci sequence to somehow be important - yet most peiople you meet wouldn't even thin k there is anything special about 21 or 5 or 34 - I've digressed too far so I stop now}
Jan 10 '07 #5
acoder
16,027 Expert Mod 8TB
Good explanation, DeMan.

I think another number system would not necessarily be more powerful. In fact, you could argue that the more simple it is, the less likelihood of bugs and problems lower down and therefore, more powerful. But I'm not too much of a hardware man, my knowledge is just limited to a bit of boolean logic and then I found the subject too boring and stuck to software and web programming.
Jan 10 '07 #6
"Computer understands information only in binary format i.e. in the form of zeros and ones."

This is simply false. Though most commercially available are based on binary logic, some are not (the 8087 FPU, for instance, employed a 4-state logic). Regardless, bits can be and are composed into groups (byte, "reals", etc.), allowing representation of larger numbers of values in a single symbol.
Feb 20 '10 #7
Banfa
9,065 Expert Mod 8TB
Actually there are also 3 state computers I believe.

However at a fundamental level in pure mathematics there are only 2 significant numbers, 0 and 1. All other numbers are just a way of representing those numbers in a form convenient for the current use.

A binary (2 state logic) computer by definition deals with 2 states, 0 and 1. In something like a byte all you have done is collect a group of states together, the computer itself has no concept of that group of bits representing some larger concept such as an 8 bit number or a floating point number. It operates on the 0s and 1s according to a set of (relatively) simple rules to produce more 0s and 1s. Those bits might be used to draw a pattern on the display unit but it is your brain that interprets that pattern as a digit with a larger value (5 for example). The (binary) computer only knows about 0 and 1.
Feb 21 '10 #8
"However at a fundamental level in pure mathematics there are only 2 significant numbers, 0 and 1."

The only thing "fundamental" about a 2-state variable is that it involves the smallest whole number of distinct states possible while still permitting variation. Information theory applies to 3-state variables, 5-state variables and 114-state variables, exactly as it does to 2-state variables. In fact, Shannon wrote about exactly this when he developed information theory back in 1948. See "The Mathematical Theory of Communication", by Claude Shannon.

"All other numbers are just a way of representing those numbers in a form convenient for the current use."

I would say rather that they are (or can be) equivalent. There is no meaningful sense in which we would say that "4-state variables are really 2-state variables in disguise".

"A binary (2 state logic) computer by definition deals with 2 states, 0 and 1. In something like a byte all you have done is collect a group of states together, the computer itself has no concept of that group of bits representing some larger concept such as an 8 bit number or a floating point number. It operates on the 0s and 1s according to a set of (relatively) simple rules to produce more 0s and 1s. Those bits might be used to draw a pattern on the display unit but it is your brain that interprets that pattern as a digit with a larger value (5 for example). The (binary) computer only knows about 0 and 1."

I suppose that this is a matter of abstraction. Consider 256-state variables, which may be represented as 8-bit bytes. Operations may be carried out on these 256-state values as though they were 256-state values (such as addition). Such operations may be mimicked using groups of binary operations on collections of 8 bits, but that does not mean that these operations are somehow "really" binary. It means that they are equivalent.


-Will Dwinnell
Feb 21 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: manuel | last post by:
How to convert a decimal to binary ? thx, Manuel
7
by: Enrico Morelli | last post by:
Dear all, I have to write a program which reads from a binary file, a serious of 32 bit long integer data and stores its in an array. I cannot know the format (little or big endian) and I have...
10
by: J. Campbell | last post by:
OK...I'm in the process of learning C++. In my old (non-portable) programming days, I made use of binary files a lot...not worrying about endian issues. I'm starting to understand why C++ makes...
27
by: Eric | last post by:
Assume that disk space is not an issue (the files will be small < 5k in general for the purpose of storing preferences) Assume that transportation to another OS may never occur. Are there...
20
by: ishmael4 | last post by:
hello everyone! i have a problem with reading from binary file. i was googling and searching, but i just cant understand, why isnt this code working. i could use any help. here's the source code:...
7
by: Golan | last post by:
Hi, I need to convert a Binary value to Decimal. I've been told that the value is an unsigned one. How can I do this? I use memcpy into an unsigned char variable, but when I print the value I got...
9
by: PengYu.UT | last post by:
Hi, I write the content of a in file "data" (in Sun Machine). Then I read "data" in both SunOS and linux. But the result is different. Do you know how to make it binary data portable. Best...
10
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
0
Frinavale
by: Frinavale | last post by:
Convert a Hex number into a decimal number and a decimal number to Hex number This is a very simple script that converts decimal numbers into hex values and hex values into decimal numbers. The...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.