Research Article
Disease Control and Prevention in Rare Plants Based on the Dominant Population Selection Method in Opportunistic Social Networks
Algorithm 1
Infection and immunity algorithm in opportunistic social networks (IAIA).
| Input: The number of plant N, period t | | Output: S, E, R, I, | | START: | | For t = 1 to G | | For i = 1 to N | | Calculate Se(t) = get | | p = Rand(0,1)/∗p is probability in infection ∗/ | | For j = 1 to n | | If /∗ is MAX probability in infection ∗/ | | If Se(t + 1) = S and Se(t) = S | | Matching S-S | | Print | | Else if Se(t) = E | | Matching S-E | | Print | | Else if Se(t) = I | | Matching S-I | | Print | | Else Se(t) = R | | Matching S-R | | Print | | End for | | End |
|