Re: ants. A quick google suggests there could be around twenty quadrillion ants on earth. With such volume, they could literally "learn" through pure trial and error like a machine learning model.