Research Article

Efficient Wireless Broadcasting through Joint Network Coding and Beamforming

Algorithm 3

Optimized codebook algorithm.
step 1: Initialization
   
   Given
   compute
step 2: For each set of a codebook where , compute the maximum value of PERs
over all MSs assigned to a set such that
   
step 3: Eliminate a set over all existing sets such that
   
step 4: For each MS in a set , compute over all existing beams except all beams in
a set . Then, assign MS to beam that maximizes such that
   
step 5: Compute
step 6: If ,
   update
   
   
    then go to step 2
step 7: The algorithm terminates, then returns a set of MSs in , an optimized codebook
, and the expected number of transmissions .