auto-set alpha = 1/sqrt(max(d, n))