Click here to Skip to main content
13,410,032 members (36,897 online)
Rate this:
 
Please Sign up or sign in to vote.
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 22-Aug-12 18:23pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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 :)
  Permalink  
Comments
Prasad_Kulkarni 23-Aug-12 2:46am
   
+5
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.180221.1 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100