Project Euler 280 (Revisited)
A while ago I wrote this blog post on this problem. The previous code was able to produce the answer in about 20 minutes, using several gigabytes of RAM. You may want to read the previous blog post...
View ArticleProject Euler 285
Problem 285 of Project Euler was released yesterday; it requires some geometry and probability sense. The problem goes like this: Albert chooses two real numbers a and b randomly between 0 and 1, and a...
View ArticleSocks in a Drawer
I’ve began studying some probability and statistics for fun, and I’m using a book called Fifty Challenging Problems in Probability by Mosteller: Printing math textbooks is a great way to use up the...
View ArticleProbabilities of a slightly altered dice
In art class a few months ago, I made a dice out of clay. This dice isn’t quite your typical dice. Its structure is tampered with ever so slightly, so that just of the material is removed. Let us model...
View ArticleAI Project: Harmonizing Pop Melodies using Hidden Markov Models
It is often said that all pop music “sound the same”. If this is the case, then a computer program should be able to compose pop music, right? This is the problem we studied for the AI final project...
View ArticleHow a simple trick decreased my elevator waiting time by 33%
Last month, when I traveled to Hong Kong, I stayed at a guesthouse in a place called the Chungking Mansions. Located in Tsim Sha Tsui, it’s one of the most crowded, sketchiest, and cheapest places to...
View Article
More Pages to Explore .....