Tag The Alon-Matias-Szegedy Algorithm