My Project
 All Classes Functions
BinarySearch.h
1 /*
2  * BinarySearch.h
3  *
4  * Created on: Jan 24, 2013
5  * Author: Yajia
6  */
7 
8 #ifndef BINARYSEARCH_H_
9 #define BINARYSEARCH_H_
10 
11 #include <vector.h>
12 
13 class BinarySearch {
14 public:
15  BinarySearch();
16  virtual ~BinarySearch();
17  static int search( const vector<double>& dataset, const double& data);
18  static int search( const vector<double>& dataset, const double& data, const int s, const int e);
19 };
20 
21 #endif /* BINARYSEARCH_H_ */