<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.simulace.info/index.php?action=history&amp;feed=atom&amp;title=Finding_strategies_comparison</id>
	<title>Finding strategies comparison - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.simulace.info/index.php?action=history&amp;feed=atom&amp;title=Finding_strategies_comparison"/>
	<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;action=history"/>
	<updated>2026-07-28T08:16:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23442&amp;oldid=prev</id>
		<title>Kadt02: /* Second method - bouncing */</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23442&amp;oldid=prev"/>
		<updated>2023-01-23T18:49:29Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Second method - bouncing&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:49, 23 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l64&quot; &gt;Line 64:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:bounce_UI.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:bounce_UI.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again. Non agregated data can be seen here [[File:	Results bounce.xlsx]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again. Non agregated data can be seen here [[File:Results bounce.xlsx]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key simulaceinfo_www:diff::1.12:old-23441:rev-23442 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23441&amp;oldid=prev</id>
		<title>Kadt02 at 18:48, 23 January 2023</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23441&amp;oldid=prev"/>
		<updated>2023-01-23T18:48:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:48, 23 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l64&quot; &gt;Line 64:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:bounce_UI.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:bounce_UI.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Non agregated data can be seen here [[File:	Results bounce.xlsx]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key simulaceinfo_www:diff::1.12:old-23439:rev-23441 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23439&amp;oldid=prev</id>
		<title>Kadt02 at 18:46, 23 January 2023</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23439&amp;oldid=prev"/>
		<updated>2023-01-23T18:46:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:46, 23 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page presents the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;work &lt;/del&gt;of &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Comparison &lt;/del&gt;of strategies for finding a lost person in the forest made by Tomas Kadane&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page presents the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;multi-agent simulation &lt;/ins&gt;of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;comparison &lt;/ins&gt;of strategies for finding a lost person in the forest made by Tomas Kadane&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Problem definition=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Problem definition=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key simulaceinfo_www:diff::1.12:old-23434:rev-23439 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23434&amp;oldid=prev</id>
		<title>Kadt02: Created page with &quot;This page presents the work of Comparison of strategies for finding a lost person in the forest made by Tomas Kadane  =Problem definition= This problem came to my mind because...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23434&amp;oldid=prev"/>
		<updated>2023-01-23T18:41:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This page presents the work of Comparison of strategies for finding a lost person in the forest made by Tomas Kadane  =Problem definition= This problem came to my mind because...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page presents the work of Comparison of strategies for finding a lost person in the forest made by Tomas Kadane&lt;br /&gt;
&lt;br /&gt;
=Problem definition=&lt;br /&gt;
This problem came to my mind because I have once lost my dog in a forest. I was thinking what would be the best strategy to find the dog. However it is pretty complex problem to simulate forest and all types of strategies, so this work is simplified by multiple factors (against the reality and work assignment). I'm comparing two strategies with variable number of searchers in square pane with fixed boundaries.&lt;br /&gt;
&lt;br /&gt;
=Method=&lt;br /&gt;
For the simulation I have used NetLogo 6.3.0. I'm implementing two basic searching strategies. First one is based on random walk and the second is based on the walking to the edge of the forest and then bouncing in the opposite direction. &lt;br /&gt;
&lt;br /&gt;
Searched person is represented by single red colored patch (representing area where the searched person can be seen). And the searchers are so called turtles beginning at random position. When any of the turtle enters the red area, the simulation stops and number of ticks is recorded. Both methods have been done 30 times for 1, 2 and 3 searchers.&lt;br /&gt;
&lt;br /&gt;
==First method - random walk==&lt;br /&gt;
In the fist method I implemented random walk. Each step (represented by one tick) one step ahead is made and then the heading is changed by random angle using this formula:&lt;br /&gt;
 set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
&lt;br /&gt;
If the searchers hits the border of the forest, he will turn &amp;quot;backwards&amp;quot; as described in this code:&lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:randomwalk_UI.png]]&lt;br /&gt;
&lt;br /&gt;
After measuring 30 times for each angle and 1, 2 and 3 searchers I created table of average steps (ticks) needed to find the searched person. Not agregated data can be found in [[File:Results random walk.xlsx]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	1033	||	583	||	633      ||    1301 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	398	||	304	||	403      ||    658&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	290	||	219	||	130	 ||    371&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To see how steps needed vary I used standart deviation.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Standart deviations for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	885	||	543	||	662      ||    1793 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	377	||	236	||	356      ||    869&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	366	||	237	||	128	 ||    472&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Second method - bouncing==&lt;br /&gt;
In the second method searchers and searchers are spawned on the random position. Setup is same as in the first method. However the moving method differs. Searchers are moving in direct way and when they hit border they bounce in oposite direction as described in this code:&lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:bounce_UI.png]]&lt;br /&gt;
&lt;br /&gt;
The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages and standart deviations for bouncing method'''&lt;br /&gt;
!| Searchers    ||   Average   ||   St. dev. &lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	566	||	624	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	192	||	161&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	180	||	141&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Results=&lt;br /&gt;
To evaluate random walk method. We can see that if we are searching alone, the 90 angle seems the most efective, however 180 angle seems not bad at all too. If we are searching as two people - 90 angle is the most suitable. When there are three searchers the 180 angle seems the best.&lt;br /&gt;
&lt;br /&gt;
When we want to compare our two methods, For one searcher bounce method is better even then the most effective angle in random walk method. For two searchers it is the same, bounce method is more effective again, even then the 90 angle method. For three searchers is the random walk with the 180 angle most effective.&lt;br /&gt;
&lt;br /&gt;
However if we want to evaluate the standart deviation, basicly it is always better with the bounce method. So it seems like safer choice if we don't want to risk really long journey to find the dog.&lt;br /&gt;
&lt;br /&gt;
=Conclussion=&lt;br /&gt;
Although we can see in the tables, that there are differences in both strategies we mustn't forget, that we are using only 30 observation for all the variants. The number should be more significant to say that certainly. However we can see significant difference in standart deviation and thus we can see that using random element in our searching strategy can pay off but also can be pretty bad.&lt;br /&gt;
&lt;br /&gt;
=Code=&lt;br /&gt;
==Random walk method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false &lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go-random&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-borders&lt;br /&gt;
     set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:Sp random walk.nlogo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bounce method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false&lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-bounce&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Sp bounce.nlogo]]&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
</feed>