You take a problem that you can't solve with a pure mathematical answer, you build an evolutionary system to try multiple tries at guessing, you add sex -- where you take half of one solution and half of another and then make new mutations -- and you use natural selection to kill off not-as-good solutions.