Monday, July 1, 2013

project euler problem 220

Heighway Dragon

This problem is a very interesting problem.  When I tried to solve it a year ago, I had no clue about it until I figured out the relation between D_n and D_{n-1}.  Then the problem is relatively simple and easy to code. 

I took a look at the discussion. I find the dragon curve has very nice math properties. I do not know how to prove those properties. But even if one does not know the math, the problem can still be solved in an elegant approach.

No comments:

Post a Comment