I am working LDPC encoding and decoding for mini project work. With my effort i have completed LDPC encoding but struggling with LDPC decoding.
Message-passing on the binary erasure channel
Code word =[1 0 0 1 0 1]
Y= [1 0 0 x x 1] // x = missing bit, need to find out the missing bit through Message-passing decoding algorithm.
Can anyone help me in writing C language for decoding procedure. Please give me logic.
Code:
ECODE(Y)
I= 0 //Initialization
For i= 1 :n do
Mi=yi
end for
repeat
for j= 1 :m do //Step 1: Check messages
for all i ∈Bj do
if all messages into check j other than M i are known then
[IMG]file:///C:\Users\OPTICS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image002.gif[/IMG]
end if
end for
end for
for i= 1 :n do //Step 2: Bit messages
if Mi= ‘unknown’then
[IMG]file:///C:\Users\OPTICS~1\AppData\Local\Temp\msohtmlclip1\01\clip_image004.gif[/IMG]
Mi=Ej,i
end if
end if
end for
if all Mi known or I =Imax then //Test
Finished
else
I=I+ 1
end if
until Finished
end procedure