Template:PD-algorithm