Blog posts

  • JenPop and Genetic Algorithms on the loose

    Hey there! I’ve committed a new class on JenPop, and it’s called “Individual”. It was made to represent the rules of typical genetic algorithms: a genetic representation of the solution domain; a fitness function to evaluate the solution domain. I’ve read a bit more on the subject and figured that genetic algorithms, although being able to achieve good solutions…

  • New project at work = more free time = more hobby development

    So, at last, I’ve joined the new project team, reading documentation and “first steps” to develop the new application. They seemed pretty organized so far, and I was able to solve all the hickups I’ve had when starting to install the development environment. Since I started by the end of tthe day, I didn’t have…

  • Projects finished and delivered, new challenges ahead!

    Today, at Datacom, we’re celebrating the conclusion of the development of two projects, our little and versatile “CPEs” (both are different models of G.SHDSL bridge modems with Ethernet and PWE3 interfaces). It has been a brief (for me, at least) but intense experience, I’ve learned a lot. Next week I’ll most likely be joining a…

  • Code Jam 2008 Round 1A, Problem C: Numbers

    Hello again! This one is one hell of a tricky problem. No wonder it’s called “Numbers”: In this problem, you have to find the last three digits before the decimal point for the number (3 + √5)n. For example, when n = 5, (3 + √5)5 = 3935.73982… The answer is 935. For n = 2, (3 + √5)2 = 27.4164079……

  • Floating point precision, bad numbers

    Hello there! While still trying to find a good way to solve the 2008 Round-1A-C problem, Numbers, I came across something that I still have to adventure a bit on: Floating Point number precision. I mean, is there a way (even at expense of time, CPU and memory usage) to fully reproduce what calculations “by…