‎2008 Mar 13 7:29 PM
‎2008 Mar 13 7:41 PM
Hi ,
If you mean to ask what should be written in code before the binary search statement.
Then I will like to mention that the table on which you are running the binary search for a field or so ,
should be sorted for that field.
Regards,
SureshP.
‎2008 Mar 13 7:41 PM
Hi ,
If you mean to ask what should be written in code before the binary search statement.
Then I will like to mention that the table on which you are running the binary search for a field or so ,
should be sorted for that field.
Regards,
SureshP.
‎2008 Mar 13 7:49 PM
Hi Satish,
Whenever you are set to do binary search , prerequisite is, do sort the table with the same key like the search key in the
read statement. It increases the performence as well gives you the correct results.
Thanks & Regards,
Siri.
‎2008 Mar 13 7:50 PM
PLS GIVE ME ONE EXAMPLE USING BINARY SEARCH PROGRAM CODE? MEANS EXPLAIN ME HOW IT WORKS?
‎2008 Mar 13 8:51 PM
Hi,
you need to know how the algorithm works.
See this link:
http://en.wikipedia.org/wiki/Binary_search_algorithm
You can use the search button to find a lot of samples about binary search! Try it!
Thanks,
RP