OHHHH
I can tell you alot about this. Get ready for a wall of text!
Basics
Okay, to start, computers aren't as smart as they're cracked up to be, at least, compared to you. One of the first kind of computers, called the Turing Machine, was thought of by Alan Turing. The main idea is that there is a 'tape' that holds information, and a 'head' that edits that information with specific rules. For example, the rules are something along the lines of "If the Head reads a 1 on the space it is located, print a 0 on that space and go to the space to the right" and more. You can do simple unary addition and detect palindromes with this.
Today
Today we have fast computers that do fast logic operations very fast. One of the core things in processing is the "bit" or "Binary Digit". That is the basic unit of information in computers. Basically, it is the well-known 1 or 0. Computers can hold information, but they hold tons and tons of 1's and 0's, and that is all. They don't store "Hello", they convert each letter into a sequence of 1's and 0's and store it.
Bits are actually a number system, in which you can write numbers. On the far right, start with a 0. [000] but we want to count. On the far right, turn that into a 1. [001]
but we get stuck- with binary, we can't go any further. So, we remove that 1 and make it a 0 and make the one to the right of it a 1. [010]
If you can't understand, think of it this way- the first digit stands for a 1, the second digit for a 2, the third digit for a 4, continuing to double. For example, 5 is 101, or, 1+4.
If you want to learn more about bits, I recommend going to your local library, but this wikipedia article is reliable:
http://en.wikipedia.org/wiki/Units_of_information
http://en.wikipedia.org/wiki/Bit
http://en.wikipedia.org/wiki/Binary_numeral_system
How the Computer Thinks
Really, your computer doesn't think, it takes inputs and outputs and knows what to do. One of the big things in computers is boolean logic.
It is another kind of 1's and 0's thing. Sometimes, 1 means "true" and 0 means "false", or maybe they're just multiple digits representing a number. Many functions can be put together by wiring theese 'logic gates' together. Logic Gates perform simple functions on 1 or more binary digits.
NOT- this ignores whatever goes in. If what goes in is a 1, it sends out a 0, and vice versa.
OR- This takes two inputs, and sees if any of them are 1's. If there is a one there, a one comes out.
XOR- this stands for "Exclusive-or". It outputs a 1 if ONLY ONE of the inputs is a 1.
AND-This outputs a one only if both inputs are a 1.
If you want to invert the direct output of a logic gate, put an N in front to make NOR, NXOR, or NAND...
and there are more. I don't know if my explanation can be understood, so check out theese sites:
http://computer.howstuffworks.com/boolean.htm
http://joshblog.net/projects/logic-g...r/Logicly.html - this lets you actually play around with logic gates. A clock goes 1, 0, 1, 0.
http://isweb.redwoods.cc.ca.us/instr...ogic/index.htm - learn how to add binary numbers together with logic in "Half Adder" and "Full Adder"
INTO THE FUTURE!
This is the last thing I'll talk about- it's a little hard to understand.
We're thinking about making "Quantum Computers" by taking advantage of a very weird law of physics- if something that is COMPLETELY RANDOM- I don't mean like flipping a coin, you can take the laws of physics and number crunch really hard, but I mean like sending a photon through a 50% silvered mirror. Here's the fun part- when that completely random thing happens, the universe splits into two as long as nothing is observing that photon. So, the photon has passed through the mirror and reflected off of it- AT THE SAME TIME! This is called "quantum superposition"
So here's where we're going with this: let's say a calculation on a computer takes 1 second. You want to do a calculation on, say, the numbers between 1 and 1200. That would take 1200 seconds (1 hour) for a normal computer, doing one at a time. But a quantum computer would take 1 second, as the string of photons is every possible bit combination at the same time.
Since this is a really mathy subject, I think you wouldn't want to enter it.
I hope this gave you some information- thank you for letting my nerd heart run free.
|
|
Bookmarks