Download presentation
Presentation is loading. Please wait.
Published byVera Sugiarto Modified over 6 years ago
1
Sorting Data are arranged according to their values.
Sorting algorithms: 1. Selection Sort 2. Bubble Sort 3. Insertion Sort
2
Selection Sort concept
3
Selection Sort Example
4
Bubble Sort Concept
5
Bubble Sort Example
6
Insertion Sort Concept
7
Insertion Sort Example
8
Searching The process uses to find the location of a target among the list of objects. In array, find the location ( index) of the first element in the array given the value. Searching algorithms: 1. Sequential Search – used when list is unordered 2. Binary Search – list is ordered Search Concept
9
Sequential Search concept – Locating data in unordered list
10
Sequential Search concept – Unsuccessful search in unordered list
11
Binary Search Example
12
Unsuccessful Binary Search Example
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.