AI algorithms

please review