Group: d2 algorithm (1)