In order to numerically integrate complicated cross sections, large expressions have to be sampled many times, which is a time consuming operation. Inspired by the use in games, artificial intelligence methods such as Monte Carlo Tree Search and Local Stochastic Search are used to simplify the expressions. As a result, large expressions can be compressed by more than a factor 20.