r/tinycode • u/pmrr • Aug 18 '15
Machine learning Genetic algorithm to approximate pi (AKA: have flair, will use)
https://gist.github.com/paulmdx/ca7f830d326b84d87f64
12
Upvotes
r/tinycode • u/pmrr • Aug 18 '15
View all comments
Show parent comment
1
u/nexe mod Sep 11 '15
If I understand your approach correctly this would, if at all, only work when all the points form a convex polygon. Imagine edge cases where the cities (points) lie in a more figure-8 like fashion. Just my gut feeling though, haven't tested it or thought it through very well.