Research Article
Novel Framework for Secure Data Aggregation in Precision Agriculture with Extensive Energy Efficiency
Algorithm 1
Energy-efficient data aggregation.
| | Input: n, , A, , Eo, nag | | | Output: d | | | Start | | (1) | init n, | | (2) | (, , ) ← rand(n, A, ) | | (3) | = (div(A), alloc ) | | (4) | ⟶ (a. α) & ⟶ b. α | | (5) | (, ) = (α) | | (6) | = argmax() | | (7) | = (p, t) | | (8) | For i = 1: | | (9) | ind ← ix() | | (10) | Apply Algorithm 2 | | (11) | For j = 1:length(ind2) | | (12) | If arb < | | (13) | G(ind(ind2(j)) = | | (14) | selected_ag = 1 | | (15) | ⟶ flag forward data | | (16) | End | | (17) | End | | (18) | End | | | End |
|