<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'What is the difference between HASH TABLE and ARRAY' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'What is the difference between HASH TABLE and ARRAY' posted on the 'ASP.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 07:50:51 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 07:50:51 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>What is the difference between HASH TABLE and ARRAY</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/314506/314506/what-is-the-difference-between-hash-table-and-array/</link>
      <description>WHat is the difference between a Hash Table and array ??&lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
arunlal&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/314506/314506/what-is-the-difference-between-hash-table-and-array/</guid>
      <pubDate>Wed, 07 Sep 2005 04:38:02 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: What is the difference between HASH TABLE and ARRAY</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/314506/314514/re-what-is-the-difference-between-hash-table-and-array/#314514</link>
      <description>: WHat is the difference between a Hash Table and array ??&lt;br /&gt;
: &lt;br /&gt;
: regards&lt;br /&gt;
: arunlal&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
An array is a collection of data, where each data item (element) has to be the the same data type. Array elements are allocated consecutively in the same memory space and are indexed via an integer index.&lt;br /&gt;
&lt;br /&gt;
Creating a VB Array:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim names(1) As String

names(0) = "John Doe"
names(1) = "Jane Doe"
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This is an array of strings. You can create an array of any object ...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim arr(20) As CustomObject
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Indexing an array ...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
' Writes: Hello Jane Doe
Response.Write("Hello " &amp;amp; names(1))
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Hash table is a data structure that provides lookup semantics via an object key. Typically the key is a string, however under .NET, it can be any Object and particualy objects that provide a decent override of the Base Objects GetHashCode() function. A hash code is an algorithically generated id that should make an object key distinct.&lt;br /&gt;
&lt;br /&gt;
Creating a hashtable:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim lookup As New HashTable()

lookup("NY") = "New York"
lookup("PA") = "Pennsylvania"
' ...
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
In this example, "NY" and "PA" are the lookup keys, while the items after the equal sign are the values to store.&lt;br /&gt;
&lt;br /&gt;
Using the hashtable ...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
' Writes: I am from New York
Response.Write("I am from " &amp;amp; lookup("NY").ToString())
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
There is really more to these data structures than the basic descriptions I am giving you.&lt;br /&gt;
&lt;br /&gt;
For instance under .NET, arrays are objects that derive from the base Array class and implement IEnumerable so that array elements can be enumerated with a For-Each loop.&lt;br /&gt;
&lt;br /&gt;
Hash tables hold a collection of DictionaryEntry objects, where a DictionaryEntry holds the Key along with its value.&lt;br /&gt;
&lt;br /&gt;
You really have to read more into this online.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/314506/314514/re-what-is-the-difference-between-hash-table-and-array/#314514</guid>
      <pubDate>Wed, 07 Sep 2005 06:21:15 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: What is the difference between HASH TABLE and ARRAY</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/314506/314583/re-what-is-the-difference-between-hash-table-and-array/#314583</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by aarunlal at  2005-9-7 22:44:15&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
Thnak u very much Mr.iwilld0it ..&lt;br /&gt;
&lt;br /&gt;
Can you send some good urls regarding this ..&lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
Arunlal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: : WHat is the difference between a Hash Table and array ??&lt;br /&gt;
: : &lt;br /&gt;
: : regards&lt;br /&gt;
: : arunlal&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: An array is a collection of data, where each data item (element) has to be the the same data type. Array elements are allocated consecutively in the same memory space and are indexed via an integer index.&lt;br /&gt;
: &lt;br /&gt;
: Creating a VB Array:&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: Dim names(1) As String
: 
: names(0) = "John Doe"
: names(1) = "Jane Doe"
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: This is an array of strings. You can create an array of any object ...&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: Dim arr(20) As CustomObject
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: Indexing an array ...&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: ' Writes: Hello Jane Doe
: Response.Write("Hello " &amp;amp; names(1))
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: Hash table is a data structure that provides lookup semantics via an object key. Typically the key is a string, however under .NET, it can be any Object and particualy objects that provide a decent override of the Base Objects GetHashCode() function. A hash code is an algorithically generated id that should make an object key distinct.&lt;br /&gt;
: &lt;br /&gt;
: Creating a hashtable:&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: Dim lookup As New HashTable()
: 
: lookup("NY") = "New York"
: lookup("PA") = "Pennsylvania"
: ' ...
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: In this example, "NY" and "PA" are the lookup keys, while the items after the equal sign are the values to store.&lt;br /&gt;
: &lt;br /&gt;
: Using the hashtable ...&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: ' Writes: I am from New York
: Response.Write("I am from " &amp;amp; lookup("NY").ToString())
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: There is really more to these data structures than the basic descriptions I am giving you.&lt;br /&gt;
: &lt;br /&gt;
: For instance under .NET, arrays are objects that derive from the base Array class and implement IEnumerable so that array elements can be enumerated with a For-Each loop.&lt;br /&gt;
: &lt;br /&gt;
: Hash tables hold a collection of DictionaryEntry objects, where a DictionaryEntry holds the Key along with its value.&lt;br /&gt;
: &lt;br /&gt;
: You really have to read more into this online.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/314506/314583/re-what-is-the-difference-between-hash-table-and-array/#314583</guid>
      <pubDate>Wed, 07 Sep 2005 22:35:24 -0800</pubDate>
      <category>ASP.NET</category>
    </item>
  </channel>
</rss>
