Research Article

Performance Analysis and Node Selection of Intelligent Reflecting Surface-Aided Visible Light Communication for Parallel Vehicles

Algorithm 1

The NNIS algorithm.
Initialize the interval between adjacent IRSs , the total number of IRSs , the selected number of IRS , and the number of mirrors in each IRS.
for
; ;
  for
    for
    for
      Calculate the position vectors of the transmitter, receiver, and IRS.
      Calculate the channel gain of each mirror according to Equations (8)-(9).
    end for
    end for
   Calculate the received power corresponding to each IRS Equations (10)–(11).
  end for
   Sort in descending order to obtain
   Calculate the received power when according to Equation (11).
   if
    ;
;
   else
;
    ;
   end if
   Output the total number of selected IRS nodes and the corresponding serial number.
end for