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

Read Stmt

Former Member
0 Likes
712

Dear all ,

I have one query .

Every read statement Binary search keyword impartant or not .

For an ex::

Suppose I having records only 100 , that also i have to declare Binary search or not .

Regards ,

Shankar G. Jeya Dev

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
683

It is good to use Binary Search, though the real benefit is when there are more number of records.

4 REPLIES 4
Read only

Former Member
0 Likes
684

It is good to use Binary Search, though the real benefit is when there are more number of records.

Read only

former_member673464
Active Contributor
0 Likes
683

hi,

When we have relatively less number of records,we need not use the binary search. If we are using binary search, we have to sort the table. Sorting the table may take more time when compared to direct read statement without binary search .

regards,

Veeresh

Read only

Former Member
0 Likes
683

In lesser number of records, using binary search will be an overhead because then u need to sort the entries also...

so u should use it for larger number of records only

Read only

Former Member
0 Likes
683

Thanks to all