Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/core/open_close_dbase_connection.php on line 0

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/clustering-for-wireless-networks/index.php(0) : eval()'d code on line 22

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/clustering-for-wireless-networks/index.php(0) : eval()'d code on line 35

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/get_ad_type_position.php on line 0

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/load_ads.php on line 0

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/sponsor_found.php on line 0

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/load_links.php on line 0

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/clustering-for-wireless-networks/index.php(0) : eval()'d code on line 161

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/clustering-for-wireless-networks/index.php(0) : eval()'d code on line 164

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/clustering-for-wireless-networks/index.php(0) : eval()'d code on line 167
implementation of aceclustering algorithm
projectus.freehost7.com:UG and PG level projects,mini projects and many more here ...



Implementation of ACE:Clustering Algorithm (ACE)

if myTime > 3 x EXPECTED ITERATION LENGTH then

if myState = CLUSTER-HEAD then return DONE

else if myState = CLUSTERED then

wait for my cluster-heads to terminate, then pick one as my cluster- head return DONE

else if myState = UNCLUSTERED then

pick a random clustered node to act as my proxy after it terminates wait for it to terminate, then

return DONE

end if

else if myState = UNCLUSTERED

and numLoyalFollowers() ≥ fmin(myTime) then myClusterID←generate New_Random_ID() locally_broadcast(RECRUIT, myID, myClusterID)

else if myState = CLUSTER-HEAD then bestLeader←myID bestFollowerCount←numLoyalFollowers

for all n where n is a potential new cluster-head do

followerCount = Poll_For_Num _Loyal_Followers(n, myClusterID)

if followerCount > bestFollowerCount then bestLeader←n bestFollowerCount←followerCount

end if end for

if bestLeader is not myID then

send(bestLeader, PROMOTE, myClusterID)

wait for bestLeader to broadcast it's RECRUIT message locally_broadcast(ABDICATE, myID, myClusterID)

end if end if