top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Please help me with an optimized Binary Search algorithm?

0 votes
439 views
Please help me with an optimized Binary Search algorithm?
posted May 19, 2015 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

This would help you, please get back if any issue -
http://tech.queryhome.com/47450/binary-search-tree-a-summary

answer May 19, 2015 by Salil Agrawal
Similar Questions
+1 vote

Implement the following functions recursively:

1- void power(int x, int y);// this function returns xy

2- void removeAll(linkedListType& obj); // this function removes all the linked list nodes. NOTE: this function is NOT a member function of the linkedListType class.

3- int seqSearch(int key); // this is a member function of the linkedListType class. It searches for the value key in the linked list. If the key is found, then its position is returned. Otherwise, -1 is returned. NOTE: in order to implement this function, you need to implement another private member function to send it the first pointer. Here is the prototype for the private member function:

int recSeqSearch(nodeType *p, int key);

...