{"id":14,"date":"2010-07-23T23:26:53","date_gmt":"2010-07-23T22:26:53","guid":{"rendered":"http:\/\/www.joesfer.com\/?p=14"},"modified":"2010-07-23T23:45:51","modified_gmt":"2010-07-23T22:45:51","slug":"ants-simulation","status":"publish","type":"post","link":"https:\/\/www.joesfer.com\/?p=14","title":{"rendered":"Ants simulation"},"content":{"rendered":"<p>This applet shows a behavioural ant simulation.<\/p>\n<p>The simulation works by first creating a few anthills in the plane. From each one of them, a crowd of ants spawns and starts wandering erratically while looking for food (white circles). When a given ant eventually finds food, it&#8217;ll walk straight back to its nest, leaving a trail of pheromones behind. These pheromones can be detected by nearby ants, which will tend to follow the trail; the pheromones are volatile, and will soon dissipate unless the trail is reinforced by more ants carrying food.<\/p>\n<p>Most efficient paths from each anthill to the food tend to <strong>emerge <\/strong>from these pheromone trails.<br \/>\n<code><\/p>\n<div id=\"processing\"><!--[if !IE]> --><br \/>\n<object classid=\"java:ants.class\" type=\"application\/x-java-applet\" archive=\"wp-content\/uploads\/programming\/processing\/ants\/ants.jar\" standby=\"Loading Processing software...\" height=\"500\" width=\"500\"><param name=\"archive\" value=\"wp-content\/uploads\/programming\/processing\/ants\/ants.jar\"><param name=\"mayscript\" value=\"true\"><param name=\"scriptable\" value=\"true\"><param name=\"image\" value=\"wp-content\/uploads\/programming\/processing\/loading.gif\"><param name=\"boxmessage\" value=\"Loading Processing software...\"><param name=\"boxbgcolor\" value=\"#FFFFFF\"><param name=\"test_string\" value=\"outer\"><![endif]--><br \/>\n<object classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" codebase=\"http:\/\/java.sun.com\/update\/1.4.2\/jinstall-1_4_2_12-windows-i586.cab\" standby=\"Loading Processing software...\" height=\"600\" width=\"600\"><param name=\"code\" value=\"ants\"><param name=\"archive\" value=\"wp-content\/uploads\/programming\/processing\/ants\/ants.jar\"><param name=\"mayscript\" value=\"true\"><param name=\"scriptable\" value=\"true\"><param name=\"image\" value=\"wp-content\/uploads\/programming\/processing\/loading.gif\"><param name=\"boxmessage\" value=\"Loading Processing software...\"><param name=\"boxbgcolor\" value=\"#FFFFFF\"><param name=\"test_string\" value=\"inner\"><p>This browser does not have a Java Plug-in.<br \/><a href=\"http:\/\/java.sun.com\/products\/plugin\/downloads\/index.html\" title=\"Download Java Plug-in\">Get the latest Java Plug-in here.<\/a><\/p><\/object><br \/>\n<!--[if !IE]> --><\/object><br \/>\n<!--<![endif]-->\n<\/div>\n<p>White = food. Black = ant. Gray = pheromones.<br \/>\nBuilt with <a title=\"Processing.org\" href=\"http:\/\/processing.org\">Processing<\/a> - Any key to reset simulation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This applet shows a behavioural ant simulation. The simulation works by first creating a few anthills in the plane. From each one of them, a crowd of ants spawns and starts wandering erratically while looking for food (white circles). When a given ant eventually finds food, it&#8217;ll walk straight back to its nest, leaving a <a class=\"more-link\" href=\"https:\/\/www.joesfer.com\/?p=14\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[8,54],"_links":{"self":[{"href":"https:\/\/www.joesfer.com\/index.php?rest_route=\/wp\/v2\/posts\/14"}],"collection":[{"href":"https:\/\/www.joesfer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joesfer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joesfer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joesfer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14"}],"version-history":[{"count":0,"href":"https:\/\/www.joesfer.com\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.joesfer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joesfer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joesfer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}