Research Article
A Reliability-Oriented Local-Area Model for Large-Scale Wireless Sensor Networks
//defining the variables | : | Var , | : | Var , | Begain | ///////////////////////////////////////////////////// | //the types of node in ROLM | For to NumberOfNetworks do | { | probability : | nodeKind CH; | probability : | nodeKind SN; | } | //initializing node energy | For to NumberOfNetworks do | { | If nodeKind CH | ; //the initial energy value of | Else if nodeKind SN | ; //the initial energy value of , and | } | //calculating the saturated degree of and | For to NumberOfNetworks do | { | ; //the saturated degree of , and set the value of to be 20 | ; //the saturated degree of , and set the value of to be 7 | } |
|