Research Article

Quantum Clone Elite Genetic Algorithm-Based Evaluation Mechanism for Maximizing Network Efficiency in Soil Moisture Wireless Sensor Networks

Algorithm 1

. Quantum revolving gate.
Input: The quantum probability amplitude matrix Q, the number of target points n, the number of soil depths y, quantum probability amplitude increment ∆
Output: The updated quantum probability amplitude matrix Q
1. for i from 1 to n do
2.   for j from 1 to y do
3.    if Q (i, j) ==1 and Q (i, j) <1 then
4.     Q (i, j) = Q (i, j) + ∆
5.    else if Q (i, j) ==0 and Q (i, j) >0 then
6.     Q (i, j) = Q (i, j) - ∆
7.   end if
8.  end for
9. end for
10. Return Q