Category: searching in c

Selection sort in java

Selection Sort program in Java

Selection Sort: Selection sort is easy and well known sorting technique.In selection sort unordered list is divided into two parts sorted and unsorted. minimum number from unsorted list is selected and placed in at...

Binary search in java

Binary Search in c

binary search in c Sorted array #include <stdio.h> #include <conio.h> void main( ) { int arr[10] = { 1, 2, 3, 9, 11, 13, 17, 25, 57, 90 } ; int mid, lower =...

Linear search in java

linear search in c

Linear Search in c unsorted array #include <stdio.h> #include <conio.h> void main( ) { int arr[10] = { 11, 2, 9, 13, 57, 25, 17, 1, 90, 3 } ; int i, num ;...