<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: hashed table or binary search on sorted table ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283401#M497309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      Hashtable is better as you always access it using the KEY, where as SORT and BINARY SEARCH is not always going to give you the results there can be scenario's were your search may not find the record you are looking for when you use SORT and Binary Search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regrds,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 07:59:54 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-05-14T07:59:54Z</dc:date>
    <item>
      <title>hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283396#M497304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a quick question: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is faster/ more performant ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort a table and then do a binary search on it  or define the internal table as hashed table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 07:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283396#M497304</guid>
      <dc:creator>former_member5350</dc:creator>
      <dc:date>2007-05-14T07:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283397#M497305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort a table and do a binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 07:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283397#M497305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T07:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283398#M497306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining table as Hashed is more Faster but you get issues in creating a Hased table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better use standard internal table and sort it and read via Binary search..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope most of the development uses the above criteria..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 07:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283398#M497306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T07:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283399#M497307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define an internal table as Hash table is always gives more performance than SORTing the internal table with BINARY SEARCH option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT statement will take time on internal table and BINARY SEARCH will get an entry in log n time where n is the no of entries in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Hashed table, each entry will be stored and picked up by using an Hash key. Hashing is always the faster than BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Hash key is generated by using Hash algorithm. You can find difference when you had huge volume of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 07:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283399#M497307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T07:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283400#M497308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hashed table will be a better choice as it will map the key directly and the time required to get the particular key value remains constant.&lt;/P&gt;&lt;P&gt;But in Binary search the situation is different.&lt;/P&gt;&lt;P&gt;In this the time to get the key value is not constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 07:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283400#M497308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T07:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283401#M497309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      Hashtable is better as you always access it using the KEY, where as SORT and BINARY SEARCH is not always going to give you the results there can be scenario's were your search may not find the record you are looking for when you use SORT and Binary Search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regrds,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 07:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283401#M497309</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-05-14T07:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283402#M497310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hash tables use an algorithm that defines all the entries in the internal table as a unique record. Thus searching for any record takes the same time (constant time) irrespective of the size of the table. Hash tables are the most efficient way (better than standard tables with binary search or sorted tables) to search for records in very large tables using a Key. The disadvantage is that the you cannot use INDEX to retreive data from this table (you cannot say READ TABLE itab INDEX &amp;lt;record number&amp;gt; or MODIFY itab INDEX &amp;lt;record number&amp;gt; TRANSPORTING &amp;lt;field list&amp;gt; for example). You can use Hash tables only if you are absolutely sure that you are not going to use the INDEX clause. As long as your records have a unique key(s), using hash table will give you a huge performance gain when dealing with large dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 14:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283402#M497310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T14:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283403#M497311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Buddy...,&lt;/P&gt;&lt;P&gt;you can justify this answer based on &amp;lt;b&amp;gt;onlyyy volume of data(number of records) in your internal table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;if you have low volume of data go for Sorted table which is faster then hash table, if you have relatively high amount of data go for hashed table...,&lt;/P&gt;&lt;P&gt;hope you are clear now.., reward me if helpfull.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 06:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283403#M497311</guid>
      <dc:creator>harishaginati</dc:creator>
      <dc:date>2007-05-15T06:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: hashed table or binary search on sorted table ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283404#M497312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Clemens&lt;/P&gt;&lt;P&gt;                Hashed table is good always...This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Prog: This does nothing.  &lt;/P&gt;&lt;P&gt;REPORT Z_1 .  &lt;/P&gt;&lt;P&gt;tables: mara.  &lt;/P&gt;&lt;P&gt;data: i type hashed table of mara with unique key matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IT PLEASE...!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hashed-table-or-binary-search-on-sorted-table/m-p/2283404#M497312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:24:06Z</dc:date>
    </item>
  </channel>
</rss>

