<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-X%3Asrag014</id>
	<title>SE250:lab-X:srag014 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-X%3Asrag014"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-X:srag014&amp;action=history"/>
	<updated>2026-04-28T16:11:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-X:srag014&amp;diff=9143&amp;oldid=prev</id>
		<title>Mark: 3 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-X:srag014&amp;diff=9143&amp;oldid=prev"/>
		<updated>2008-11-03T05:20:48Z</updated>

		<summary type="html">&lt;p&gt;3 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Lab X===&lt;br /&gt;
This lab is all about State Space Search! Started off by reading through the lab sheet...looked much better than last weeks!&lt;br /&gt;
===Task 1===&lt;br /&gt;
The first task involved calculating how many different states existed for the 8-piece puzzle we were given.&lt;br /&gt;
This was pretty straightforward, there was 8 pieces but 9 spaces so therefore to find the total number of states:&lt;br /&gt;
 &lt;br /&gt;
 	9! = 362,880&lt;br /&gt;
The second part of this task was to estimate the number of edges in the complete state space graph. &lt;br /&gt;
This was difficult to work out.So when the space is in the middle there are 4 possibile options, when its in a corner &lt;br /&gt;
there are 2 possibile options and I think if its anywhere else its 3 possibile options.Im not really sure how to estimate &lt;br /&gt;
the edges for the graph, but if i have to guess Im guessing (4!*(3!^3)*(2!^4)).&lt;br /&gt;
===Task 2===&lt;br /&gt;
The second task was to write a summary of the searching algorithm. I had no idea what the algorithm meant...I think Ill get&lt;br /&gt;
back to this task...&lt;br /&gt;
===Task 3===&lt;br /&gt;
Hand drew the graph of the region of the state space within two&lt;br /&gt;
consecutive moves of the initial state that was on the handout...just to make sure I did right I checked it with &lt;br /&gt;
one of my peers. Once i drew that the next part told me to check it with the graph.c code, which I ran to get an error!&lt;br /&gt;
But then I came across the fix and fixed it to get a massive graph/tree!&lt;br /&gt;
I wasnt sure if it was right or not but I got some help and was told to change the code slightly which I did and the graph &lt;br /&gt;
that it came up with matched mine!&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;img src=&amp;#039;http://img160.imageshack.us/img160/6734/68740268th0zl3.png&amp;#039;&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Task 4===&lt;br /&gt;
Fourth task was pretty straightforward...the output i got was:&lt;br /&gt;
&lt;br /&gt;
 123&lt;br /&gt;
 456&lt;br /&gt;
 .78&lt;br /&gt;
  -&amp;gt;&lt;br /&gt;
 123&lt;br /&gt;
 456&lt;br /&gt;
 7.8&lt;br /&gt;
  -&amp;gt;&lt;br /&gt;
 123&lt;br /&gt;
 456&lt;br /&gt;
 78.&lt;br /&gt;
  -&amp;gt;&lt;br /&gt;
 Visited 5 states&lt;br /&gt;
&lt;br /&gt;
The output tells us that it visits 5 states but it only shows 3 states!?!&lt;br /&gt;
===Task 5===&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>