UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
if anyone have the ns2 coding for cluster formation in VANETs..plz help me!
We will be happy to help you. You first need to read the LQ Rules (pay attention to the part about NOT using text-speak), and the "Question Guidelines". We will assist if you're stuck, but we aren't going to look things up for you, nor write your code for you.
Post what you have done/tried/researched on your own, and we can assist.
We will be happy to help you. You first need to read the LQ Rules (pay attention to the part about NOT using text-speak), and the "Question Guidelines". We will assist if you're stuck, but we aren't going to look things up for you, nor write your code for you.
Post what you have done/tried/researched on your own, and we can assist.
Sir I am doing the research in clustering technique in vanet..i hv created the algorithm but now i hv to implement it on ns2 or ns3.. but i don't hv any idea.. how to implement..
and my my algorithm is based on mobilty.. and i don't know to find the neighbour and sutaible cluster head ...
$ grep -n clusterhead Clustering-moc_v1.tcl
1735: set $clusterhead1=max_energy-level.cluster1.node_rep;
1736: set $clusterhead2=max_energy-level.cluster2.node_rep;
1737: set $clusterhead3=max_energy-level.cluster3.node_rep;
1757: select clusterhead1=cluster1.node_rep->max_energy_level;
1765: select clusterhead2=cluster2.node_rep->max_energy_level;
1773: clusterhead();
1779: select clusterhead3=cluster3.node_rep->max_energy_level;
1786: clusterhead();
2. A-kartiksd.tcl
Code:
$ grep -n Head A-kartiksd.tcl
713: puts "The Cluster Head value is = $ch"
715: if {$ch == $nc0} {puts "the Cluster Head is Node 0"}
716: if {$ch == $nc1} {puts "the Cluster Head is Node 1"}
717: if {$ch == $nc2} {puts "the Cluster Head is Node 2"}
718: if {$ch == $nc3} {puts "the Cluster Head is Node 3"}
719: if {$ch == $nc4} {puts "the Cluster Head is Node 4"}
720: if {$ch == $nc5} {puts "the Cluster Head is Node 5"}
721: if {$ch == $nc6} {puts "the Cluster Head is Node 6"}
722: if {$ch == $nc7} {puts "the Cluster Head is Node 7"}
723: if {$ch == $nc8} {puts "the Cluster Head is Node 8"}
724: if {$ch == $nc9} {puts "the Cluster Head is Node 9"}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.