Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

for performence

Former Member
0 Likes
553

WHAT DO YOU DO BEFORE BINARY SEARCH ANALYSIS

1 ACCEPTED SOLUTION
Read only

former_member60316
Active Participant
0 Likes
539

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.

4 REPLIES 4
Read only

former_member60316
Active Participant
0 Likes
540

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.

Read only

Former Member
0 Likes
539

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.

Read only

Former Member
0 Likes
539

PLS GIVE ME ONE EXAMPLE USING BINARY SEARCH PROGRAM CODE? MEANS EXPLAIN ME HOW IT WORKS?

Read only

0 Likes
539

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