One-pass Algorithm for δ