<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Problem Set 3: Implementing Abstract Datatypes</title>
	<atom:link href="http://www.cs.virginia.edu/cs2220/?feed=rss2&#038;page_id=255" rel="self" type="application/rss+xml" />
	<link>http://www.cs.virginia.edu/cs2220</link>
	<description></description>
	<lastBuildDate>Thu, 04 Nov 2010 18:05:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: David Evans</title>
		<link>http://www.cs.virginia.edu/cs2220/?page_id=255&#038;cpage=1#comment-13</link>
		<dc:creator>David Evans</dc:creator>
		<pubDate>Mon, 20 Sep 2010 23:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs.virginia.edu/cs2220/?page_id=255#comment-13</guid>
		<description>The specification is less clear than it should be on this, since the prose is ambiguous, but the formal notation is more clear (but not consistent with the notation used elsewhere!):
&lt;blockquote&gt;
     EFFECTS: If s is not a node in this, throws NoNodeException.
        Otherwise, returns a set containing the nodes adjacent to s

        That is, returns the set of nodes
            { e &#124; &lt;s, e&gt; is in E }
&lt;/blockquote&gt;
This suggests that it should only include nodes that can be reached following an edge from s to e.  The inconsistency is the abstract notation uses (s, e) to denote edges, but the spec here incorrectly uses &lt;s, e&gt;.

A better specification would make this more clear:
&lt;blockquote&gt;
     EFFECTS: If s is not a node in this, throws NoNodeException.
        Otherwise, returns a set containing the nodes that can be reached following an edge from s

        That is, returns the set of nodes { e &#124; (s, e) is in E }
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>The specification is less clear than it should be on this, since the prose is ambiguous, but the formal notation is more clear (but not consistent with the notation used elsewhere!):</p>
<blockquote><p>
     EFFECTS: If s is not a node in this, throws NoNodeException.<br />
        Otherwise, returns a set containing the nodes adjacent to s</p>
<p>        That is, returns the set of nodes<br />
            { e | &lt;s, e&gt; is in E }
</p></blockquote>
<p>This suggests that it should only include nodes that can be reached following an edge from s to e.  The inconsistency is the abstract notation uses (s, e) to denote edges, but the spec here incorrectly uses &lt;s, e&gt;.</p>
<p>A better specification would make this more clear:</p>
<blockquote><p>
     EFFECTS: If s is not a node in this, throws NoNodeException.<br />
        Otherwise, returns a set containing the nodes that can be reached following an edge from s</p>
<p>        That is, returns the set of nodes { e | (s, e) is in E }
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: blantonj</title>
		<link>http://www.cs.virginia.edu/cs2220/?page_id=255&#038;cpage=1#comment-12</link>
		<dc:creator>blantonj</dc:creator>
		<pubDate>Mon, 20 Sep 2010 22:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs.virginia.edu/cs2220/?page_id=255#comment-12</guid>
		<description>The specification for StringGraph says that it is a directed graph, which means that each connection goes one way.  For getAdjacent, then, should it include all nodes in any way connected to the input or just ones that start at the input?</description>
		<content:encoded><![CDATA[<p>The specification for StringGraph says that it is a directed graph, which means that each connection goes one way.  For getAdjacent, then, should it include all nodes in any way connected to the input or just ones that start at the input?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Evans</title>
		<link>http://www.cs.virginia.edu/cs2220/?page_id=255&#038;cpage=1#comment-11</link>
		<dc:creator>David Evans</dc:creator>
		<pubDate>Mon, 20 Sep 2010 17:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs.virginia.edu/cs2220/?page_id=255#comment-11</guid>
		<description>I&#039;ve fixed a couple typesetting problems with the StringGraph specification.  The overview specification should list the edges as ordered pairs, instead of sets.  It now reads,
&lt;blockquote&gt;
A typical StringGraph is
       &lt; {v1, v2, ..., vn} , { (v_a1, v_b1), (v_a2, v_b2), ... } &gt;
    where each ai and bi is in [1, n].
&lt;/blockquote&gt;
Note that the abstract representation of the edges is a set of pairs of Strings, where each string is the name of a node in the node set.

Also, I fixed the specification of &lt;tt&gt;addEdge&lt;/tt&gt;.  There was a problem with the html, it should read
&lt;blockquote&gt;
G&lt;sub&gt;post&lt;/sub&gt; = &lt; V&lt;sub&gt;pre&lt;/sub&gt;, E&lt;sub&gt;pre&lt;/sub&gt; U { (&lt;em&gt;s&lt;/em&gt;, &lt;em&gt;t&lt;/em&gt;) } &gt;
&lt;/blockquote&gt;
to show the new edge is added to the set of edges.

Sorry for the confusion!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve fixed a couple typesetting problems with the StringGraph specification.  The overview specification should list the edges as ordered pairs, instead of sets.  It now reads,</p>
<blockquote><p>
A typical StringGraph is<br />
       < {v1, v2, ..., vn} , { (v_a1, v_b1), (v_a2, v_b2), ... } ><br />
    where each ai and bi is in [1, n].
</p></blockquote>
<p>Note that the abstract representation of the edges is a set of pairs of Strings, where each string is the name of a node in the node set.</p>
<p>Also, I fixed the specification of <tt>addEdge</tt>.  There was a problem with the html, it should read</p>
<blockquote><p>
G<sub>post</sub> = &lt; V<sub>pre</sub>, E<sub>pre</sub> U { (<em>s</em>, <em>t</em>) } &gt;
</p></blockquote>
<p>to show the new edge is added to the set of edges.</p>
<p>Sorry for the confusion!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Evans</title>
		<link>http://www.cs.virginia.edu/cs2220/?page_id=255&#038;cpage=1#comment-10</link>
		<dc:creator>David Evans</dc:creator>
		<pubDate>Sun, 19 Sep 2010 03:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs.virginia.edu/cs2220/?page_id=255#comment-10</guid>
		<description>Sorry, its an html bug.  It should just be a &gt;.  Its fixed now, thanks for reporting the problem!</description>
		<content:encoded><![CDATA[<p>Sorry, its an html bug.  It should just be a &gt;.  Its fixed now, thanks for reporting the problem!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bkn3yh</title>
		<link>http://www.cs.virginia.edu/cs2220/?page_id=255&#038;cpage=1#comment-9</link>
		<dc:creator>bkn3yh</dc:creator>
		<pubDate>Sun, 19 Sep 2010 01:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.cs.virginia.edu/cs2220/?page_id=255#comment-9</guid>
		<description>In public class Poly {
	// Rep:
	private ArrayList&lt;TermRecord&amp;gt terms;

what does &amp;gt mean?</description>
		<content:encoded><![CDATA[<p>In public class Poly {<br />
	// Rep:<br />
	private ArrayList&lt;TermRecord&amp;gt terms;</p>
<p>what does &amp;gt mean?</p>
]]></content:encoded>
	</item>
</channel>
</rss>