Research Article

[Retracted] Node Injection Control Logic Design for Intelligent Home System Based on Wireless Sensor Network

Algorithm 1

Smart home routing algorithm of wireless sensor network.
Initial: G={v1, v2... ,vn}; H=NULL;
{va, tb} is the input pair of hidden relations. {va, tb} is the input pair of hidden relations
gt=Find group wheretb belong;
gt=gt-{vb};
// In all groups, find the group that meets the requirement that all nodes in the group have no hidden relationship with vb
Found = false; // Assume that no appropriate grouping is found
For each g in G
if g=gt continue;
Iftb has no hidden relationship with members of group G
g = g + {tb } ;
Schedule(0, send(vb, group adjust, g)); // Immediately notify vb node to join group G
Found=true;
break;
if not found then
G=G+ {vb}; // Create a new group and place vb in the new group
Merge(G, H); // Merge nodes
}
Merge(G, H)// If there is no hidden relationship between groups, Merge the nodes
Can_ merge=true;
While(Can_merge)
{
Can_ merge=false;
For each ga in G
For each gb in G
If all nodes in ga&gb have no hidden relation then
ga=ga+gb;
G = ga +gb;
Can_ merge=true;
Schedule; // Notify gb group members to change groups
}