Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Even better Mastermind

2,052 views

Published on

Published in: Technology
  • Be the first to comment

Even better Mastermind

  1. 1. J. J. Merelo , Carlos Cotta, Antonio Mora U. Granada & Málaga (Spain) Http://geneura.wordpress.com http://twitter.com/geneura Optimizing worst-case scenario in evolutionary solutions to the MasterMind puzzle
  2. 2. Game of MasterMind
  3. 3. 7 reasons why you should care <ul><li>Donald Knuth
  4. 4. NP-Complete
  5. 5. Differential cryptanalisis/ATM cracking
  6. 6. Circuit/program test
  7. 7. Genetic profiling
  8. 8. Optimal solution not known
  9. 9. Interesting search problem </li></ul>
  10. 10. Let's play, then
  11. 11. Consistent combinations
  12. 12. Naïve Algorithm <ul><li>Repeat </li><ul><li>Find a consistent combination and play it. </li></ul></ul>
  13. 13. Looking for consistent solutions <ul><li>Optimization algorithm based on distance to consistency (for all combinations played) </li></ul>D = 2
  14. 14. Not all consistent combinations are born the same <ul><li>There's at least one better than the others (the solution).
  15. 15. Some will reduce the remaining search space more.
  16. 16. But scoring them is an open issue. </li></ul>
  17. 17. What we did before <ul>Apply heuristic methods to speed up finishing games </ul>
  18. 18. What we do now Increase diversity in search via new operators and selection mechanisms
  19. 19. Objectives <ul><li>Reduce the probability of takeover by a single individual
  20. 20. Reduce the possibility of repeated generation of a single combination
  21. 21. Increase speed to afford tackling bigger sizes </li></ul>
  22. 22. New tricks for old games <ul><li>Add permutation operator
  23. 23. Add diff uniform crossover </li><ul><li>crossover over different positions only
  24. 24. Selection makes sure parents are different </li></ul><li>Change to tournament selection </li><ul><li>Stronger selective pressure </li></ul><li>Higher replacement rate </li></ul>
  25. 25. Results: number of evaluations
  26. 26. Results: any good at MasterMind? Better Better
  27. 27. Mission accomplished?
  28. 28. Worst case is better! Measures to increase diversity have a positive impact on quality of algorithm and also speed
  29. 29. Open source your science!
  30. 30. Thank you very much Questions?

×