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
Garvin Moses Tanuwihardjo - Binusian'22
Selection Sort
![]() |
| this photo is taken from www.programiz.com |


No comments:
Post a Comment