<?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-7%3Ahals016</id>
	<title>SE250:lab-7:hals016 - 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-7%3Ahals016"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-7:hals016&amp;action=history"/>
	<updated>2026-04-30T17:25:28Z</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-7:hals016&amp;diff=7588&amp;oldid=prev</id>
		<title>Mark: 12 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-7:hals016&amp;diff=7588&amp;oldid=prev"/>
		<updated>2008-11-03T05:20:15Z</updated>

		<summary type="html">&lt;p&gt;12 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Lab 7===&lt;br /&gt;
&lt;br /&gt;
Lab 7 has to be opened by using the Cygwin Bash shell cmd.&lt;br /&gt;
&lt;br /&gt;
===Movement===&lt;br /&gt;
&lt;br /&gt;
To move around the tree the commands &amp;quot;left&amp;quot;, &amp;quot;right&amp;quot; and &amp;quot;parent&amp;quot; can be used. The star moves down the tree left and right correspondingly to the commands. However the parent function just goes to the root which suggests its not properly implemented. If the star (navigator) gets lost/broken, the command &amp;quot;root&amp;quot; will take you back to the root.&lt;br /&gt;
&lt;br /&gt;
===Perfectly balanced, 7 inputs a-g===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;    a&lt;br /&gt;
  b&lt;br /&gt;
    c&lt;br /&gt;
d (*)&lt;br /&gt;
    e&lt;br /&gt;
  f&lt;br /&gt;
    g&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Made using insert functions (ie, i 4).&lt;br /&gt;
Any other insertion orders will not work but in terms of the order of insertion, as long as d is the root and b and f are the left and right trees then it will be the same (perfectly)&lt;br /&gt;
&lt;br /&gt;
===Order confirmation===&lt;br /&gt;
Skewing and then rotating left will have the same order when the order is recorded before the rotate left and after as well.&lt;br /&gt;
ie, the print function was used to see the order.&lt;br /&gt;
&amp;lt;pre&amp;gt;    a&lt;br /&gt;
  b&lt;br /&gt;
    c&lt;br /&gt;
d (*)&lt;br /&gt;
    e&lt;br /&gt;
  f&lt;br /&gt;
    g&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; skew&lt;br /&gt;
a (*)&lt;br /&gt;
  b&lt;br /&gt;
    c&lt;br /&gt;
      d&lt;br /&gt;
        e&lt;br /&gt;
          f&lt;br /&gt;
            g&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; print&lt;br /&gt;
Tree[*a*,b,c,d,e,f,g] //Order 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; rotate left&lt;br /&gt;
  a (*)&lt;br /&gt;
b&lt;br /&gt;
  c&lt;br /&gt;
    d&lt;br /&gt;
      e&lt;br /&gt;
        f&lt;br /&gt;
          g&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; print&lt;br /&gt;
Tree[*a*,b,c,d,e,f,g] //Order 2 (same as order 1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>