Algorithm CAT