Research Article

Design of Improved BP Decoders and Corresponding LT Code Degree Distribution for AWGN Channels

Algorithm 3.

Pseudocode of calculating threshold
Input: Probability
Output: Threshold t
1: initialize an ordered array S
2: initialize n=0
3: whilei<Mdo
4:  generate a packet p and add to S
5:  ifp is error then
6:    n=n+1
7:   end if
8:  i++9: end while
10: 
11: i=M
12: whiledo
13:  p=S[i]
14:  ifp is error then
15:   e=e – 1
16:  end if
17:  ife<= 0 do
18:   t =
19:   break
20:  end if
21:  i--
22: end while
23: returnt
Algorithm 3.