<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Learning and Unlearning Math &#187; look-up</title>
	<atom:link href="http://unlearningmath.com/tag/look-up/feed/" rel="self" type="application/rss+xml" />
	<link>http://unlearningmath.com</link>
	<description>math as a garden, friendly and always new</description>
	<lastBuildDate>Wed, 29 Feb 2012 15:11:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='unlearningmath.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/8d493ad6804e080f2f6ff5c0e5055b36?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Learning and Unlearning Math &#187; look-up</title>
		<link>http://unlearningmath.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://unlearningmath.com/osd.xml" title="Learning and Unlearning Math" />
	<atom:link rel='hub' href='http://unlearningmath.com/?pushpress=hub'/>
		<item>
		<title>Operators, Functions, and Properties &#8211; part 40</title>
		<link>http://unlearningmath.com/2011/01/17/operators-functions-and-properties-part-40/</link>
		<comments>http://unlearningmath.com/2011/01/17/operators-functions-and-properties-part-40/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 05:32:45 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[black box]]></category>
		<category><![CDATA[denominations]]></category>
		<category><![CDATA[equivalence]]></category>
		<category><![CDATA[invariants]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[reverse engineering]]></category>

		<guid isPermaLink="false">http://unlearningmath.com/?p=2128</guid>
		<description><![CDATA[In this series, we&#8217;ve spent considerable space playing with operators, which we&#8217;ve pictured as black boxes with inputs and outputs, often as part of a machine with state.  In more recent posts, e.g. this one , we&#8217;ve looked at operators that we likened to moving around on a contour line, towards a representative value in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=2128&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this <a href="http://unlearningmath.com/2010/07/20/operators-functions-and-properties-the-series/">series</a>, we&#8217;ve spent considerable space playing with operators, which we&#8217;ve pictured as black boxes with inputs and outputs, often as part of a machine with <em>state</em>.  In more recent posts, e.g. <a href="http://unlearningmath.com/2010/12/21/operators-functions-and-properties-part-36/">this one</a> , we&#8217;ve looked at operators that we likened to moving around on a contour line, towards a representative value in an equivalence class.</p>
<p>In the <a href="http://unlearningmath.com/2011/01/07/operators-functions-and-properties-part-39/">prior post</a>, we looked at a number line on a slinky, and picked an equivalence relationship simply based on which numbers are vertically aligned.  We&#8217;re going to take a closer look at slinky arithmetic,</p>
<p style="text-align:center;"><a href="http://bertspeelpenning.files.wordpress.com/2011/01/metal-slinky-roger-mclassus-1-1024x768.jpg"><img class="aligncenter size-full wp-image-2135" title="Metal-Slinky-Roger-McLassus-1-1024x768" src="http://bertspeelpenning.files.wordpress.com/2011/01/metal-slinky-roger-mclassus-1-1024x768.jpg?w=600" alt=""   /></a></p>
<p>mapping numbers onto the slinky as below &#8211; so that 5 ends up directly above 1, and 6 directly above 2, etc.:</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2011/01/number-line-slinky.jpg"><img class="aligncenter size-medium wp-image-2137" title="Number Line Slinky" src="http://bertspeelpenning.files.wordpress.com/2011/01/number-line-slinky.jpg?w=300&h=183" alt="" width="300" height="183" /></a></p>
<p>It may be helpful to think as the &#8220;1&#8243; position as South, the &#8220;2&#8243; position as East, the &#8220;3&#8243; position as North and the &#8220;4&#8243; position as West.  As you move around the spiral, you keep coming back to South etc, but you&#8217;ll be a little higher up.</p>
<p>Now let&#8217;s look at arithmetic on the slinky, starting with addition.   We can take some well-known addition fact, like<br />
5 + 10 = 15, and then note the compass positions of the numbers involved.  5 is South, 10 is East, and 15 is North.  The question I&#8217;m now curious about is: <em>If I start with a number in the South and add a number in the East, will I always end up with a sum in the North?</em> After all, the compass directions seem to have nothing to do with how high up we are.  On this number line, East comes after South, and North comes after East, and West comes after North, and after West comes South again.</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-addition1.jpg"><img class="aligncenter size-full wp-image-2145" title="Slinky Addition" src="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-addition1.jpg?w=600" alt=""   /></a>In the diagram above, the top line shows the compass marks for the numbers from 0-18.  The diagram at the bottom left shows  a normal addition table.  In the table on the right, all the numbers from the left have been replaced by their compass markings.  As you can see, the pattern on the right is completely regular and repeats after 4 rows, after 4 columns and after 4 diagonals.</p>
<p>From that table on the right, we extract a four-by-four core piece, and show it below.  It is this piece that repeats over and over.  We can translate the compass marks back into numbers, as shown below on the right.  We used the numbers 0-3 as representatives of the equivalence classes &#8211; unlike the situation in the prior post, we now have at least some reason to pick this set of numbers over other numbers.</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-addition-simplified.jpg"><img class="aligncenter size-full wp-image-2147" title="Slinky Addition simplified" src="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-addition-simplified.jpg?w=600" alt=""   /></a>In some regards, the table on the right does look like an addition table: most of the entries match what we would expect.  It is only where we would normally expect a sum of 4 or greater that the table looks somewhat strange.  Instead of 4, we find 0; instead of 5, we find 1, and instead of 6, we find 2.  This is at least consistent with the equivalence relationship we&#8217;re looking at here: 4 is directly above 0, 5 is directly above 1, and 6 is directly above 2 in our slinky.</p>
<p>The style of addition in this last table has a fancy name: it is known as <em>addition modulo 4</em>.  The same phrase, <em>modulo 4</em>, is used to talk about equivalence classes for whole numbers: when any two numbers that are 4 apart are considered equivalent.  For example, people would say that 5 and 9 are equivalent modulo 4, and that 9 and 13 are equivalent modulo 4.  By extension, 5 and 13 are also equivalent modulo 4.  Some people would describe equivalence modulo 4 in terms of division: two numbers are equivalent modulo 4 if they have the same remainder after dividing by 4.  Yet another way to talk about it is in terms of multiples: two numbers are equivalent modulo 4 if they differ by a multiple of 4.  All these ways of talking about it amount to the same thing, but that may not be immediately obvious.  &#8220;Two numbers are equivalent modulo 4 if they point in the same compass direction on the slinky&#8221; also expresses the same idea.</p>
<p>So far, we&#8217;ve talked about modulo 4 and only looked at the operation of addition modulo 4.  We can extend in both directions: we could look at subtraction, multiplication, and division modulo 4.  We could also extend in a different way and look at equivalence modulo 5 or modulo 6 etc.  We will take this up in future posts.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/2128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/2128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/2128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/2128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/2128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/2128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/2128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/2128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/2128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/2128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/2128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/2128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/2128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/2128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=2128&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2011/01/17/operators-functions-and-properties-part-40/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/metal-slinky-roger-mclassus-1-1024x768.jpg" medium="image">
			<media:title type="html">Metal-Slinky-Roger-McLassus-1-1024x768</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/number-line-slinky.jpg?w=300" medium="image">
			<media:title type="html">Number Line Slinky</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-addition1.jpg" medium="image">
			<media:title type="html">Slinky Addition</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-addition-simplified.jpg" medium="image">
			<media:title type="html">Slinky Addition simplified</media:title>
		</media:content>
	</item>
		<item>
		<title>Operators, Functions, and Properties &#8211; part 39</title>
		<link>http://unlearningmath.com/2011/01/07/operators-functions-and-properties-part-39/</link>
		<comments>http://unlearningmath.com/2011/01/07/operators-functions-and-properties-part-39/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 03:08:16 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[black box]]></category>
		<category><![CDATA[denominations]]></category>
		<category><![CDATA[equivalence]]></category>
		<category><![CDATA[extending patterns]]></category>
		<category><![CDATA[invariants]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[naming]]></category>
		<category><![CDATA[recurrence relationship]]></category>
		<category><![CDATA[representations]]></category>

		<guid isPermaLink="false">http://unlearningmath.com/?p=2119</guid>
		<description><![CDATA[In this series, we&#8217;ve been looking at operators in various settings, and looked for ways to use them to shine a different colored light on some aspects school math.  In the last four posts, we&#8217;ve explored the notions of equivalence  and equivalence classes and representatives of equivalence classes &#8211; and saw a number of interesting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=2119&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this <a href="http://unlearningmath.com/2010/07/20/operators-functions-and-properties-the-series/">series</a>, we&#8217;ve been looking at operators in various settings, and looked for ways to use them to shine a different colored light on some aspects school math.  In the last four posts, we&#8217;ve explored the notions of equivalence  and equivalence classes and representatives of equivalence classes &#8211; and saw a number of interesting things.  One, we <a href="http://unlearningmath.com/2010/12/21/operators-functions-and-properties-part-36/">saw</a> that equivalence classes can be likened to contour lines on a geologic survey map, the number on the contour line that indicates the altitude can be likened to the property that is the same for all the members of the equivalence class, and that one useful kind of operator is the operator that takes us from any point on the contour line towards the point (the representative member of the equivalence class) that carries the label (the number).  Two, that many computations involving two numbers can be split into two parts: the first part locates the two numbers as a point on the map, and the second part moves us from that point along the contour line to the representative point which carries the label.  And there is additional stuff that we&#8217;ve hinted at but not anywhere fully developed, like the idea of introducing new kinds of numbers through equivalence classes.</p>
<p>In this post I want to get started on playing with what&#8217;s known as modulo arithmetic, also called modular arithmetic, from our framework of operators and equivalence classes and properties.</p>
<p>As a starting point, let&#8217;s take another look at the <a href="http://unlearningmath.com/2009/02/19/notes-on-representation-the-number-line/">number line</a>.  In this older post, I suggest that this one thing, the number line, takes on a different character as students progress from using it for counting to &#8211; much later &#8211; locate numbers like π and √3 on it.  When we are just counting, the fact that the numbers on the number line are carefully spaced is not critical &#8211; but what is important is that the mark for 4 comes after the mark for 3 and the mark for 5 comes after the mark for 4, etc.  The number line is usually drawn as a straight line, but this may only be critical once we start to use number lines as axes on graphs.</p>
<p style="text-align:center;"><a href="http://bertspeelpenning.files.wordpress.com/2011/01/measuring-tape.jpg"><img class="aligncenter size-full wp-image-2133" title="measuring tape" src="http://bertspeelpenning.files.wordpress.com/2011/01/measuring-tape.jpg?w=600" alt=""   /></a><a href="http://bertspeelpenning.files.wordpress.com/2011/01/measuring-tape-v2.jpg"><img class="aligncenter size-full wp-image-2134" title="measuring-tape-v2" src="http://bertspeelpenning.files.wordpress.com/2011/01/measuring-tape-v2.jpg?w=600" alt=""   /></a></p>
<p>The measuring tapes shown above, whether in inches or centimeters, are essentially number lines also, though they aren&#8217;t necessarily straight lines.  If you measure things with them, you probably want to stretch them out to be straight &#8211; but if you want to use them for many of the functions you use a number line for, it may be quite sufficient to unroll the tape enough so you can see the numbers you care about.</p>
<p>You could even take a slinky and turn it into a number line.</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2011/01/metal-slinky-roger-mclassus-1-1024x768.jpg"><img class="aligncenter size-full wp-image-2135" title="Metal-Slinky-Roger-McLassus-1-1024x768" src="http://bertspeelpenning.files.wordpress.com/2011/01/metal-slinky-roger-mclassus-1-1024x768.jpg?w=600&h=450" alt="" width="600" height="450" /></a>To do so, you would have to put markings along the rim.  Though the slinky would never be suitable for measuring like a measuring tape, it might serve quite well as a number line.</p>
<p>A sketch of one possible such number line is shown below:</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2011/01/number-line-slinky.jpg"><img class="aligncenter size-full wp-image-2137" title="Number Line Slinky" src="http://bertspeelpenning.files.wordpress.com/2011/01/number-line-slinky.jpg?w=600" alt=""   /></a>The numbers 1-7 are shown; the slinky extends in both directions, as indicated by dotted lines.  Numbers are shown evenly spaced &#8211; in this particular example, precisely 4 whole numbers are placed along each circle.  For example, by the time we get to &#8220;5&#8243;, we are exactly where &#8220;1&#8243; was, just slightly above it.</p>
<p>In prior posts, we&#8217;d look at a particular operation, and then decide on equivalence classes based on equal values of that operation, this time we&#8217;ll turn things around, and decide on the equivalence classes first.   Can we do this and get away with it?  Sure, if we cast it in terms of: &#8220;with respect to what operation(s) will these equivalence classes in fact be equivalent?&#8221;</p>
<p>On the slinky number line just sketched, we are going to consider the equivalence classes based on vertical alignment, like this:</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-equivalence-classes1.jpg"><img class="aligncenter size-full wp-image-2139" title="Slinky equivalence classes" src="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-equivalence-classes1.jpg?w=600" alt=""   /></a>Another way of talking about this equivalence is that we consider equivalent all numbers that are 4 apart.  The representatives of these equivalence classes, just like in our earlier posts, are found at the end points of the blue arrows.  So 1, 2, 3 and 4 are the representatives.  There is nothing magical about this particular choice, you can make a very good case for using 0, 1, 2 and 3 as the representatives instead.  We could also have picked -2, -1, 0 and 1.  In a sense, it is too early to argue which make for the best representatives &#8211; we haven&#8217;t looked at relevant operations yet.</p>
<p>In the next post, we&#8217;ll apply this particular equivalence structure to the operations of addition and subtraction.</p>
<p>x</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/2119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/2119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/2119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/2119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/2119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/2119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/2119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/2119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/2119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/2119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/2119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/2119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/2119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/2119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=2119&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2011/01/07/operators-functions-and-properties-part-39/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/measuring-tape.jpg" medium="image">
			<media:title type="html">measuring tape</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/measuring-tape-v2.jpg" medium="image">
			<media:title type="html">measuring-tape-v2</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/metal-slinky-roger-mclassus-1-1024x768.jpg" medium="image">
			<media:title type="html">Metal-Slinky-Roger-McLassus-1-1024x768</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/number-line-slinky.jpg" medium="image">
			<media:title type="html">Number Line Slinky</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2011/01/slinky-equivalence-classes1.jpg" medium="image">
			<media:title type="html">Slinky equivalence classes</media:title>
		</media:content>
	</item>
		<item>
		<title>Operators, Functions, and Properties &#8211; part 36</title>
		<link>http://unlearningmath.com/2010/12/21/operators-functions-and-properties-part-36/</link>
		<comments>http://unlearningmath.com/2010/12/21/operators-functions-and-properties-part-36/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 21:29:48 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[black box]]></category>
		<category><![CDATA[equivalence]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[representations]]></category>

		<guid isPermaLink="false">http://unlearningmath.com/?p=2099</guid>
		<description><![CDATA[In the previous post in this series, we broached the subject of equivalence classes.  We did so in the context of looking at an addition table and noticing how each value in the table occurred multiple times.  We drew a blue line to connect all the entries that had the same value in it, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=2099&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://unlearningmath.com/2010/12/20/operators-functions-and-properties-part-35/">previous post</a> in this <a href="http://unlearningmath.com/2010/07/20/operators-functions-and-properties-the-series/">series</a>, we broached the subject of <em>equivalence classes</em>.  We did so in the context of looking at an addition table and noticing how each value in the table occurred multiple times.  We drew a blue line to connect all the entries that had the same value in it, and this blue line now marks a particular equivalence class.  What all the entries in that equivalence class has in common is the value of the sum.  Same sum, same equivalence class; different sum, different equivalence class.  The value of the sum is the <em>property </em>that links the entries in the equivalence class together.</p>
<p>In this post, I&#8217;m going to develop a similar theme with multiplication and multiplication tables.  In the diagram on the left, I&#8217;ve drawn a simplified multiplication table, only going up to 5.  In the middle, I&#8217;ve repeated all that information but this time drew some contour lines connecting entries with the same value for the multiplication result (the product).  Compared to the addition case in the prior post, the contour lines are no longer straight.  Only some of the contour lines are shown, but you can get a good idea about the others, especially since 1.5, 2.5, 3.5 and 4.5 are marked also.  Finding the product associated with any point in that middle diagram is directly analogous with how you find the altitude on a topographical map such as the one shown on the right.</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2010/12/contour-lines-multiplication.jpg"><img class="aligncenter size-full wp-image-2105" title="Contour Lines Multiplication" src="http://bertspeelpenning.files.wordpress.com/2010/12/contour-lines-multiplication.jpg?w=600&h=247" alt="" width="600" height="247" /></a>In such a topographical map, the contour lines represent locations of equal altitude.  You can see contour lines marked for elevations of 400 ft and 350 ft (this is  a US Geologic Survey map) with 4 contour lines separating them.  From this you can conclude that adjacent contour lines are 10 ft in latitude apart.  The altitude of any point on this map can be estimated fairly accurately by looking at contour lines below and above.</p>
<p>It&#8217;s the same with the product.  In the middle diagram, the contour lines are drawn 2.5 apart, from 0 to 25, though the contour line for 0 is not strictly on the diagram itself, but rather just beyond the top left corner.  You could draw contour lines 1 apart instead, and this certainly would remove the need for estimating if what is being multiplied is two whole numbers (from 1 to 5).  Of course, the need for estimating would rear its head in the same way, when you wanted to use the map for multiplying numbers that weren&#8217;t whole numbers.  And you could.  The  middle diagram is a simple (and somewhat crude) example of a class of computational devices called <a href="http://en.wikipedia.org/wiki/Nomogram">nomographs</a>, of which the Wikipedia entry provides some interesting examples.  Now largely replaced by electronic devices, for centuries nomographs represented the most sophisticated computing devices available.  (A particularly versatile and useful one, for centuries,  is the slide rule.  I still have the slide rule I bought for college, in those days obligatory for math/science/engineering students.  The real geeks of the day had them hanging from their belt.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/2099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/2099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/2099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/2099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/2099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/2099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/2099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/2099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/2099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/2099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/2099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/2099/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/2099/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/2099/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=2099&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2010/12/21/operators-functions-and-properties-part-36/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2010/12/contour-lines-multiplication.jpg" medium="image">
			<media:title type="html">Contour Lines Multiplication</media:title>
		</media:content>
	</item>
		<item>
		<title>Operators, Functions, and Properties &#8211; part 15</title>
		<link>http://unlearningmath.com/2010/08/02/operators-functions-and-properties-part-15/</link>
		<comments>http://unlearningmath.com/2010/08/02/operators-functions-and-properties-part-15/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 07:17:23 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[black box]]></category>
		<category><![CDATA[denominations]]></category>
		<category><![CDATA[extending patterns]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[reverse engineering]]></category>

		<guid isPermaLink="false">http://unlearningmath.com/?p=1814</guid>
		<description><![CDATA[In this series, we&#8217;ve been playing with the mathematical notion of an operator, seeing if we could make it useful for making a bridge between arithmetic and algebra.  In the previous post, we started to investigate the notion of a function, and highlighted a key idea of the notion of a function that often goes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=1814&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this <a href="http://unlearningmath.com/2010/07/20/operators-functions-and-properties-the-series/">series</a>, we&#8217;ve been playing with the mathematical notion of an operator, seeing if we could make it useful for making a bridge between arithmetic and algebra.  In the <a href="http://unlearningmath.com/2010/08/01/operators-functions-and-properties-part-14/">previous post</a>, we started to investigate the notion of a <em>function</em>, and highlighted a key idea of the notion of a function that often goes unspoken both at the secondary school level and at the college math level.  There is a name for this notion, but surprisingly this name is primarily used in the field of economics, and not much in mathematics or physical sciences.  This name is <em><a href="http://en.wikipedia.org/wiki/Ceteris_paribus">ceteris paribus</a></em> and is often translated with &#8220;other things being equal&#8221;.  In economics, when you say that the number of Toyota Prius you sell is a function of their price, you are well advised to qualify your statement with an &#8220;all other things being equal&#8221;, precisely because the other things rarely <em>are </em>equal: a well-publicized scare about the brakes in an different Toyota model may be enough to throw off the sales numbers of the Prius without any change in their price at all.  Or a sudden change in the price of a competing car model might equally alter the sales numbers of the Prius.  A box as shown on the left:</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2010/08/functions-3.jpg"><img class="aligncenter size-full wp-image-1829" title="Functions 3" src="http://bertspeelpenning.files.wordpress.com/2010/08/functions-3.jpg?w=600" alt=""   /></a>seems seriously lacking.  The box on the right is an attempt to clean this up a bit.  Sales are <em>not </em>a function the price.  From a known price, the sales volume is not uniquely determined.  In the language of our operators and our state machine black boxes, we&#8217;d say that there are hidden variables or hidden state that affects the output.</p>
<p>The issue here, by the way, is not that the description inside of the box (&#8220;Prius&#8221;) doesn&#8217;t tell us precisely enough how to calculate the sales demand from the price as a given input.  For all we know, the Prius box contains an big look-up table with the data from some massive earlier experiment in which prices were varied.  Such a look-up table would be a fine way to build a function box.  The issue, rather, is that price clearly isn&#8217;t the only thing that determines sales volume.  Yet if we do manage to hold all the other potentially relevant variables constant &#8211; in other words, if we can really deliver on the ceteris paribus, then, yes, we&#8217;d have an example of a function.</p>
<p>In the previous post we also emphasized that a function doesn&#8217;t necessarily have its own matching undo.  But let&#8217;s be more precise: a function doesn&#8217;t necessarily have a matching undo <em>function</em>.  Computer programs often build undo-functionality by squirreling away some extra data.  For example, if you delete a word, and then &#8220;undo&#8221; that delete, the program can retrieve the word that you deleted since it didn&#8217;t <em>really </em>delete it, it just squirreled it away.  This copy of the deleted word is then part of the state of the machine, part of what is usually known as <em>hidden state</em>.  By looking closely at how a program like Microsoft Word behaves, you can make up a decent model for what is going on.  Microsoft Word operates on state, and the state is not just what is currently in the document, but also what is in its undo and redo stack.  When you start Word, or whenever you save a document, these stacks are emptied.  When you do something in Word, like typing, or deleting, or changing the font of a selection, an entry is added onto the undo stack, and each entry is specific enough so that the action can not only be undone, but also be re-done after undoing it.  When you undo something, the last entry is moved from the undo stack to the redo stack.  These stacks of undo/redo entries are fully part of the state on which Word operates.</p>
<p>For the mathematical notion of a function, it is essential that there be no hidden variables, that all dependencies are shown.  So when we write <img src='http://s0.wp.com/latex.php?latex=y+%3D+a+x%5E2+%2B+b+x+%2B+c+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = a x^2 + b x + c ' title='y = a x^2 + b x + c ' class='latex' />, we think of x as the input, y as the output, and while we may at times insist that a,b,c are not variables, we nevertheless make them explicit, and give them some kind of appropriate name (<em>parameters</em>, or <em>unspecified constants</em>) that indicate that we think of them as fixed.  In <img src='http://s0.wp.com/latex.php?latex=area+%3D+%5Cpi+r%5E2+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='area = &#92;pi r^2 ' title='area = &#92;pi r^2 ' class='latex' /> we have a different situation, where <img src='http://s0.wp.com/latex.php?latex=%5Cpi+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi ' title='&#92;pi ' class='latex' /> is thought of as a name for a specific number, or perhaps as a shorthand for the decimal expansion of that number.</p>
<p>OK &#8211; so now let&#8217;s briefly introduce <em>properties</em>, and then come back to those in more detail as well.  Our starting point will be a state machine, one of the type we introduced in <a href="http://unlearningmath.com/2010/07/12/operators-functions-and-properties-part-6/">part 6</a> of this series:</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2010/07/state-machine.jpg"><img class="aligncenter size-full wp-image-1694" title="State Machine" src="http://bertspeelpenning.files.wordpress.com/2010/07/state-machine.jpg?w=600" alt=""   /></a></p>
<p>A state machine has one or more buttons that invoke operators; when invoked, such an operator takes the current state of the machine, operates on it, and produces a new, updated state.  Not all of the state is necessarily visible; typically, what shows on the screen is only a small portion of the machine&#8217;s state.  Even on the simplest four-function calculator, there is a number being kept in the calculator that the screen does not show.  If you enter &#8220;2+3=&#8221;, then at the moment the &#8220;3&#8243; shows on the screen, the &#8217;2&#8243; is no longer showing &#8211; but we all know it is still &#8220;there&#8221; in some sense; after all, when you hit the final &#8220;=&#8221; button, the screen will show &#8220;5&#8243;, so clearly more was &#8216;kept around&#8217; than just that &#8220;3&#8243;.  And yet, clearly, what is shown on the screen depends on the state of the machine.  In fact, what&#8217;s shown on the screen is an aspect of the state, a piece of the state, a component of the state.   Here, we&#8217;d say that the screen content is one of the <em>properties </em>of the state.</p>
<p>We can look at properties as special kinds of functions, ones that usually don&#8217;t have an undo function.  These functions can act on state, as in our example of the calculator screen above, or they can act on numbers, as in many of our examples of operators.  Imagine a box that determines whether the number on its input is even or odd, and puts a value on the output accordingly &#8211; this will be an example of a property operator, and one we will pursue in an upcoming post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/1814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/1814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/1814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/1814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/1814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/1814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/1814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/1814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/1814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/1814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/1814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/1814/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/1814/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/1814/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=1814&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2010/08/02/operators-functions-and-properties-part-15/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2010/08/functions-3.jpg" medium="image">
			<media:title type="html">Functions 3</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2010/07/state-machine.jpg" medium="image">
			<media:title type="html">State Machine</media:title>
		</media:content>
	</item>
		<item>
		<title>Groupings, Shopping Lists, Vectors: part 7</title>
		<link>http://unlearningmath.com/2009/12/23/groupings-shopping-lists-vectors-part-7/</link>
		<comments>http://unlearningmath.com/2009/12/23/groupings-shopping-lists-vectors-part-7/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:17:57 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[denominations]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[math class]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[naming]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[whole vs. parts]]></category>

		<guid isPermaLink="false">http://unlearningmath.com/?p=1380</guid>
		<description><![CDATA[In part 6 of this series, I introduced an operation called inner product between two vectors, as a way to find the total price of an order using a price list.  In this post, I want to give a bunch of other examples where the same pattern shows up. But before I do so, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=1380&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://unlearningmath.com/2009/12/20/groupings-shopping-lists-vectors-part-6/">part 6</a> of this series, I introduced an operation called<em> inner product</em> between two vectors, as a way to find the total price of an order using a price list.  In this post, I want to give a bunch of other examples where the same pattern shows up.</p>
<p>But before I do so, I want to &#8216;fess up&#8217; to something.  It&#8217;s the kind of thing that irritates me when I see others do it.  I did something that didn&#8217;t make any particular sense in the context in which I used it &#8211; it only makes sense in a future setting, in this case a setting that is several posts away.  We do this in math class all the time: we put the motivation into the future &#8220;some day this will all make sense.  You need this because of the 9th grade test, or because of graduate school.&#8221;  Instead, I think it is really important that the math makes sense now, always now, not in the future.<br />
Truth is that my displaying the vector inner product using one horizontal vector and one vertical vector was not something that was particularly appropriate in the problem setting that I used.  It may have gotten in the way somewhat.  So let me correct that here and use a representation that is appropriate to the situation at hand.</p>
<p>Instead of this representation:</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="43" valign="top"></td>
<td width="138" valign="top">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100" valign="top">cheeseburger</td>
<td width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">chickenburger</td>
<td width="43" valign="top">$1.80</td>
</tr>
<tr>
<td width="100" valign="top">coke</td>
<td width="43" valign="top">$1.20</td>
</tr>
<tr>
<td width="100" valign="top">diet coke</td>
<td width="43" valign="top">$1.20</td>
</tr>
<tr>
<td width="100" valign="top">fries</td>
<td width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">hamburger</td>
<td width="43" valign="top">$1.40</td>
</tr>
<tr>
<td width="100" valign="top">ice cream treat</td>
<td width="43" valign="top">$1.90</td>
</tr>
<tr>
<td width="100" valign="top">kid meal</td>
<td width="43" valign="top">$3.00</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td width="43" valign="top">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="43" valign="top">coke</td>
<td width="70" valign="top">cheeseburger</td>
<td width="70" valign="top">hamburger</td>
<td width="45" valign="top">fries</td>
</tr>
<tr>
<td valign="top">3</td>
<td valign="top">1</td>
<td valign="top">5</td>
<td valign="top">2</td>
</tr>
</tbody>
</table>
</td>
<td width="138" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100" valign="top"></td>
<td width="43" valign="top">$</td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top">$15.10</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>it would be more natural to use a representation like this (which more closely matches many order forms you may see):</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100" valign="top"><span style="color:#0000ff;">Item</span></td>
<td width="43" valign="top"><span style="color:#0000ff;">Price</span></td>
<td style="text-align:center;" width="20" valign="top"><span style="color:#0000ff;">×</span></td>
<td style="text-align:center;" width="45" valign="top"><span style="color:#0000ff;">Order</span></td>
<td style="text-align:center;" width="20" valign="top"><span style="color:#0000ff;">=</span></td>
<td width="43" valign="top"><span style="color:#0000ff;">Amount</span></td>
</tr>
<tr>
<td width="100" valign="top">cheeseburger</td>
<td width="43" valign="top">$1.50</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">1</td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">chickenburger</td>
<td width="43" valign="top">$1.80</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top"></td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td width="43" valign="top"></td>
</tr>
<tr>
<td width="100" valign="top">coke</td>
<td width="43" valign="top">$1.20</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">3</td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$3.60</td>
</tr>
<tr>
<td width="100" valign="top">diet coke</td>
<td width="43" valign="top">$1.20</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top"></td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td width="43" valign="top"></td>
</tr>
<tr>
<td width="100" valign="top">fries</td>
<td width="43" valign="top">$1.50</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">2</td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$3.00</td>
</tr>
<tr>
<td width="100" valign="top">hamburger</td>
<td width="43" valign="top">$1.40</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">5</td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$7.00</td>
</tr>
<tr>
<td width="100" valign="top">ice cream treat</td>
<td width="43" valign="top">$1.90</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top"></td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td width="43" valign="top"></td>
</tr>
<tr>
<td width="100" valign="top">kid meal</td>
<td width="43" valign="top">$3.00</td>
<td style="text-align:center;" width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top"></td>
<td style="text-align:center;" width="20" valign="top">=</td>
<td width="43" valign="top"></td>
</tr>
<tr>
<td width="100" valign="top"></td>
<td width="43" valign="top"></td>
<td style="text-align:center;" width="20" valign="top"></td>
<td style="text-align:center;" width="45" valign="top"><span style="color:#993300;">Total</span></td>
<td style="text-align:center;" width="20" valign="top"><span style="color:#993300;">=</span></td>
<td style="text-align:right;" width="43" valign="top"><span style="color:#993300;">$15.10</span></td>
</tr>
</tbody>
</table>
<p>This representation matches more clearly how most of us would think about an order being priced.  The two starting vectors(the order vector and the price vector) can be seen in this arrangement, though they are a bit indistinct.  If you&#8217;d feel better if the blank entries are replaced by zeros, you are welcome to do it that way:</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100" valign="top"><span style="color:#0000ff;">Item</span></td>
<td width="43" valign="top"><span style="color:#0000ff;">Price</span></td>
<td width="20" valign="top"><span style="color:#0000ff;">×</span></td>
<td style="text-align:center;" width="45" valign="top"><span style="color:#0000ff;">Order</span></td>
<td width="20" valign="top"><span style="color:#0000ff;">=</span></td>
<td width="43" valign="top"><span style="color:#0000ff;">Amount</span></td>
</tr>
<tr>
<td width="100" valign="top">cheeseburger</td>
<td width="43" valign="top">$1.50</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">1</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">chickenburger</td>
<td width="43" valign="top">$1.80</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">0</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$0.00</td>
</tr>
<tr>
<td width="100" valign="top">coke</td>
<td width="43" valign="top">$1.20</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">3</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$3.60</td>
</tr>
<tr>
<td width="100" valign="top">diet coke</td>
<td width="43" valign="top">$1.20</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">0</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$0.00</td>
</tr>
<tr>
<td width="100" valign="top">fries</td>
<td width="43" valign="top">$1.50</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">2</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$3.00</td>
</tr>
<tr>
<td width="100" valign="top">hamburger</td>
<td width="43" valign="top">$1.40</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">5</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$7.00</td>
</tr>
<tr>
<td width="100" valign="top">ice cream treat</td>
<td width="43" valign="top">$1.90</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">0</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$0.00</td>
</tr>
<tr>
<td width="100" valign="top">kid meal</td>
<td width="43" valign="top">$3.00</td>
<td width="20" valign="top">×</td>
<td style="text-align:center;" width="45" valign="top">0</td>
<td width="20" valign="top">=</td>
<td style="text-align:right;" width="43" valign="top">$0.00</td>
</tr>
<tr>
<td width="100" valign="top"></td>
<td width="43" valign="top"></td>
<td width="20" valign="top"></td>
<td style="text-align:center;" width="45" valign="top"><span style="color:#993300;">Total</span></td>
<td width="20" valign="top"><span style="color:#993300;">=</span></td>
<td style="text-align:right;" width="43" valign="top"><span style="color:#993300;">$15.10</span></td>
</tr>
</tbody>
</table>
<p>OK &#8211; now on to other examples of inner products.</p>
<p><strong>Weighted Average</strong> &#8211; One that most teachers are familiar with is that of computing an average score based on a series of tests, each with its own weight.  So let&#8217;s say there was a test in September, and one in October, and one in November, and a final in December.  Let&#8217;s say the scores on each are in the range from 0 to 100, and that the final is supposed to count twice as heavily as the other tests.</p>
<p>The weights vector would be:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align:center;" width="80" valign="top">September</td>
<td style="text-align:center;" width="43" valign="top">.20</td>
</tr>
<tr>
<td style="text-align:center;" width="80" valign="top">October</td>
<td style="text-align:center;" width="43" valign="top">.20</td>
</tr>
<tr>
<td style="text-align:center;" width="80" valign="top">November</td>
<td style="text-align:center;" width="43" valign="top">.20</td>
</tr>
<tr>
<td style="text-align:center;" width="80" valign="top">December</td>
<td style="text-align:center;" width="43" valign="top">.40</td>
</tr>
</tbody>
</table>
<p>The weight vector is the same for all students, and is independent of the scores.</p>
<p>A particular student would have a set of scores.  Let&#8217;s assume Jesse&#8217;s scores are like this:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="text-align:center;">
<td width="80" valign="top">September</td>
<td style="text-align:center;" width="43" valign="top">60</td>
</tr>
<tr>
<td style="text-align:center;" width="80" valign="top">October</td>
<td style="text-align:center;" width="43" valign="top">70</td>
</tr>
<tr>
<td style="text-align:center;" width="80" valign="top">November</td>
<td style="text-align:center;" width="43" valign="top">50</td>
</tr>
<tr>
<td style="text-align:center;" width="80" valign="top">December</td>
<td style="text-align:center;" width="43" valign="top">100</td>
</tr>
</tbody>
</table>
<p>The final score for Jesse would be the inner product of his score vector and the weights vector:<br />
60 × .20 + 70 × .20 + 50 × .20 + 100 × .40 = 12 + 14 + 10 + 40 = 76.</p>
<p>(This matches the result you&#8217;d get if you took the average of 60, 70, 50, 100, 100 where you&#8217;d repeat the December score twice.  That&#8217;s another way to give the December score double the weight of the others.  60 + 70 + 50 + 100 + 100 = 380, and if you divide that by 5 &#8211; which is the number of scores added together &#8211; you get the same 76.)</p>
<p><strong>Total Calories</strong> &#8211; Just like we can price an order by computing the inner product of the order vector with a price vector, we can get the total calories of an order by computing the inner product of the order vector with a calorie vector.</p>
<p><strong>Number of Cups</strong> &#8211; We can keep track of inventory through inner products, too.  A store will typically want to replace the inventory that&#8217;s been sold, and for that it wants to keep track of the total amount sold.  This is probably most useful  when done for a particular period, like a day.  To keep the example simple, let&#8217;s assume we&#8217;re keeping track for each single order (and then add these up for all orders in a day).  The store would want to keep track of the number of hamburger patties used up, the number of slices of pickle used, etc.  In this example, we&#8217;ll keep track of the number of cups used for a particular order.  Again, this can be done by taking the inner product of the order vector with the following vector:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100" valign="top">cheeseburger</td>
<td style="text-align:center;" width="43" valign="top">0</td>
</tr>
<tr>
<td width="100" valign="top">chickenburger</td>
<td style="text-align:center;" width="43" valign="top">0</td>
</tr>
<tr>
<td width="100" valign="top">coke</td>
<td style="text-align:center;" width="43" valign="top">1</td>
</tr>
<tr>
<td width="100" valign="top">diet coke</td>
<td style="text-align:center;" width="43" valign="top">1</td>
</tr>
<tr>
<td width="100" valign="top">fries</td>
<td style="text-align:center;" width="43" valign="top">0</td>
</tr>
<tr>
<td width="100" valign="top">hamburger</td>
<td style="text-align:center;" width="43" valign="top">0</td>
</tr>
<tr>
<td width="100" valign="top">ice cream treat</td>
<td style="text-align:center;" width="43" valign="top">0</td>
</tr>
<tr>
<td width="100" valign="top">kid meal</td>
<td style="text-align:center;" width="43" valign="top">1</td>
</tr>
</tbody>
</table>
<p>which we might name the &#8220;cup vector&#8221;.  You can verify for yourself that the inner product of our example order</p>
<table border="1" cellspacing="0" cellpadding="0" width="237">
<tbody>
<tr>
<td width="43" valign="top">coke</td>
<td width="70" valign="top">cheeseburger</td>
<td width="70" valign="top">hamburger</td>
<td width="45" valign="top">fries</td>
</tr>
<tr>
<td valign="top">3</td>
<td valign="top">1</td>
<td valign="top">5</td>
<td valign="top">2</td>
</tr>
</tbody>
</table>
<p>with the cup vector would yield 3 cups.  For (3×1 cup) + (1×0 cups) + (5×0 cups) + (2×0 cups) = 3 cups.</p>
<p>We&#8217;ll see more examples of inner products later, including geometric examples.  I think we&#8217;ve got enough here to gives us a natural introduction to a new topic in the next post: we are going to introduce <em>matrices</em>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/1380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/1380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/1380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/1380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/1380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/1380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/1380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/1380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/1380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/1380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/1380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/1380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/1380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/1380/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=1380&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2009/12/23/groupings-shopping-lists-vectors-part-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>
	</item>
		<item>
		<title>Groupings, Shopping Lists, Vectors: part 6</title>
		<link>http://unlearningmath.com/2009/12/20/groupings-shopping-lists-vectors-part-6/</link>
		<comments>http://unlearningmath.com/2009/12/20/groupings-shopping-lists-vectors-part-6/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 07:33:07 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[denominations]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[naming]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[whole vs. parts]]></category>

		<guid isPermaLink="false">http://unlearningmath.com/?p=1364</guid>
		<description><![CDATA[In this series on vectors we showed vector addition in this post, and then took a small excursion to show a surprising connection between some vector additions and the distributive property. In  this post, I will combine vectors with look-up tables and thus introduce an operation usually called inner product.  For this, we will take [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=1364&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this series on <em>vectors</em> we showed vector addition in <a href="http://unlearningmath.com/2009/12/18/groupings-shopping-lists-vectors-part-4/">this post</a>, and then took a small <a href="http://unlearningmath.com/2009/12/19/groupings-shopping-lists-vectors-part-5/">excursion</a> to show a surprising connection between some vector additions and the distributive property.</p>
<p>In  this post, I will combine vectors with look-up tables and thus introduce an operation usually called <em>inner product</em>.  For this, we will take as our starting point the drive-up window order from a previous post:</p>
<table style="height:32px;" border="1" cellspacing="0" cellpadding="0" width="237">
<tbody>
<tr style="text-align:center;">
<td width="43" valign="top">coke</td>
<td width="70" valign="top">cheeseburger</td>
<td width="70" valign="top">hamburger</td>
<td width="45" valign="top">fries</td>
</tr>
<tr style="text-align:center;">
<td valign="top">3</td>
<td valign="top">1</td>
<td valign="top">5</td>
<td valign="top">2</td>
</tr>
</tbody>
</table>
<p>The box above represents the order, and we have been assuming that this order is specific enough that the fast food folks can get you what you want.  Specifically, that there is an understanding of what an order of &#8220;coke&#8221; is as compared to, say, &#8220;coke, small&#8221;, or &#8220;diet coke, large&#8221;.</p>
<p>Yet serving up your order is not the only concern of the fast food place.  They need to get paid.  They charge you for the items ordered, based on a price list.  (And then, in the USA and some other countries, they compute taxes on top of the total; in yet other countries, the taxes would already be included in the prices shown on the price list.  In this post, I&#8217;ll ignore taxes altogether.)</p>
<p>The price list can also be shown as a vector.  It might look like this:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100" valign="top">cheeseburger</td>
<td width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">chickenburger</td>
<td width="43" valign="top">$1.80</td>
</tr>
<tr>
<td width="100" valign="top">coke</td>
<td width="43" valign="top">$1.20</td>
</tr>
<tr>
<td width="100" valign="top">diet coke</td>
<td width="43" valign="top">$1.20</td>
</tr>
<tr>
<td width="100" valign="top">fries</td>
<td width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">hamburger</td>
<td width="43" valign="top">$1.40</td>
</tr>
<tr>
<td width="100" valign="top">ice cream treat</td>
<td width="43" valign="top">$1.90</td>
</tr>
<tr>
<td width="100" valign="top">kid meal</td>
<td width="43" valign="top">$3.00</td>
</tr>
</tbody>
</table>
<p>The price list will typically contain many items that weren&#8217;t ordered.   Typically, there is an entry in the price list for any item ordered.</p>
<p>To find the total amount (ignoring taxes), it is pretty clear what needs to be done: for each item ordered, you multiply the amount ordered by the price found from the price list vector, and then you add it all up.</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="43" valign="top"></td>
<td width="138" valign="top">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100" valign="top">cheeseburger</td>
<td style="text-align:right;" width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">chickenburger</td>
<td style="text-align:right;" width="43" valign="top">$1.80</td>
</tr>
<tr>
<td width="100" valign="top">coke</td>
<td style="text-align:right;" width="43" valign="top">$1.20</td>
</tr>
<tr>
<td width="100" valign="top">diet coke</td>
<td style="text-align:right;" width="43" valign="top">$1.20</td>
</tr>
<tr>
<td width="100" valign="top">fries</td>
<td style="text-align:right;" width="43" valign="top">$1.50</td>
</tr>
<tr>
<td width="100" valign="top">hamburger</td>
<td style="text-align:right;" width="43" valign="top">$1.40</td>
</tr>
<tr>
<td width="100" valign="top">ice cream treat</td>
<td style="text-align:right;" width="43" valign="top">$1.90</td>
</tr>
<tr>
<td width="100" valign="top">kid meal</td>
<td style="text-align:right;" width="43" valign="top">$3.00</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td width="43" valign="top">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="text-align:center;">
<td width="43" valign="top">coke</td>
<td width="70" valign="top">cheeseburger</td>
<td width="70" valign="top">hamburger</td>
<td width="45" valign="top">fries</td>
</tr>
<tr style="text-align:center;">
<td valign="top">3</td>
<td valign="top">1</td>
<td valign="top">5</td>
<td valign="top">2</td>
</tr>
</tbody>
</table>
</td>
<td style="text-align:left;" width="138" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr style="text-align:center;">
<td width="100" valign="top"></td>
<td width="43" valign="top"><span style="color:#ffffff;">$</span></td>
</tr>
<tr style="text-align:center;">
<td valign="top"></td>
<td style="text-align:right;" valign="top">$15.10</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>The $15.10 comes from coke (3 times $1.20) plus cheeseburger (1 times $1.50) plus hamburger (5 times $1.40) plus fries (2 times 1.50).</p>
<p style="text-align:center;"><a href="http://bertspeelpenning.files.wordpress.com/2009/12/inner-product.jpg"><img class="size-full wp-image-1373  aligncenter" title="inner product" src="http://bertspeelpenning.files.wordpress.com/2009/12/inner-product.jpg?w=600" alt=""   /></a></p>
<p>The operation on the order vector and the price list vector that gives us the final price (ignoring taxes) is called <em>inner product</em>.  I don&#8217;t want to go into the significance or the origin of the name (though you would correctly guess that there is also something called an <em>outer product</em>.)  Inner product is also often called the <em>dot product</em>.</p>
<p>You may have noticed that the situation shown is not symmetric with respect to the two vectors.  Yet there are ways to make the similarity between the two vectors more pronounced.  One way to do that is to ignore the parts of the price list that aren&#8217;t being called upon.  We can also reorder the entries to match those of the order.  Doing so might give us something like this:</p>
<p><a href="http://bertspeelpenning.files.wordpress.com/2009/12/inner-product-reduced.jpg"><img class="size-full wp-image-1374  aligncenter" title="inner product, reduced" src="http://bertspeelpenning.files.wordpress.com/2009/12/inner-product-reduced.jpg?w=600" alt=""   /></a>Alternatively, we could expand the order to match the price list, by explicitly  marking zeros for those items on the menu that aren&#8217;t ordered.  This is something we may show later.</p>
<p>For now, I will note that textbooks sometimes show this inner product as follows:</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align:left;" width="100" valign="top"></td>
<td width="43" valign="top">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align:right;" width="43" valign="top">1.20</td>
</tr>
<tr>
<td style="text-align:right;" width="43" valign="top">1.50</td>
</tr>
<tr>
<td style="text-align:right;" width="43" valign="top">1.40</td>
</tr>
<tr>
<td style="text-align:right;" width="43" valign="top">1.50</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td width="100" valign="top">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="text-align:center;">
<td width="25" valign="top">3</td>
<td width="25" valign="top">1</td>
<td width="25" valign="top">5</td>
<td width="25" valign="top">2</td>
</tr>
</tbody>
</table>
</td>
<td style="text-align:right;" width="43" valign="top">
<table style="height:17px;" border="0" cellspacing="0" cellpadding="0" width="43">
<tbody>
<tr style="text-align:center;">
<td valign="top"></td>
<td style="text-align:right;" valign="top">15.10</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>where the information that gives us the meaning of the 15.10 is left out, but at least the distinction between the two operands of the operation is maintained.  But since the process of multiplying and adding is itself commutative, there are many textbooks that dispense with the different treatment of the two operands altogether and write the thing as (3,1,5,2) • (1.20,1.50,1.40,1.50) = 15.10 and treat it as a completely symmetric operation: (1.20,1.50,1.40,1.50) • (3,1,5,2) = 15.10.  I will come back to these more subtle points in a later post.  What I hope I have achieved in this post is that you see how the scenario of an order &#8211; written as a vector &#8211; combined with a price list &#8211; also written as a vector &#8211; naturally leads to a process that gives us a single number, and that this process matches what textbooks call inner product.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/1364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/1364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/1364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/1364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/1364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/1364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/1364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/1364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/1364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/1364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/1364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/1364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/1364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/1364/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=1364&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2009/12/20/groupings-shopping-lists-vectors-part-6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2009/12/inner-product.jpg" medium="image">
			<media:title type="html">inner product</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2009/12/inner-product-reduced.jpg" medium="image">
			<media:title type="html">inner product, reduced</media:title>
		</media:content>
	</item>
		<item>
		<title>Notes on Lookup &#8211; Another Sieve for the Collatz Problem</title>
		<link>http://unlearningmath.com/2009/02/27/notes-on-lookup-another-sieve-for-the-collatz-problem/</link>
		<comments>http://unlearningmath.com/2009/02/27/notes-on-lookup-another-sieve-for-the-collatz-problem/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 10:12:39 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[extending patterns]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[recurrence relationship]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[sieve]]></category>

		<guid isPermaLink="false">http://bertspeelpenning.wordpress.com/?p=663</guid>
		<description><![CDATA[This post is a follow-up on an earlier post in which I introduced the Collatz Problem and designed a sieve that systematically builds solutions and is very efficient in the work it does.  In this post, I&#8217;ll give a version of a sieve that is more straightforward, though perhaps not as efficient.  First, let&#8217;s restate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=663&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is a follow-up on <a href="http://bertspeelpenning.wordpress.com/2009/02/22/notes-on-lookup-a-sieve-for-the-collatz-problem/">an earlier post</a> in which I introduced the Collatz Problem and designed a <em>sieve</em> that systematically builds solutions and is very efficient in the work it does.  In this post, I&#8217;ll give a version of a sieve that is more straightforward, though perhaps not as efficient.  First, let&#8217;s restate the Collatz Problem:</p>
<p><span style="color:#003366;">Each counting number n past 1 is assigned a successor number, as follows:<br />
<img class="latex" title="successor[n] = \begin{cases}3n+1 &amp; \text{if n is odd} \\ n/2 &amp; \text{if n is even} \end{cases} " src="http://l.wordpress.com/latex.php?latex=successor%5Bn%5D+%3D+%5Cbegin%7Bcases%7D3n%2B1+%26+%5Ctext%7Bif+n+is+odd%7D+%5C%5C+n%2F2+%26+%5Ctext%7Bif+n+is+even%7D+%5Cend%7Bcases%7D+&amp;bg=ffffff&amp;fg=000000&amp;s=0" alt="successor[n] = \begin{cases}3n+1 &amp; \text{if n is odd} \\ n/2 &amp; \text{if n is even} \end{cases} " /><br />
The number “1″ is considered home, and when you’re home, you stop.  If you start at a given number away from home, and cycle through its successors, you may end up home.  Is there any starting number from which you will not eventually reach home?</span></p>
<p>When playing with a starting value of 6, we found that the travel path took us to 3, to 10, to 5, to 16, to 8, to 4, to 2, and finally to 1.  We observed that in finalizing this path from 6 to 1, we have also solved the path from 3 to 1, and the path from 10 to 1 and so on.  The sieve we introduce in this post will take full advantage of this observation.  Unlike the sieve in the prior post, this sieve will work essentially forward.</p>
<p>First, we decide how big the sieve is going to be.  For our examle, we will make the sieve size 16.  Each cell in the sieve will have two numbers and a marker.  The marker can have the following values &#8220;not visited&#8221;, which we will represent by a blank; &#8220;tentative&#8221;, represented by a &#8220;-&#8221;; &#8220;succeed&#8221;, represented by a &#8220;+&#8221;, and &#8220;fail&#8221;, represented by a &#8220;≠&#8221;.  A typical transition will be from blank to tentative to succeed (&#8220;-&#8221; to &#8220;+&#8221;); sometimes it will be from tentative to fail (&#8220;-&#8221; to &#8220;≠&#8221;).  Below are a series of snapshots:</p>
<p><img class="aligncenter size-full wp-image-666" title="collatz-forward-sieve-1" src="http://bertspeelpenning.files.wordpress.com/2009/02/collatz-forward-sieve-11.jpg?w=600&h=462" alt="collatz-forward-sieve-1" width="600" height="462" /></p>
<p>The first snapshot is how we start out: all cells are marked &#8220;unvisited&#8221; (blank) except for the first cell, which is completed as &#8220;succeed&#8221;.  In each step, we look for an unvisited cell and then do a sweep.  The second snapshot shows what happens when we visit cell 2.    When we visit cell 2 we mark it as &#8220;tentative&#8221;, and then do a sweep by marking its successors, in turn, as tentative as well.  As we do this, we keep a running count of how many cells we mark tentative this way.  The &#8220;tentative&#8221; sweep ends in one of two ways.  One, we encounter a cell already marked &#8220;succeed&#8221;.  If so, we do a final sweep, starting at the same cell (here marked in red).  In the final succeed sweep, we mark all the cells &#8220;succeed&#8221; and fill in the time slot.  We have the information we need for filling in the time slot: we add our count of tentative markings to  the time value we found in the &#8220;succeed&#8221; cell we ran into.  For each successor cell we decrease the time value, till we bump into the cell already marked as succeed.  The third snapshot shows the result of the final succeed sweep for 2.</p>
<p>We now visit the first unvisited cell, which is cell 3, and mark it &#8220;tentative&#8221;.  Similarly, we mark its successors as tentative, marking 10, 5, 16, 8 and 4 this way.  Our running count indicates we have marked 6 cells as tentative.  The next successor cell, 2, is already marked &#8220;succeed&#8221;.  So we can now do a final succeed sweep, starting at 3.  The time slot for 3 will be filled in as 8, the sum of our running count of 6 and the value we found in the &#8220;succeed&#8221; cell of 2.</p>
<p>The fourth snapshot shows the result of the final succeed sweep for 3.  This sweep visits the same values, and in the same order, as the tentative sweep, always going from a value to its successor.  We can stop this sweep when it arrives at a cell already marked as &#8220;succeed&#8221;.</p>
<p><img class="aligncenter size-full wp-image-667" title="collatz-forward-sieve-2" src="http://bertspeelpenning.files.wordpress.com/2009/02/collatz-forward-sieve-2.jpg?w=600&h=276" alt="collatz-forward-sieve-2" width="600" height="276" /></p>
<p>After visiting 6, both the tentative sweep and the final sweep, the result looks like the first snapshot above.  Something new happens when we visit 7, mark it tentative, and mark its successors.  Here, we encounter the case where the successor does not lie inside of the sieve that we constructed.  The successor of 7, 22, is outside the sieve&#8217;s range of 1 through 16.  In this case, we do a final &#8220;fail&#8221; sweep, starting at 7.  A &#8220;fail&#8221; sweep works just like a &#8220;succeed&#8221; sweep, except we mark the cell as &#8220;fail&#8221; and don&#8217;t bother with the time slot.  The last snapshot above shows the result of this.</p>
<p>The snapshot below shows the result of continuing this process till all cells in the sieve have been visited and swept:</p>
<p><img class="aligncenter size-full wp-image-668" title="collatz-forward-sieve-3" src="http://bertspeelpenning.files.wordpress.com/2009/02/collatz-forward-sieve-3.jpg?w=600&h=102" alt="collatz-forward-sieve-3" width="600" height="102" /></p>
<p>Note, first of all, that marking a cell as &#8220;fail&#8221; doesn&#8217;t mean we&#8217;ve found a counter example to the Collatz question.  Instead, it merely indicates our sieve wasn&#8217;t big enough to settle the issue.  Note, second, that we paid for the relative straightforwardness of this sieve&#8217;s forward actions by needing to do a final sweep to ratify and record the result of the tentative sweep.  This is true both in case the tentative sweep succeeds and when it fails.  Note, third, that compared to the predecessor sieve we showed in the earlier post, this sieve is easier to extend.  If after completing the size 16 sieve I decide I want to complete a size 1000 sieve, I could start with the completed size 16 sieve and simple erase all the fail markers: all the succeed markers can be left in place.</p>
<p>Isn&#8217;t it interesting that two such very different sieve processes both serve to construct travel paths home for a range of starting points?  In the process, they have revealed a number of key characteristics of sieve processes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/663/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=663&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2009/02/27/notes-on-lookup-another-sieve-for-the-collatz-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>

		<media:content url="http://l.wordpress.com/latex.php?latex=successor%5Bn%5D+%3D+%5Cbegin%7Bcases%7D3n%2B1+%26+%5Ctext%7Bif+n+is+odd%7D+%5C%5C+n%2F2+%26+%5Ctext%7Bif+n+is+even%7D+%5Cend%7Bcases%7D+&#38;bg=ffffff&#38;fg=000000&#38;s=0" medium="image">
			<media:title type="html">successor[n] = \begin{cases}3n+1 &#38; \text{if n is odd} \\ n/2 &#38; \text{if n is even} \end{cases} </media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2009/02/collatz-forward-sieve-11.jpg" medium="image">
			<media:title type="html">collatz-forward-sieve-1</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2009/02/collatz-forward-sieve-2.jpg" medium="image">
			<media:title type="html">collatz-forward-sieve-2</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2009/02/collatz-forward-sieve-3.jpg" medium="image">
			<media:title type="html">collatz-forward-sieve-3</media:title>
		</media:content>
	</item>
		<item>
		<title>Notes on Lookup &#8211; Histograms as Sieves</title>
		<link>http://unlearningmath.com/2009/02/25/notes-on-lookup-histograms-as-sieves/</link>
		<comments>http://unlearningmath.com/2009/02/25/notes-on-lookup-histograms-as-sieves/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 04:12:02 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[denominations]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[math class]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[sieve]]></category>
		<category><![CDATA[sorting]]></category>

		<guid isPermaLink="false">http://bertspeelpenning.wordpress.com/?p=641</guid>
		<description><![CDATA[I think I overlooked one interesting example of something like a sieve being used in the typical K-12 math curriculum, and this post is intended to remedy that.  It is possible and instructive to look at a histogram as a sieve. Let&#8217;s suppose I have a folder of test sheets from a standardized test.  Each [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=641&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think I <a href="http://bertspeelpenning.wordpress.com/2009/02/22/notes-on-lookup-computation-versus-lookup-in-school/">overlooked</a> one interesting example of something like a <a href="http://bertspeelpenning.wordpress.com/2009/02/21/notes-on-lookup-eratosthenes-and-other-sieves/">sieve</a> being used in the typical K-12 math curriculum, and this post is intended to remedy that.  It is possible and instructive to look at a histogram as a sieve.</p>
<p>Let&#8217;s suppose I have a folder of test sheets from a standardized test.  Each piece of paper in the folder is from a particular student, and is marked with a score from 0-20.  On a long table, I make room for 21 stacks of test sheets, side by side, by putting down yellow stickies each marked with one of the possible scores from low to high.  I then take the test sheets, one by one, and place them in the stack corresponding with the score on the sheet.  If Jesse&#8217;s sheet is marked with score 15, that sheet will go on the stack labeled 15 on the yellow sticky.  When I&#8217;m done placing all the test sheets, I end up with a number of stacks of varying heights &#8211; and some stacks may be empty.  Below is a <em>representation </em>for what I ended up with:</p>
<p><img class="aligncenter size-full wp-image-660" title="histogram" src="http://bertspeelpenning.files.wordpress.com/2009/02/histogram3.jpg?w=600" alt="histogram"   /></p>
<p>The usual name for this representation is <em>histogram</em>.  My highest stack had eight test sheets in it, for score 15.  Score 10&#8242;s stack was empty.  Jesse&#8217;s sheet is somewhere in the 15 stack, but my representation doesn&#8217;t show where in the stack it is.  Each box in my representation could have been marked with the student&#8217;s name, but I didn&#8217;t do that.  As with any representation, this representation highlights certain information and leaves out other information altogether.  One thing left out is the name of the student, another thing is any information on the order in which the sheets were in the original folder.  If I had shuffled the sheets in the folder, the representation as shown would have been identical.</p>
<p>What information can we extract from these representations?  Quite a bit, actually.  Some are simple and some are useful.  A simple thing we can see from the representation is that nobody had a score of 10, nor a score of 11.  Of course, neither the histogram representation, nor the stacks of sheets with the yellow sticky was critical to finding this out.  I could have answered the question &#8220;how many students have a score of 10?&#8221; by flipping through the entire stack of sheets and counting the ones that have a score of 10.  If that was the sole thing I cared about, it might even have been a bit faster and simpler doing it that way.  Yet, after I answered the question &#8220;how many 10&#8242;s?&#8221; I would have had to do the same amount of work all over again if there was a follow-up question; &#8220;how many students have a score of 20?&#8221;</p>
<p>One side effect of putting the test sheets in stacks based on their score is that we have now effectively sorted them by score.  If we were to put them all back in a single stack again, by collecting the individual stacks in score-order, the resulting stack is sorted by score.  If I divide the sorted stack in half, I&#8217;ve located the middle value (called <em>median</em> &#8211; though median is a technical term, and I have left out the <a href="http://en.wikipedia.org/wiki/Median">precise rules</a> for what to do when the number of sheets in the stack is even, and what to do if it&#8217;s odd.)  If I divide the sorted stack in five equal parts, I get the quintiles, if I divide the sorted stack in four equal parts, I get the quartiles.</p>
<p>The histogram also allows me to answer questions like &#8220;what percentage of students scored 16 or above?&#8221;  All of those questions could have been answered from the original pile of test sheets, but the histogram makes it more straightforward.</p>
<p>The process of getting the histogram has clear parallels with the various sieves I&#8217;ve shown in earlier posts.  Enough so, that my claim that sieves and look-up tables don&#8217;t have much support in the K-12 curriculum was too hasty.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/641/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=641&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2009/02/25/notes-on-lookup-histograms-as-sieves/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>

		<media:content url="http://bertspeelpenning.files.wordpress.com/2009/02/histogram3.jpg" medium="image">
			<media:title type="html">histogram</media:title>
		</media:content>
	</item>
		<item>
		<title>Notes on Lookup &#8211; Computation versus Lookup in School</title>
		<link>http://unlearningmath.com/2009/02/22/notes-on-lookup-computation-versus-lookup-in-school/</link>
		<comments>http://unlearningmath.com/2009/02/22/notes-on-lookup-computation-versus-lookup-in-school/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 09:23:06 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[extending patterns]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[math class]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[reverse engineering]]></category>

		<guid isPermaLink="false">http://bertspeelpenning.wordpress.com/?p=583</guid>
		<description><![CDATA[In the previous post, I played with sieves some more.  Sieves are a device for getting something calculated.  At least since Eratosthenes, 2200 years ago, this simple and illustrative tool has been part of mathematics.  Yet you don&#8217;t see sieves mentioned much in the K-12 math curriculum.  I&#8217;m not suggesting there is any evil design [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=583&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the previous post, I played with <a href="http://bertspeelpenning.wordpress.com/2009/02/21/notes-on-lookup-eratosthenes-and-other-sieves/">sieves</a> some more.  Sieves are a device for getting something calculated.  At least since Eratosthenes, 2200 years ago, this simple and illustrative tool has been part of mathematics.  Yet you don&#8217;t see sieves mentioned much in the K-12 math curriculum.  I&#8217;m not suggesting there is any evil design here, nor do I suspect any anti-sieve bias &#8211; I think we are simply seeing the side effects of a pendulum swinging away from printed look-up tables of any sort.</p>
<p>If you look today for the kind of look-up tables that in the past were a mainstay of K-12 math textbooks: reference tables in the back of the book, you will see very little.  In high school textbooks, you might still find small tables for sin, cosine and tangent, perhaps for logarithms.  In earlier grades, you might find a list of prefixes for the metric system, like milli- and Mega- and nano-, with explanations how big or how little each is.  You are unlikely to find, at any grade level, a simple multiplication table shown for reference purposes.  Instead, the multiplication table is assumed to be committed to memory.</p>
<p>In contrast, textbooks half a century ago would pay great attention to look-up tables.  Even if an extensive logarithm table wasn&#8217;t part of the reference section of the textbook, it would be published separately and used by students.  Yet the textbook would have a section on how to use such tables.  Look-up tables weren&#8217;t considered a crutch &#8211; they were considered the real thing.  There would likely also have been tables for square roots, cube roots, reciprocals, and lots of other stuff.</p>
<p>It&#8217;s fairly easy to justify why all that stuff is gone or de-emphasized, and that is the availability of calculators and computers that can quickly do the calculations that once were the domain of those look-up tables.  Why sift through pages of tables to find the cosine of 79 degrees if you can find out with a few keystrokes on your scientific calculator or spreadsheet?  Those vestigial log and trig tables that I did see in the high school textbook appendices seem disconnected from anything students or teachers do.</p>
<p>Other look-up tables, not math related, are also their way out.  Every year several phone books, white pages and yellow pages, are dumped on our doorstep and we turn right around and put them in the recycling bin.  It&#8217;s been over a decade since I&#8217;ve looked up a number in a paper phone book.  And when is the last time that you looked up a word in a paper dictionary or a paper encyclopedia?  Or a quote in a book of quotes?</p>
<p>And yet it is clear that the issue is paper, not look-up.  What is Google other than superbly organized look-up?  Google Maps, Google Earth, Google News, iTunes music downloads: all look-up.  The face of look-up has changed.  Instead of a person flipping pages, look-up now happens behind the screen.  Who knows or cares what&#8217;s happening behind that screen, it is somehow doing the look-up, not you.</p>
<p>For many centuries, there has been a trade-off in mathematics and engineering between calculation and look-up.  More look-up meant you needed to do less calculation, and less look-up meant more calculation.  The trade-off shifted back and forth dependent on the cost of producing tables, and the cost of computation.  Publishing tables only took off when paper became relatively inexpensive.  Napier, around 1614, published extensive logarithm tables, which took years of <a href="http://bertspeelpenning.wordpress.com/2009/01/06/napiers-logs/">hard work</a> to complete.  Such tables saved generations of engineers time and errors in doing calculations.  The earliest computing machinery, mechanical and later electronic, was very expensive and included almost no storage capacity whatever &#8211; just enough for the two numbers to be added and their sum.  When addressable storage became feasible &#8211; still extremely expensive &#8211; we saw the rise of stored-program digital computers and the use of look-up tables became possible again, but now under the covers of the machine.  With a modern calculator such as a TI-84, you&#8217;d have a hard time finding out to what extent the calculator is relying on table look-up internally for it to calculate any of its functions.  Same with computers &#8211; not too many years ago, a three-dimensional role playing game might pre-compute the look of your avatar at a number of different angles, e.g. in 15 degree intervals, and only ever show your character at those angles.  Trade-offs between the cost and speed of computing versus the cost and capacity of the various hierarchies of storage continue to shift back and forth with interesting consequences: the iPod only became feasible after massive storage capacity became small, cheap, fast, and yet would keep its content even with power turned off.</p>
<p>There is rich and interesting mathematics involved both in creating look-up tables, and in using them.  This mathematics highlights the computational structure of numbers and operations.  Much of it can be introduced in grade-appropriate forms throughout K-12.  I intend to share my thinking about this in future posts.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/583/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=583&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2009/02/22/notes-on-lookup-computation-versus-lookup-in-school/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>
	</item>
		<item>
		<title>Notes on Lookup &#8211; Eratosthenes and Other Sieves</title>
		<link>http://unlearningmath.com/2009/02/21/notes-on-lookup-eratosthenes-and-other-sieves/</link>
		<comments>http://unlearningmath.com/2009/02/21/notes-on-lookup-eratosthenes-and-other-sieves/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 02:38:03 +0000</pubDate>
		<dc:creator>Bert Speelpenning</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[extending patterns]]></category>
		<category><![CDATA[look-up]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[recurrence relationship]]></category>
		<category><![CDATA[reverse engineering]]></category>
		<category><![CDATA[sieve]]></category>

		<guid isPermaLink="false">http://bertspeelpenning.wordpress.com/?p=553</guid>
		<description><![CDATA[The best known sieve in mathematics is the sieve of Eratosthenes, used for finding a collection of prime numbers.  In an earlier post I described a version of that sieve that finds all divisors (and not just whether a number is prime, though it finds primes also.) There are many kinds of sieves, and we&#8217;ll [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=553&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The best known <em>sieve</em> in mathematics is the <a href="http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes">sieve of Eratosthenes</a>, used for finding a collection of prime numbers.  In an <a href="http://bertspeelpenning.wordpress.com/2009/01/27/notes-on-divisibility-eratosthenes-and-euclid/">earlier post</a> I described a version of that sieve that finds all divisors (and not just whether a number is prime, though it finds primes also.)</p>
<p>There are many kinds of sieves, and we&#8217;ll see one later in this post.  The essential characteristic of a sieve, from where I look, is that it reverses direction.  Instead of doing a tricky determination for a single number, like finding out if a number is prime, we do a larger number of easy, systematic, steps, and collect the results in a look-up table.  The results we get not only tell us if the specific number we cared about is prime, but also gives us all the smaller primes.  If we want multiple primes, this look-up approach is quite efficient.  Look-up tables have many uses beyond sieves, but in this post we&#8217;ll stick to sieves.</p>
<p>Let&#8217;s introduce a new term, &#8220;final odd&#8221;, and give it a particular meaning.  We&#8217;ll say that the &#8220;final odd&#8221; of 20 is 5.  How you get the final odd is to cut the number in half repeatedly, until you get to an odd number.  If the number is odd to start with, you don&#8217;t need to do anything.   Sounds simple enough, right?  If we start with 48, you would proceed to cut it in half repeatedly, getting 24, 12, 6 and finally 3.  If this thing we&#8217;ve called &#8220;final odd&#8221; is something you needed a lot, it might make sense to make a look-up table.  Let&#8217;s assume we&#8217;ve been working on this look-up table, and have gotten this far:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Bmatrix%7D+1+%26+2+%26+3+%26+4+%26+5+%26+6+%26+7+%26+8++%5C%5C+1+%26+1+%26+3+%26+1+%26+5+%26+3+%26+7+%26++%5Ctext%7B%3F%7D+%5Cend%7Bmatrix%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92; 1 &amp; 1 &amp; 3 &amp; 1 &amp; 5 &amp; 3 &amp; 7 &amp;  &#92;text{?} &#92;end{matrix} ' title='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92; 1 &amp; 1 &amp; 3 &amp; 1 &amp; 5 &amp; 3 &amp; 7 &amp;  &#92;text{?} &#92;end{matrix} ' class='latex' /></p>
<p>and we now need to fill in the entry for 8 and onward.  We know how to calculate the final odd for 8: the sequence we calculate is 8, 4, 2, and 1.  But everything after the first step of calculating 4 is a repetition of what we already did to find the final odd of 4, and the result of all that work is already in the table.  As you can see, this will apply generally: with the look-up table, you never need to do more than one step of cutting the number in half.</p>
<p><img src='http://s0.wp.com/latex.php?latex=finalOdd%5Bn%5D+%3D+%5Cbegin%7Bcases%7Dn+%26+%5Ctext%7Bif+n+is+odd%7D+%5C%5C+finalOdd%5Bn%2F2%5D+%26+%5Ctext%7Bif+n+is+even%7D+%5Cend%7Bcases%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='finalOdd[n] = &#92;begin{cases}n &amp; &#92;text{if n is odd} &#92;&#92; finalOdd[n/2] &amp; &#92;text{if n is even} &#92;end{cases} ' title='finalOdd[n] = &#92;begin{cases}n &amp; &#92;text{if n is odd} &#92;&#92; finalOdd[n/2] &amp; &#92;text{if n is even} &#92;end{cases} ' class='latex' /></p>
<p>But we can improve on this even more, and make it into a real sieve.  For this, we determine upfront the size of the table we are going to fill in.   We&#8217;re only showing a table with 8 entries, but you can easily extend this to be longer.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Bmatrix%7D+1+%26+2+%26+3+%26+4+%26+5+%26+6+%26+7+%26+8++%5C%5C++%5Ctext%7B%3F%7D+%26++%26++%26++%26++%26++%26++%26++%5Cend%7Bmatrix%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92;  &#92;text{?} &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &#92;end{matrix} ' title='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92;  &#92;text{?} &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &#92;end{matrix} ' class='latex' /></p>
<p>We find the first unmarked entry, and then do a <em>sweep</em> based on that.  Here, the first unmarked entry is 1, and we can fill in its entry.  We can now repeatedly double the number, and give it the same entry.  This gives</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Bmatrix%7D+1+%26+2+%26+3+%26+4+%26+5+%26+6+%26+7+%26+8++%5C%5C++1+%26+1+%26++%26+1+%26++%26++%26++%26+1+%5Cend%7Bmatrix%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92;  1 &amp; 1 &amp;  &amp; 1 &amp;  &amp;  &amp;  &amp; 1 &#92;end{matrix} ' title='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92;  1 &amp; 1 &amp;  &amp; 1 &amp;  &amp;  &amp;  &amp; 1 &#92;end{matrix} ' class='latex' /></p>
<p>We repeat this process for what&#8217;s now the first unmarked entry, the third entry.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Bmatrix%7D+1+%26+2+%26+3+%26+4+%26+5+%26+6+%26+7+%26+8++%5C%5C++1+%26+1+%26++3+%26+1+%26++%26+3+%26++%26+1+%5Cend%7Bmatrix%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92;  1 &amp; 1 &amp;  3 &amp; 1 &amp;  &amp; 3 &amp;  &amp; 1 &#92;end{matrix} ' title='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8  &#92;&#92;  1 &amp; 1 &amp;  3 &amp; 1 &amp;  &amp; 3 &amp;  &amp; 1 &#92;end{matrix} ' class='latex' /></p>
<p>The last two sweeps are easy, and complete the table:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Bmatrix%7D+1+%26+2+%26+3+%26+4+%26+5+%26+6+%26+7+%26+8+%5C%5C+1+%26+1+%26+3+%26+1+%26+5+%26+3+%26+7+%26+1+%5Cend%7Bmatrix%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &#92;&#92; 1 &amp; 1 &amp; 3 &amp; 1 &amp; 5 &amp; 3 &amp; 7 &amp; 1 &#92;end{matrix} ' title='&#92;begin{matrix} 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &#92;&#92; 1 &amp; 1 &amp; 3 &amp; 1 &amp; 5 &amp; 3 &amp; 7 &amp; 1 &#92;end{matrix} ' class='latex' /></p>
<p>Note that we ended up with the same lookup table as before, but without having to do any divison.  We didn&#8217;t even have to do multiplication, just doubling, which we could do by adding a number to itself.  Also note that in this case, we didn&#8217;t particularly make use of the values in the table while building the table.  The only use we had for the values when we were building the table is to find the first entry in the table that hadn&#8217;t been filled in yet.  Some sieves depend both on the values previously stored in the table and on finding unmarked entries.  We&#8217;ll see an example of that in a post soon.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bertspeelpenning.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bertspeelpenning.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bertspeelpenning.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bertspeelpenning.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bertspeelpenning.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bertspeelpenning.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bertspeelpenning.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bertspeelpenning.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bertspeelpenning.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bertspeelpenning.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bertspeelpenning.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bertspeelpenning.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bertspeelpenning.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bertspeelpenning.wordpress.com/553/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=unlearningmath.com&#038;blog=5951213&#038;post=553&#038;subd=bertspeelpenning&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://unlearningmath.com/2009/02/21/notes-on-lookup-eratosthenes-and-other-sieves/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d3c9b59b905ea20e7394130345ac717?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kweetal</media:title>
		</media:content>
	</item>
	</channel>
</rss>
