December 19, 2018

Searching and Sorting in C Programming

Searching

This is the process by which one searches the group of elements for the desired element. For example:

Binary Search
In binary search the basic requirement is the elements of the array should have been sorted alphabetically or numerically in the ascending order.

this photo is taken from www.geeksforgeeks.org 



Sorting

Is used to rearrange a given array or list elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of element in data structure. For example:

Selection Sort


this photo is taken from www.programiz.com
Garvin Moses Tanuwihardjo - Binusian'22


No comments:

Post a Comment

Searching and Sorting in C Programming

Searching This is the process by which one searches the group of elements for the desired element. F or example: Binary Search In...