<?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/1978296#M400564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have to use binary seach in internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 15:51:32 GMT</pubDate>
    <dc:creator>alex_m</dc:creator>
    <dc:date>2007-02-28T15:51:32Z</dc:date>
    <item>
      <title>Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978295#M400563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anybody tell me,&lt;/P&gt;&lt;P&gt;what is binary search and where can i use it. can i use it on database table or internal tables?&lt;/P&gt;&lt;P&gt;please suggest me&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978295#M400563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978296#M400564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have to use binary seach in internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978296#M400564</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-02-28T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978297#M400565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use it on internal tables with the READ statement and it can greatly increase the performance of the READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT TABLE ITAB ascending by FLD.
READ TABLE ITAB WITH KEY fld = 'SomeVaule' BINARY SEARCH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards.&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978297#M400565</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-02-28T15:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978298#M400566</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;u can use binary search only on Internal table. sorting the table before the binary search opn. is important&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978298#M400566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978299#M400567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BINARY SEARCH is used to improve the performance,&lt;/P&gt;&lt;P&gt;It is used on internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY NUMBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB with key number eq '25' BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose say ur itab has values from 1,2,3,4 ...................... 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you are searching for 25, What binary search will do is first it will search if 25 is there at top half of 50 values or bottom half,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25 will be at the top half of 50&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978299#M400567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978300#M400568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't know what a binary search (sometimes called a Binary chop) is then you really should not be writing ABAP code. Enter this into Google, or see some of Robert Knuth's books on indexing/access methods etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dr Sidewalk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 16:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978300#M400568</guid>
      <dc:creator>gary_king2</dc:creator>
      <dc:date>2007-02-28T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978301#M400569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;do you think that's the right answer???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 16:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978301#M400569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T16:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978302#M400570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1). The question had already been answered within the thread.&lt;/P&gt;&lt;P&gt;2). I gave the response to use Google to find the answer, therefore pointing to an alternative answer and also educating the person at the same time for such future queries. &lt;/P&gt;&lt;P&gt;3). This is supposed to be a technical forum area !!!&lt;/P&gt;&lt;P&gt;4). My statement about knowing what a Binary search is was a bit flippent I agree, but still true.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 10:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-search/m-p/1978302#M400570</guid>
      <dc:creator>gary_king2</dc:creator>
      <dc:date>2007-03-01T10:39:35Z</dc:date>
    </item>
  </channel>
</rss>

