Monthly Archives: October 2015

17×17 Research: Solving a 16×15 grid

This week I used the improved code from last week to solve a 16×15 grid with good success. I compared the performance of simulated annealing versus genetic algorithms at performing this task, running each 4 times: 16×15 completion time (in … Continue reading

Posted in Uncategorized | Leave a comment

17×17 Research: Using a binary representation to achieve greater speeds

This week I fundamentally changed how my code works to store the colored grids. Before, grids would be stored in a 2D-array of ints, with each int representing the color of that cell. Now, grids are stored as a 2D-array … Continue reading

Posted in Uncategorized | Leave a comment

17×17 Research: Optimizing the inner loop and testing another SA temperature function

This week I spent some time looking at my genetic algorithm code and seeing if there was anything I could improve. There was indeed quite a bit of bloat. A lot of overhead was spent storing data about each generation … Continue reading

Posted in Uncategorized | Leave a comment

17×17 Research: Reaffirming the basics with the GA and a new temperature function for SA

This week I realized that a bit of my genetic algorithm is non-standard compared to how people usually implement one. The standard implementation is a bit simpler than the one I’ve been using, so I decided to refactor the code a bit … Continue reading

Posted in Uncategorized | Leave a comment