Skip to main content
. 2023 Jan 10;23(2):819. doi: 10.3390/s23020819
Algorithm 1 Procedure to insert a new packet Uj.

   Find k such that Si<Us for 1ik1, and Si>Us for ik

   for k<iM in parallel

       PiPi1; PkUj                ▹ Shift [Pk,Pk+1,,PM1] to the right; Insert Uj in Pk