Beware of bugs in the above code; I have only proved it correct, not tried it.
More Quotes from Donald Knuth:
A list is only as strong as its weakest link.Donald Knuth
Let us change our traditional attitude to the construction of programs. Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do.
Donald Knuth
In fact what I would like to see is thousands of computer scientists let loose to do whatever they want. That's what really advances the field.
Donald Knuth
If you optimize everything, you will always be unhappy.
Donald Knuth
An algorithm must be seen to be believed.
Donald Knuth
If you find that you're spending almost all your time on theory, start turning some attention to practical things it will improve your theories. If you find that you're spending almost all your time on practice, start turning some attention to theoretical things it will improve your practice.
Donald Knuth
Readers Who Like This Quotation Also Like:
Salma is just one of the great goddesses ever put on this Earth.Woody Harrelson
I screwed my knee up once because I fell off the stage.
Zakk Wylde
Our planet doesn't seem to be the result of anything very special.
Murray Gell-Mann