<?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: binary search in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563165#M254574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. by default is linear search&lt;/P&gt;&lt;P&gt;2. binary search&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Sep 2006 06:56:02 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2006-09-08T06:56:02Z</dc:date>
    <item>
      <title>binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563163#M254572</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;what is the diff b/w &lt;/P&gt;&lt;P&gt;1. read table itab with key city = 'hyderabad'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. read table itab with key city = 'hyderabad' binary search.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 06:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563163#M254572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T06:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563164#M254573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the addition &amp;lt;b&amp;gt;BINARY SEA&amp;lt;/b&amp;gt;RCH is specified, the search is binary instead of linear. This considerably reduces the runtime of the search for larger tables (from approximately 100 entries upwards). For the binary search, the table must be sorted by the specified search key in ascending order. Otherwise the search will not find the correct row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 06:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563164#M254573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563165#M254574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. by default is linear search&lt;/P&gt;&lt;P&gt;2. binary search&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 06:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563165#M254574</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-09-08T06:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563166#M254575</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;the first one is slow in processing.&lt;/P&gt;&lt;P&gt;it will serach the whole table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second 1 is very faster. i recomment u to use that only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will search by using the INDEX, which is very faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any clarifiaction pls mail me.&lt;/P&gt;&lt;P&gt;pls reward points, if this helped u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anversha.&lt;/P&gt;&lt;P&gt;anversha.shahul@wipro.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 06:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563166#M254575</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-08T06:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563167#M254576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      the statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    Read table ... Binary search.&amp;lt;/b&amp;gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use binary search logic for reading the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using the binary search you must sort the table using field by which you are reading the table and you must sort in ascending order only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 06:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563167#M254576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T06:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563168#M254577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 . this search takes lot of time , it searches one by one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 . binary search is faster &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     suppose say there are 100 records in the internal table and you had written&lt;/P&gt;&lt;P&gt;   read table itab with key city = 'hyderabad' binary search. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   now it splits its search to 50 records and searches for H as Hyderabad starts with H whether it is in top 50 records or bottom 50 records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if it is in bottom 50 records , then again it will split to 25 each and searches for the next leeter and so on which simplifies the search&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 07:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563168#M254577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T07:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563169#M254578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;The prerequisite for 'Binary Search' to read record fastly is that the internal table has to be sorted by the same key with which we are reading the table.  Prior to READ statement, if there is no SORT statement with the same key as of read statements' key, Binary Search addition is of no use. It just acts like without binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 08:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563169#M254578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T08:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563170#M254579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this link,to know more about BINARY SEARCH with READ TABLE&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1085249"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 09:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563170#M254579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T09:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: binary search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563171#M254580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the most of them have explained the importance of using binary search as well as pre-requisities and default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would just like to add the algorithm for binary search so that it becomes more clear how the table is read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A binary search algorithm (or binary chop) is a technique for finding a particular value in a linear array, by ruling out half of the data at each step, widely but not exclusively used in computer science. A binary search finds the median, makes a comparison to determine whether the desired value comes before or after it, and then searches the remaining half in the same manner. A binary search is an example of a divide and conquer algorithm (more specifically a decrease and conquer algorithm). From the above it is very important to SORT the table otherwise it might be worse than linear search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 09:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1563171#M254580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T09:09:37Z</dc:date>
    </item>
  </channel>
</rss>

