全球旧事资料 分类
xa
dyCoordi
atesoftheSi
ksi
kx88si
ky188
200NumberofNodesi
thefieldp005OptimalElectio
Probabilityofa
odetobecomeclusterheadpacketLe
gth400数据包长度ctrPacketLe
gth100控制包长度E
ergyModelallvaluesi
JoulesI
itialE
ergyEo05EelecEtxErxETX500000000001ERX500000000001
fTra
smitAmplifiertypesEfs100000000000001Emp000130000000000001DataAggregatio
E
ergyEDA50000000001
rmax200
ENDOFPARAMETERS
Computatio
ofdodosqrtEfsEmp
Creatio
ofthera
domSe
sorNetwork
figure1
fori11

Sixdra
d11xm
坐标
XRiSixd
Siydra
d11ym
YRiSiyd
SiG0
i
itiallythereare
oclusterheadso
ly
odes
SitypeN
普通节点
SiEEo
SiENERGY0
plotSixdSiydk
holdo

e
d
S
1xdsi
kxS
1ydsi
kyplotS
1xdS
1ydredpFirstIteratio

figure2cou
terforCHscou
tCHs0cou
terforCHsperrou
drcou
tCHs0cluster1
cou
tCHsrcou
tCHsrcou
tCHscou
tCHsflag_first_dead0
fforr01rmax主循环每次1轮r
Operatio
forepochifmodrrou
d1p0
fori11
SiG0
e
de
dholdoff
Numberofdead
odesdead0NumberofdeadAdva
cedNodesdead_a0NumberofdeadNormalNodesdead_
0
cou
terforbittra
smittedtoBasesStatio
a
dtoClusterHeadspackets_TO_BS0packets_TO_CH0cou
terforbittra
smittedtoBasesStatio
a
dtoClusterHeadsperrou
dPACKETS_TO_CHr10PACKETS_TO_BSr10
fori11
checki
gifthereisadead
odeifSiE0plotSixdSiydredoholdo
deaddead1e
difSiE0SitypeN
e
de
d
ifdead
节点全部死亡退出循环break
fe
d
STATISTICSr1DEADdeadDEADr1deadDEAD_Nr1dead_
DEAD_Ar1dead_a
Whe
thefirst
odediesifdead1
ifflag_first_dead0first_deadrflag_first_dead1
e
de
d
cou
tCHs0cluster1fori11
ifSiE0temp_ra
dra
difSiG0如果该节点在候选集合中Electio
ofClusterHeadsiftemp_ra
dp1pmodrrou
d1pcou
tCHscou
tCHs1
SitypeCSiGrou
d1p1CclusterxdSixdCclusterydSiyd
dista
cesqrtSixdS
1xd2SiydS
1yd2到si
k距离
Cclusterdista
cedista
ceCclusteridiXclusterSixdYclusterSiydclustercluster1广播自成为簇头dista
ceBroadsqrtxmxmymymifdista
ceBroaddo
SiESiEETXctrPacketLe
gthEmpctrPacketLe
gthdista
ceBroaddista
ceBroaddista
ceBroaddista
ceBroad广播自成为簇头
else
fSiESiEETXctrPacketLe
gthEfsctrPacketLe
gthdista
ceBroaddista
ceBroad
e
dCalculatio
ofE
ergydissipated簇头自己发送数据包能量消耗dista
ceifdista
cedo
SiESiEETXEDApacketLe
gthEmpr
好听全球资料 返回顶部