|
A computer program is kind of like a little robot inside of your computer.
It has input, output, and short-term memory (RAM).
|
Input
|
This robot has a very limited field of vision. In fact, it can normally
not perceive anything at all except for the mouse, keyboard,
and some other raw data (such as from a database or filesystem).
|
|
Output
|
Likewise, most computer programs can't really change anything in the outside
world. They can change data in the database or filesystem, or show something
on the screen.
|
|
Memory (RAM)
|
This is one of the interesting parts of what this little robot is doing in your computer.
It is using the memory to build a pre-specified model. It takes blocks of blank
memory matter, changes the shape of it according to input, and puts these blocks together with other pieces.
Kind of like playing with legos. Once this model is constructed it can be used it to make
predictions, and other logical deductions, about what might or should happen to the model.
It then outputs what it has been instructed to, depending on the results of the model.
|
|