Research Article

A Data Forwarding Scheme Based on Delaunay Triangulation for Cyber-Physical Systems

Algorithm 1

Pseudo-code of Community Update Based on Delaunay Triangulation.
Input: A triangle community with n nodes in CPS.
Output: The community based on Delaunay triangulation,
 and the node is deployed at the vertex of the community.
begin
 Each sensor node in initializes its location and send
and wait for the reply;
 Upon receiving , acknowledge the sender
 alone with the location information of the current node;
 Update the neighborhood list according to the acknowledgements
 of the ; // Gather neighbor lists
 The directly communicative nodes store the information of
 other sensor nodes' locations;
 Sort locations from , which is stored by the node, denoted
 as ;
for ( 1 to )
do(Insert into this triangle community)
 //Update the triangle community information
if ( and can communicate with each other directly)
 Connect and ;
;
else
 Search the nodes which can communicate with directly;
 Put the formed triangles into the triangle links;
end if
do Search triangle links
if (The circumcircle of contains sensor node )
 Delete the co-edge of the triangle, and connect the three vertexes
 of with ;
else
 Delete and and all the related edges from ;
end if
Return( )
end