Saturday, 24 September 2016

Algorithm and Flowchart

                                     

                                    Algorithms

  1. A sequential solution of any program that written in human language is called algorithm.
  2. Algorithm is first step of the solution process, after the analysis of problem, programmer write the algorithm of that problem.
  3. Example of Algorithms:

Friday, 23 September 2016

C program for Binary Search

Binary Search:- It is a method used to search an element present in an array. It can be implemented only on the sorted array. If you want to search an element using binary search you need to sort the array either in increasing order or decreasing order. Once the array is sorted you can implement binary search algorithm to find the position of  the desired element. It's very fast as compared to linear search. You can use any sorting algorithm before implementing binary search algorithm.