Recreation stage algorithms

Hello, I don’t fully understand bestInsertion and regretInsertion, can someone explain ?