The Clone Wars
"The Droid Army uses analytics to predict our strategy. [...] They learn our tendencies and use that data against us. To counter them, we're constantly working out ways to vary our attack."
Captain Rex explains his algorithm[src]

A strategy algorithm was developed by Captain Rex that outlined battlefield tactics for the 501st Legion. Rex only ever shared the information with two of his men: Echo and Fives. After Echo was severely wounded and captured by the Separatists during the Battle of Lola Sayu, Admiral Trench used the information to his advantage during the Battle for Anaxes.