Research Article

Parallel Redundancy Protocol for Railway Wireless Data Communication Network

Algorithm 2

Countdown operation
1. m: the length of array B.
2. for index ← 1 to m do.
3. if B(index) > 0 do.
4.  B(index) ← B(index) - 1;
5. end if
6. end for