What is Binary Search?

Binary Search is nothing but a Searching Algorithm. Which will help you search a element in array. Binary Search is most efficient algorithm for searching a element. The important thing about Binary Search is that, it will only apply to “sorted array”. The array should be sorted or else it will not work. It is faster Algorithm because you can eliminate half of the remaining … Continue reading What is Binary Search?

External link to what is bubble sort?

what is bubble sort?

Before explaining what is bubble sort. First we need to understand what is sorting means? Sorting means arranging the data or elements in a particular way. For example You given a array of numbers {1,5,10,8,3,1} which are un-order. You asked to arrange the elements in right order which are {1,1,3,5,8,10}. So, Now you know the concept of sorting. let’s see the basic sorting algorithm called … Continue reading what is bubble sort?

HOW GREEDY ALGORITHM WORKS ?

Lets us first understand what is greedy means? Greedy means having an excessive desire . which mean to want more of something. A Greedy algorithm will choice a optimal value at each stage with the hope of finding a global optimum. For example: In the above picture what do you think the maximum output is? If you apply Greedy Algorithm to solve this problem the … Continue reading HOW GREEDY ALGORITHM WORKS ?