<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>ACO routing algorithm in practice</title>
	<atom:link href="http://antnet.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://antnet.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 11 Sep 2009 18:21:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='antnet.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>ACO routing algorithm in practice</title>
		<link>http://antnet.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://antnet.wordpress.com/osd.xml" title="ACO routing algorithm in practice" />
	<atom:link rel='hub' href='http://antnet.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Download Ns2.33-Antnet1.0 by Richardson Lima</title>
		<link>http://antnet.wordpress.com/2009/09/11/download-ns2-33-antnet1-0-by-richardson-lima/</link>
		<comments>http://antnet.wordpress.com/2009/09/11/download-ns2-33-antnet1-0-by-richardson-lima/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 18:21:58 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/?p=61</guid>
		<description><![CDATA[Software implementations of AntNet posted by Gianni Di Caro http://www.idsia.ch/~gianni/antnet.html Lavina Jain made an implementation of AntNet for NS-2 (that can be also downloaded here). Starting from Jain&#8217;s code, Richardson Lima has released a revised and updated version of AntNet for NS-2.33. Since I&#8217;m not an NS-2 user, I haven&#8217;t checked these implementations, but I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=61&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:red;font-size:large;"><em>Software       implementations of AntNet posted by Gianni Di Caro</em></span></p>
<p><a href="http://www.idsia.ch/~gianni/antnet.html">http://www.idsia.ch/~gianni/antnet.html</a></p>
<p>Lavina Jain made an implementation of AntNet for NS-2 (that can be also downloaded here). Starting from Jain&#8217;s code, <strong>Richardson Lima</strong> has released a revised and updated version of AntNet for NS-2.33. Since I&#8217;m not an NS-2 user, I haven&#8217;t checked these implementations, but I guess the Lima&#8217;s implementation can be used as a good starting point. If you plan to use Lima&#8217;s code, please feel free to contact me to check/improve the quality of the implementation.</p>
<p><span style="color:red;font-size:large;"><em>Download Ns2.33-Antnet1.0 by Richardson Lima<br />
</em></span></p>
<p><a href="http://www.foxylinux.com/ns2-33_AND_antnet1.0_by_RichardsonLima.tar.gz">http://www.foxylinux.com/ns2-33_AND_antnet1.0_by_RichardsonLima.tar.gz</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=61&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/09/11/download-ns2-33-antnet1-0-by-richardson-lima/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>My Twitter for support in realtime on AntNet Implementation</title>
		<link>http://antnet.wordpress.com/2009/04/14/my-twitter-for-support-in-realtime-on-antnet-implementation/</link>
		<comments>http://antnet.wordpress.com/2009/04/14/my-twitter-for-support-in-realtime-on-antnet-implementation/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 17:13:36 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[Antnet]]></category>
		<category><![CDATA[Support]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/?p=55</guid>
		<description><![CDATA[Hey there, Richardson Lima now is using Twitter !!! I created my twitter ID to support real-time to the implementation of AntNet the simulator ns2. Then visit  http://twitter.com/richardsonlima Hope that I have helped. Regards !<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=55&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey there, Richardson Lima now is using Twitter !!!</p>
<p>I created my twitter ID to support real-time to the implementation of AntNet the simulator ns2.</p>
<p>Then visit  <a href="http://twitter.com/richardsonlima">http://twitter.com/richardsonlima</a></p>
<p>Hope that I have helped.</p>
<p>Regards !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=55&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/04/14/my-twitter-for-support-in-realtime-on-antnet-implementation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>Ns-2.33 compiled with Antnet implemented</title>
		<link>http://antnet.wordpress.com/2009/03/31/ns-233-compiled-with-antnet-implemented/</link>
		<comments>http://antnet.wordpress.com/2009/03/31/ns-233-compiled-with-antnet-implemented/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 13:25:35 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/?p=44</guid>
		<description><![CDATA[NEWS: Currently many researchers are sending me emails reporting problems in the implementation antnet, with the support of 林木盛 Mu-Sheng Lin (user account and 500MB of space on FTP server), 林木盛 Mu-Sheng Lin is Ph.D candidate, Department of Electronic Engineering, National Taiwan University of Science and Technology, Taiwan, I am providing the link ftp://dp6.ykvs.tpc.edu.tw/pub/AntNet_On_Ns2/ns2-33_AND_antnet1.0_by_RichardsonLima.tar.gz , [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=44&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>NEWS: </strong></p>
<p>Currently many researchers are sending me emails reporting problems in the implementation antnet, with the support of 林木盛 Mu-Sheng Lin (user account and 500MB of space on FTP server), 林木盛 Mu-Sheng Lin is Ph.D candidate, Department of Electronic Engineering, National Taiwan University of Science and Technology, Taiwan, I am providing the link <a href="ftp://dp6.ykvs.tpc.edu.tw/pub/AntNet_On_Ns2/ns2-33_AND_antnet1.0_by_RichardsonLima.tar.gz">ftp://dp6.ykvs.tpc.edu.tw/pub/AntNet_On_Ns2/ns2-33_AND_antnet1.0_by_RichardsonLima.tar.gz</a> , This package contains the Ns-2.33 compiled with Antnet implemented. To solve some problems in the implementation I am writing a second version of the manual for implementation of antnet in ns-2.33, I report some &#8216;tricks&#8217;. =)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=44&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/03/31/ns-233-compiled-with-antnet-implemented/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>Download the Antnet Algorithm</title>
		<link>http://antnet.wordpress.com/2009/03/02/download-the-antnet-algorithm/</link>
		<comments>http://antnet.wordpress.com/2009/03/02/download-the-antnet-algorithm/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 20:14:00 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/2009/03/02/download-the-antnet-algorithm/</guid>
		<description><![CDATA[Download the Antnet Algorithm developed by Lavina Jain for the Ns-2.28 and modified for the Ns-2.33, currently I am working in this algorithm so that it works 100% identical to the proposal of Dr. Gianni Di Caro. Click here to download.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=40&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Download the Antnet Algorithm developed by Lavina Jain for the Ns-2.28 and modified for the Ns-2.33, currently I am working in this algorithm so that it works 100% identical to the proposal of <a href="http://www.idsia.ch/~gianni/antnet.html">Dr. Gianni Di Caro</a>.</p>
<p><a href="http://antalgorithm.googlecode.com/files/antnet.tar.gz">Click here to download</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=40&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/03/02/download-the-antnet-algorithm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>Released the manual for implementation</title>
		<link>http://antnet.wordpress.com/2009/03/02/released-the-manual-for-implementation/</link>
		<comments>http://antnet.wordpress.com/2009/03/02/released-the-manual-for-implementation/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 19:55:11 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[Algorithm Simulation with Ns-2]]></category>
		<category><![CDATA[Antnet]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/?p=34</guid>
		<description><![CDATA[Based on the manual written by Lavina Jain for the Ns-2.28, I launched the manual for implementation of AntNet altorithm for Ns-2.33. Click here to download. Hope that I have helped. Regards,<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=34&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Based on the manual written by Lavina Jain for the Ns-2.28, I launched the manual for implementation of AntNet altorithm for Ns-2.33.</p>
<p><a href="http://antalgorithm.googlecode.com/files/antnetmanual.pdf">Click here to download.</a></p>
<p>Hope that I have helped.</p>
<p>Regards,</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=34&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/03/02/released-the-manual-for-implementation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>antnet_rtable.h &#8211;   Lavina&#8217; s algorithm</title>
		<link>http://antnet.wordpress.com/2009/02/17/antnet_rtableh-lavina-s-algorithm/</link>
		<comments>http://antnet.wordpress.com/2009/02/17/antnet_rtableh-lavina-s-algorithm/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 17:35:52 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[Algorithm Simulation with Ns-2]]></category>
		<category><![CDATA[Antnet]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/?p=17</guid>
		<description><![CDATA[// \file antnet_rtable.h // \brief Definition file for routing table in AntNet #ifndef __antnet_rtable_h__ #define __antnet_rtable_h__ #include &#60;trace.h&#62; #include &#60;map&#62; #include &#60;string&#62; #include &#60;vector&#62; #include &#60;classifier-port.h&#62; #include &#60;random.h&#62; #include &#8220;ant_pkt.h&#8221; #include &#8220;antnet_common.h&#8221; // \brief Represents an entry in routing table // This structure represents pheromone value corresponding to a neighbor node struct pheromone { nsaddr_t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=17&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#3366ff;">//</span> <span style="color:#3366ff;"><strong>\file antnet_rtable.h</strong></span></p>
<p><span style="color:#3366ff;">// </span><span style="color:#3366ff;"><strong>\brief Definition file for routing table in AntNet</strong></span></p>
<p><span style="color:#800080;">#ifndef __antnet_rtable_h__<br />
#define __antnet_rtable_h__</span></p>
<p><span style="color:#800080;">#include </span><span style="color:#ff6600;">&lt;trace.h&gt;</span><br />
<span style="color:#800080;">#include</span> <span style="color:#ff6600;">&lt;map&gt;</span><br />
<span style="color:#800080;">#include</span> <span style="color:#ff6600;">&lt;string&gt;</span><br />
<span style="color:#800080;">#include</span> <span style="color:#ff6600;">&lt;vector&gt;</span><br />
<span style="color:#800080;">#include</span> <span style="color:#ff6600;">&lt;classifier-port.h&gt;</span></p>
<p><strong><span style="color:#800080;">#include</span> <span style="color:#ff6600;">&lt;random.h&gt;</span></strong></p>
<p><strong></strong><span style="color:#800080;">#include</span> <span style="color:#ff6600;">&#8220;ant_pkt.h&#8221;</span><br />
<span style="color:#800080;">#include</span> <span style="color:#ff6600;">&#8220;antnet_common.h&#8221;</span></p>
<p><span style="color:#3366ff;">// \brief Represents an entry in routing table</span></p>
<p><span style="color:#3366ff;">// </span><span style="color:#3366ff;">This structure represents pheromone value corresponding to a neighbor node</span></p>
<p><span style="color:#808000;"><strong>struct</strong></span> <span style="color:#008000;">pheromone {</span><br />
<span style="color:#008000;">nsaddr_t neighbor;</span> <span style="color:#3366ff;">///&lt; address of neighbor node</span><br />
<span style="color:#808000;"><strong>double</strong></span> <span style="color:#008000;">phvalue;</span> <span style="color:#3366ff;">///&lt; pheromone value</span><br />
<span style="color:#008000;">};</span></p>
<p><span style="color:#3366ff;">/// vector of pheromone values (represents entry in routing table corresponding to a destination)</span></p>
<p><span style="color:#808000;"><strong>typedef</strong></span> <span style="color:#008000;">std::vector</span><span style="color:#008000;">&lt;</span><strong><span style="color:#99cc00;"><span style="color:#808000;">s</span><span style="color:#808000;">truct</span> </span></strong><span style="color:#008000;">pheromone&gt; pheromone_matrix;</span><br />
<span style="color:#3366ff;">/// Routing table</span><br />
<span style="color:#808000;"><strong>typedef</strong></span> <span style="color:#008000;">std::map&lt;nsaddr_t, pheromone_matrix&gt; rtable_t;</span><br />
<span style="color:#3366ff;">/// Vector of neighbors all having same and maximum pheromone value</span><br />
<strong><span style="color:#808000;">typedef</span> </strong><span style="color:#008000;">std::vector&lt;nsaddr_t&gt; sameph_t;</span></p>
<p><span style="color:#008000;"><span style="color:#3366ff;">/////////////////////////////////////////////////////////////<br />
/// \brief Class to implement routing table<br />
/////////////////////////////////////////////////////////////</span><br />
<strong><span style="color:#808000;">class</span></strong> antnet_rtable {<br />
rtable_t rt_;   <span style="color:#3366ff;">///&lt; routing table</span></p>
<p>RNG *rnum;      <span style="color:#3366ff;">///&lt; random number generator</span><br />
<span style="color:#ffcc00;"><strong> public:</strong></span></p>
<p><span style="color:#3366ff;">/// Constructor</span><br />
antnet_rtable() {<br />
rnum = <span style="color:#ffcc00;"><strong>new</strong></span> RNG((<span style="color:#808000;"><strong>long int</strong></span>)CURRENT_TIME);<br />
}</p>
<p><span style="color:#3366ff;">/// Method to add an entry in routing table<br />
// Parameters: destination node, neighbor node, pheromone value</span><br />
<span style="color:#808000;"><strong> void</strong></span> add_entry(nsaddr_t destination, nsaddr_t neighbor, double phvalue);<br />
<span style="color:#3366ff;">/// Method to print routing table</span><br />
<span style="color:#808000;"><strong> void</strong></span> print();<br />
<span style="color:#3366ff;">/// returns destination node for given source node</span><br />
nsaddr_t calc_destination(nsaddr_t source);<br />
<span style="color:#3366ff;">/// returns next hop node for given source destination pair<br />
// Parameters: source node, destination node, parent node</span><br />
nsaddr_t calc_next(nsaddr_t source, nsaddr_t destination, nsaddr_t parent);<br />
<span style="color:#3366ff;">/// updates an entry in routing table<br />
// Parameters: destination node, neighbor node</span><br />
<span style="color:#808000;"><strong>void</strong></span> update(nsaddr_t destination, nsaddr_t neighbor);<br />
};</p>
<p><strong><span style="color:#333399;">#endif</span></strong></p>
<p></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=17&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/02/17/antnet_rtableh-lavina-s-algorithm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>Destination &#8211; abstract !</title>
		<link>http://antnet.wordpress.com/2009/02/17/destination-abstract/</link>
		<comments>http://antnet.wordpress.com/2009/02/17/destination-abstract/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 17:09:03 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[Antnet]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/?p=15</guid>
		<description><![CDATA[antnet.cc:    dest = rtable_.calc_destination(addr());// generate random destination antnet.cc:    ah-&#62;pkt_dst() = dest;            // set packet destination antnet.cc:    ih-&#62;daddr() = next;        // set destination address in ip header antnet.cc:        if(addr() == ah-&#62;pkt_dst()) {    // destination node antnet.cc:        else {        // not destination node antnet.cc:        if(addr() == ah-&#62;pkt_dst()) {    // destination [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=15&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>antnet.cc:    dest = rtable_.calc_destination(addr());// generate random destination</p>
<p>antnet.cc:    ah-&gt;pkt_dst() = dest;            // set packet destination</p>
<p>antnet.cc:    ih-&gt;daddr() = next;        // set destination address in ip header</p>
<p>antnet.cc:        if(addr() == ah-&gt;pkt_dst()) {    // destination node</p>
<p>antnet.cc:        else {        // not destination node</p>
<p>antnet.cc:        if(addr() == ah-&gt;pkt_dst()) {    // destination node, travel complete</p>
<p>antnet.cc:        else {        // not destination node</p>
<p>antnet.cc:    ih-&gt;daddr() = next;    // set destination address in ip header</p>
<p>antnet.cc:/// called when forward ant reaches destination node</p>
<p>antnet.cc:    // swap source and destination address</p>
<p>antnet.cc:    ih-&gt;daddr() = ch-&gt;next_hop();    // destination address</p>
<p>antnet.cc:    ih-&gt;daddr() = ch-&gt;next_hop();    // destination addres</p>
<p>antnet.cc:        if(iterWin != window_.end()) {    // destination entry exists, add to it in window</p>
<p>antnet.cc:        else {    // destination entry does not exist, add new dest entry to window</p>
<p>antnet.cc:    // routing table is updated for all the destination nodes that are visited after the neighbor node</p>
<p>antnet.cc:    // update pheromone value corresponding to neighbor node and destination nodes visited thereafter</p>
<p>antnet.cc:        // read destination nodef rom memory</p>
<p>antnet.cc:        // update pheromone valu fro neighbor node and this destination node</p>
<p>antnet.cc:    // add destination entry for each node in topology</p>
<p>antnet.h:    window_t window_;    ///&lt; window of trip times to all destinations</p>
<p>antnet_rtable.cc:/// &#8211; destination node</p>
<p>antnet_rtable.cc:    if(iterRt == rt_.end()) {    // destination entry not in rtable, add new entry</p>
<p>antnet_rtable.cc:    else {    // destination entry exists in rtable, add neighbor entry</p>
<p>antnet_rtable.cc:/// Method to return a randomly chosen destination for a source node</p>
<p>antnet_rtable.cc:nsaddr_t antnet_rtable::calc_destination(nsaddr_t source) {</p>
<p>antnet_rtable.cc:/// &#8211; destination node address</p>
<p>antnet_rtable.cc:    // find routing table entry for destination node</p>
<p>antnet_rtable.cc:        // read vector of pheromone values for the destination node</p>
<p>antnet_rtable.cc:/// &#8211; destination node address</p>
<p>antnet_rtable.cc:    // read ruoitng table entry for destination</p>
<p>antnet_rtable.h:/// vector of pheromone values (represents entry in routing table corresponding to a destination)</p>
<p>antnet_rtable.h:        // Parameters: destination node, neighbor node, pheromone value</p>
<p>antnet_rtable.h:        void add_entry(nsaddr_t destination, nsaddr_t neighbor, double phvalue);</p>
<p>antnet_rtable.h:        /// returns destination node for given source node</p>
<p>antnet_rtable.h:        nsaddr_t calc_destination(nsaddr_t source);</p>
<p>antnet_rtable.h:        /// returns next hop node for given source destination pair</p>
<p>antnet_rtable.h:        // Parameters: source node, destination node, parent node</p>
<p>antnet_rtable.h:        nsaddr_t calc_next(nsaddr_t source, nsaddr_t destination, nsaddr_t parent);</p>
<p>antnet_rtable.h:        // Parameters: destination node, neighbor node</p>
<p>antnet_rtable.h:        void update(nsaddr_t destination, nsaddr_t neighbor);</p>
<p>ant_pkt.h:    nsaddr_t pkt_dst_;    ///&lt; address of destination node</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=15&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/02/17/destination-abstract/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>Neighbors &#8211; abstract !</title>
		<link>http://antnet.wordpress.com/2009/02/17/neighbors-abstract/</link>
		<comments>http://antnet.wordpress.com/2009/02/17/neighbors-abstract/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 16:55:00 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[Antnet]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/?p=12</guid>
		<description><![CDATA[antnet.cc:extern int N; ///&#60; number of neighbors of a node antnet.cc: N = get_num_neighbors(node_addr); antnet.cc: int num_nb = get_num_neighbors(node_addr); antnet.cc: // read list of neighbors antnet.cc:/// Method to print neighbors of a node antnet.cc:Antnet::print_neighbors() { antnet.cc:/// Method to add neighbors of a node antnet_common.cc:/// Method to return number of neighbors of a node antnet_common.cc:get_num_neighbors(nsaddr_t node_addr) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=12&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>antnet.cc:extern int N;			///&lt; number of neighbors of a node</p>
<p>antnet.cc:	N = get_num_neighbors(node_addr);</p>
<p>antnet.cc:	int num_nb = get_num_neighbors(node_addr);</p>
<p>antnet.cc:			// read list of neighbors</p>
<p>antnet.cc:/// Method to print neighbors of a node</p>
<p>antnet.cc:Antnet::print_neighbors() {</p>
<p>antnet.cc:/// Method to add neighbors of a node</p>
<p>antnet_common.cc:/// Method to return number of neighbors of a node</p>
<p>antnet_common.cc:get_num_neighbors(nsaddr_t node_addr) {</p>
<p>antnet_common.h:/// Method to return number of neighbors of a node</p>
<p>antnet_common.h:int get_num_neighbors(nsaddr_t node_addr); Binary file</p>
<p>antnet.h:		/// print neighbors of a node</p>
<p>antnet.h:		void print_neighbors(); Binary file</p>
<p>antnet_rtable.cc:int N;		///&lt; Number of neighbors of a node</p>
<p>antnet_rtable.cc:			fprintf(stdout,&#8221;neighbors of %d:\t&#8221;,source);</p>
<p>antnet_rtable.h:/// Vector of neighbors all having same and maximum pheromone value scripts/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=12&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/02/17/neighbors-abstract/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
		<item>
		<title>Simulation of ants looking for food</title>
		<link>http://antnet.wordpress.com/2009/02/16/simulation-of-ants-looking-for-food/</link>
		<comments>http://antnet.wordpress.com/2009/02/16/simulation-of-ants-looking-for-food/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 14:30:21 +0000</pubDate>
		<dc:creator>Richardson Lima</dc:creator>
				<category><![CDATA[Antnet]]></category>
		<category><![CDATA[ant simulation]]></category>

		<guid isPermaLink="false">http://antnet.wordpress.com/2009/02/16/simulation-of-ants-looking-for-food/</guid>
		<description><![CDATA[get hungry, out for food<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=3&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>get hungry, out for food<br />
<span class='embed-youtube' style='text-align:center; display:block;'><object width='468' height='294'><param name='movie' value='http://www.youtube.com/v/5JGuf3WL-PM?version=3&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' /> <param name='allowfullscreen' value='true' /> <param name='wmode' value='opaque' /> <embed src='http://www.youtube.com/v/5JGuf3WL-PM?version=3&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='468' height='294' wmode='opaque'></embed> </object></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antnet.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antnet.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antnet.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antnet.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antnet.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antnet.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antnet.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antnet.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antnet.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antnet.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antnet.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antnet.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antnet.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antnet.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=antnet.wordpress.com&amp;blog=6605029&amp;post=3&amp;subd=antnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://antnet.wordpress.com/2009/02/16/simulation-of-ants-looking-for-food/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4e9321f97e4d9ede935fe815b52ece?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Richardson Lima</media:title>
		</media:content>
	</item>
	</channel>
</rss>
