src/listmerger/utilities.cc
void
binarySearchSet(unsigned &count,
                vector<Array<unsigned>* > *lists,
                unsigned data)
{
    vector<Array<unsigned>*>::iterator ite =
        lists->begin();

    while (ite != lists->end()) {
        Array<unsigned> *v = *ite;
        if (binarySearch(v, data, 0, v->size()))
            count++;
        ite++;
    }//end while

}
/*
  Use binray search to search the value
  in search set of lists;
  change the count 
 */
Use binray search to search the value
in search set of lists;
change the count
Use binray search to search the value in search set of lists ; change the count
void
binarySearchSet(unsigned &count,
                vector<Array<unsigned>* > *lists,
                unsigned data)
{
    vector<Array<unsigned>*>::iterator ite =
        lists->begin();
    while (ite != lists->end()) {
        Array<unsigned> *v = *ite;
        if (binarySearch(v, data, 0, v->size()))
            count++;
        ite++;
    }
}
void binarySearchSet ( unsigned & count , vector < Array < unsigned > * > * lists , unsigned data ) { vector < Array < unsigned > * > :: iterator ite = lists -> begin ( ) ; while ( ite != lists -> end ( ) ) { Array < unsigned > * v = * ite ; if ( binarySearch ( v , data , 0 , v -> size ( ) ) ) count ++ ; ite ++ ; } }
Use binray search to search the value
in search set of lists;
change the count
Use binray search to search the value in search set of lists ; change the count
//end while