Way back when I was at university (way, way, waaay back) I did some Artificial Intelligence stuff; genetic algorithms, neural networks, and the like. Honestly, though, I really don’t remember much (any!) of it, though I do remember enjoying the genetic algorithms side of things.
I converted the program and also added using quadratic and bezier curves in order to try to smooth out the image a bit, and I think the results are quite good. I’ve put my code up on GitHub, so feel free to fork and improve!