Writing Computer Programs by Random Mutation and Natural Selection

The first computer program every student writes is called a “Hello World” program. It is a simple program that prints “Hello World!” on the screen when executed. In the course of writing this bit of code one learns about using the text editor, and compiling, linking and executing a program in a given programming environment. Here’s a Hello World program in the C programming language: #include <stdio.h> int main(void) { printf(“Hello World!\n”); return(0); } This program includes 66 non-white-space text characters. The C language uses almost every character on the keyboard, but to be generous in my calculations I’ll only assume that we need the 26 lower-case alpha characters. How many 66-character combinations are there? The answer is 26 raised … Continue reading Writing Computer Programs by Random Mutation and Natural Selection