Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i write a program in c# that searches for a string in a string array using binary search technique.with linear it was pretty easy but with binary search it becomes complicated.the only hint i got was that the list has to be sorted first.i completely have no idea how to achieve this.pllzz help!!!..
Posted

There are a couple of good articles about it on the codeproject site:
http://www.codeproject.com/search.aspx?q=binary+search&x=13&y=9&sbo=kw[^]

If you cant find anything here you should have a look at Google[^]. In the future you should try it yourself first, before you ask :)
 
Share this answer
 
Comments
Prasad_Kulkarni 23-Aug-12 2:46am    
+5
 
Share this answer
 
Comments
Prasad_Kulkarni 23-Aug-12 2:46am    
+5
ridoy 23-Aug-12 6:14am    
Thanks Prasad..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900