Category Archives: Uncategorized

Euclidean Algorithm

One of my favorite algorithms is the simple, elegant Euclidean algorithm for finding the greatest common denominator of two numbers. In ML or another functional language it really is beautiful:

Recursive Fibonacci

Here are two recursive fibonacci functions in ML I did for CS243. Can you tell which one is more efficient?

Circle Calculator

For my first code post I thought it might be appropriate to put the first code from the first lab of my first computer science class at Wheaton.