Binary Search Algorithm

Complexity: O(log(n)) Application: Use to find element in an Array. Algorithm:

  Code:

Download code

Continue reading

Linear Search Algorithm

Linear Search Algorithm complexity: O(n) Application: use to find element in an Array. Algorithm:

Code:

  Download code

Continue reading