Physics:Pulse-pair algorithm