Research Article
A Reliability-Oriented Local-Area Model for Large-Scale Wireless Sensor Networks
//starting with an existing network with a small number of nodes and at least one CH node among them | //using the Function_ROLM_Model to construct the WSN | Function_ROLM_Model | Begain | For to NumberOfNetworks do | { | //Firstly, we mark nodes randomly from the pre-existing network as the local-area | local-area : nodes, | If nodeKind SN | { | For to do | { | If | { | ; // is the residual energy of , and are | the sink layer values of node and node | | | node() = ; //select the node with max probability from the local-area | CONNECT(node(), node()); //connect node() & node(), link() | ; // is regarded as the energy consumed by every link | ; | | Else if nodeKind CH | { | For to do | { | If && nodeKind CH | { | ; // is the residual energy of . and are | the sink layer values of node and node | | | Node() = ; //select the node with max probability from the local-area | CONNECT(node(), node()); //connect node() & node(, link() | ; // is regarded as the energy consumed by every link | ; | | | End_ROLM |
|