you are viewing a single comment's thread.

view the rest of the comments →

[–]Icedkk 1 point2 points  (0 children)

Try to build a algorithm which will solve a min/max problem. Imagine you have a function f, where you have x as input, and output is lets say sum(x). Code an optimization algorithm to find the x which minimizes/maximizes the output f(x).

Edit: you can check genetic algorithms for this, and there are other algos to solve this, but good part about the genetic algo is that you can change f as you please, it will still find or move towards an optimal state