I'm having trouble with countability and uncountability. I'm stuck on a homework question without an idea how to approach it.
Argue the following:
- The set of computer programs in any language must be at most countably infinite. What do we know about computer programs?
- For a given programming language, most real numbers cannot be computed as the (potentially infinite) output of any program.
Anything would be of help!
Each program is a finite sequence of a finite number of symbols.
Each program is a finite sequence of a finite number of operations. There are an finite number of programs of length n.
Add the number of all these groups of programs
to conclude there are denumberable many programs.
As each program has a finite output, all together all
the possible programs has denumberable many outputs.
Thus, most of the real numbers are beyond human and machine reach.