Research Article
A Hyper-Heuristic Heterogeneous Multisensor Node Scheme for Energy Efficiency in Larger Wireless Sensor Networks Using DEEC-Gaussian Algorithm
Algorithm 1
Sequential algorithm 1: Gauss elimination algorithm [
54].
| Input: The network parameters of the network with N nodes | | Given Matrix a[1 : n, 1 : n + 1] | | Output: x[1 : n] | | Parameters: | (1) | for k = 1 to n − 1 | (2) | for i = k + 1 to n | (3) | u = aik/akk | (4) | for j = k to n + 1 | (5) | aij = aij–u ∗ akj | (6) | next j | (7) | next i | (8) | next k | (9) | xn = an, n + 1/ann | (10) | for i = n to 1 step −1 | (11) | sum = 0 | (12) | for j = i + 1 to n | (13) | sum = sum + aij ∗ xj | (14) | next j | (15) | xi = (ai, n + 1 − sum)/aii | (16) | next i | (17) | end algorithm |
|