Research Article
MQoSR: A Multiobjective QoS Routing Protocol for Wireless Sensor Networks
Algorithm 2
Select number of used paths.
= number of available disjoint paths (source to sink) | = 1; // Initialization | = 0; // Initialization | for (p = 1; p ≤ n; p++) | { | // Calculate according to (7) | np = np++; // Add another path to the used paths | ((1 ) ≥ ) | { | number of paths to be used = np; | } |
break; | } |
|