Wednesday, September 5, 2007

0100100001101001 base 2 = Hi base 10

I was doing a PowerPoint for the group projects we were assigned yesterday. As I was moving some files around and deleting them I began to think of deletion. Does the computer erase 1s and 0s? Where do these 1s and 0s go? Are they reduced, reused, and recycled? Do they go to a junkyard, a landfill; are they dumped into a local stream and flow into the ocean? What actually creates a 1 and 0? Where do they originate. Do storks come from the sky and drop them into my computer?

What a conundrum...

1 comment:

Fang said...

Correction:
0100100001101001 is the ASCII code for Hi.

Computer follows certain instruction to read it. The instruction codes are also 0-1 sequence. It tells computer to find the 0-1 sequence from where in the memory (called memory address) and how to translate the code.

So if the instruction says the following sequence 0100100001101001 represents strings (sequence of letters), then it will translate into "Hi".

If the instruction code says the following sequence 0100100001101001 represents an integer, then it will be converted to a decimal number 18537 (try yourself to verify this answer).

It can be used to convey other meanings such as color (RGB codes), voice, and many others. Each file uses different ways to code the 0-1 sequence. Amazing?

If you select to delete them, different hardware producer use different ways to process your command. Some just re-arrange the magnetism or the semiconductor cells. Some simply has a registration table (like a hotel room registration list) saying this space is ready to be overwrite...You will find out more in a computer programming class.