Mathematical Problems in Engineering / 2015 / Article / Psdc 1

Research Article

A Reliability-Oriented Local-Area Model for Large-Scale Wireless Sensor Networks

Pseudocode 1

//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

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.