Algorithm 1
Input : d = ( d 1 , ⋯ , d m ) ( m ≥ 2 ) , Windowcapacity u
Output : q
W ← ϕ
for j = 1 to u do