New algorithm uses online learning to speed up analysis of m