<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: hash tables are as delicious as a pretty nice steak</title>
	<atom:link href="http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/feed/" rel="self" type="application/rss+xml" />
	<link>http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/</link>
	<description>jim reardon (from joliet / shorewood, illinois, and former microsoft intern guy)</description>
	<lastBuildDate>Mon, 12 Sep 2011 02:53:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: eviljim</title>
		<link>http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/comment-page-1/#comment-3995</link>
		<dc:creator>eviljim</dc:creator>
		<pubDate>Fri, 16 Mar 2007 00:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/#comment-3995</guid>
		<description>A hash is basically just an array, except it&#039;s indexed by anything (instead of just a number).  It provides quick lookup time too.

So, for example, if you have a list of people and their addresses, you could have a hash where

&quot;bob&quot; -&gt; &quot;123 west st&quot;
&quot;sam&quot; -&gt; &quot;234 west st&quot;
&quot;julie&quot; -&gt; &quot;123 west st&quot; # shacking up with bob.  sinner.

So the advantage is if you want bob&#039;s address, you just say $hash{&quot;bob&quot;}, and there you have it.  (Lookup time here is constant, no matter the size of the hash, as opposed to other data structures where you might spend more time finding the entry for &quot;bob&quot;).

The thing is, since it&#039;s not stored in numerical order (like an array, where you have a first element, second element, etc...) there&#039;s no real concept of &quot;what is the 2nd item?&quot;</description>
		<content:encoded><![CDATA[<p>A hash is basically just an array, except it&#8217;s indexed by anything (instead of just a number).  It provides quick lookup time too.</p>
<p>So, for example, if you have a list of people and their addresses, you could have a hash where</p>
<p>&#8220;bob&#8221; -> &#8220;123 west st&#8221;<br />
&#8220;sam&#8221; -> &#8220;234 west st&#8221;<br />
&#8220;julie&#8221; -> &#8220;123 west st&#8221; # shacking up with bob.  sinner.</p>
<p>So the advantage is if you want bob&#8217;s address, you just say $hash{&#8220;bob&#8221;}, and there you have it.  (Lookup time here is constant, no matter the size of the hash, as opposed to other data structures where you might spend more time finding the entry for &#8220;bob&#8221;).</p>
<p>The thing is, since it&#8217;s not stored in numerical order (like an array, where you have a first element, second element, etc&#8230;) there&#8217;s no real concept of &#8220;what is the 2nd item?&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/comment-page-1/#comment-3994</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 16 Mar 2007 00:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/#comment-3994</guid>
		<description>Alright, I looked up &quot;hash table&quot; on wikipedia just so I could understand what your post is about.  All it did was reconfirm my ineptitude for computer programming.  I could stare at that explanation for hours and I still won&#039;t understand why the existance of a hash table is neccessary.</description>
		<content:encoded><![CDATA[<p>Alright, I looked up &#8220;hash table&#8221; on wikipedia just so I could understand what your post is about.  All it did was reconfirm my ineptitude for computer programming.  I could stare at that explanation for hours and I still won&#8217;t understand why the existance of a hash table is neccessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/comment-page-1/#comment-3983</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 15 Mar 2007 04:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://eviljim.com/archives/2007/03/hash-tables-are-as-delicious-as-a-pretty-nice-steak/#comment-3983</guid>
		<description>You&#039;ve really narrowed your audience since moving to Google.</description>
		<content:encoded><![CDATA[<p>You&#8217;ve really narrowed your audience since moving to Google.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

