Advertisement
tinyevil

Untitled

Apr 26th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. take n random permutations of graph nodes
  2.  
  3. repeat steps times:
  4.  
  5. sort candidates by fitness
  6.  
  7. take q best
  8.  
  9. crossbreed them to restore the population up to n again
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement