Research Article

Efficient Network Coding with Interference-Awareness and Neighbor States Updating in Wireless Networks

Algorithm 2

Initial packet coding coloring.
() ;
() if    then
() ;
() else
() ;
() end if
() while    do
() Pick from randomly;
() if    then
(); continue
()end if
()if    then
();
()if    then
()
()end if
()end if
() end while
()
() while    do
()Pick from where
()if    then
(); continue;
()end if
()if    then
()
()else
()
()end if
() end while
() return