Category: 8. Shorting / Search Programs

  • Program to perform binary search

    Example Program to perform binary search on a list of integer numbers This program uses binary search algorithm to search an element in given list of elements. Output 1: Output 2:

  • Program for linear search – Example

    Example Program: This program uses linear search algorithm to find out a number among all other numbers entered by user. Output 1: Output 2:

  • Bubble sort in Ascending and descending order

    in this tutorial we are gonna see how to do sorting in ascending & descending order using Bubble sort algorithm. Bubble sort program for sorting in ascending Order Output: Bubble sort program for sorting in descending Order In order to sort in descending order we just need to change the logic array[j] > array[j+1] to array[j] <…