Sorting algorithms King Saud University College of

Sorting algorithms King Saud University College of
1 / 1
Sorting algorithms King Saud University College of - slide 1 of 15 Sorting algorithms King Saud University College of - slide 2 of 15 Sorting algorithms King Saud University College of - slide 3 of 15 Sorting algorithms King Saud University College of - slide 4 of 15 Sorting algorithms King Saud University College of - slide 5 of 15 Sorting algorithms King Saud University College of - slide 6 of 15 Sorting algorithms King Saud University College of - slide 7 of 15 Sorting algorithms King Saud University College of - slide 8 of 15 Sorting algorithms King Saud University College of - slide 9 of 15 Sorting algorithms King Saud University College of - slide 10 of 15 Sorting algorithms King Saud University College of - slide 11 of 15 Sorting algorithms King Saud University College of - slide 12 of 15 Sorting algorithms King Saud University College of - slide 13 of 15 Sorting algorithms King Saud University College of - slide 14 of 15 Sorting algorithms King Saud University College of - slide 15 of 15
Sorting algorithms King Saud University College of Applied studies and Community Service CSC 1101 By: Nada Alhirabi 1 Sorting Sorting ordering. Sorted ordered based on a particular way. Generally, collections of data are presented in a

Related Topics

Download this presentation From Below

"Sorting algorithms King Saud University College of" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Sorting algorithms King Saud University
College of Applied studies and Community Service
CSC 1101
By: Nada Alhirabi 1<br>
02
Sorting Sorting = ordering.
Sorted = ordered based on a particular way.
Generally, collections of data are presented in a sorted manner.
Examples of Sorting:
Words in a dictionary are sorted (and case distinctions are ignored).
Files in a directory are often listed in sorted order.
The index of a book is sorted (and case distinctions are ignored). 2<br>
03
Common problem: sort a list of values, starting from lowest to highest.
List of exam scores
Words of dictionary in alphabetical order
Students names listed alphabetically
Student records sorted by ID#

Generally, we are given a list of records that have keys. These keys are used to define an ordering of the items in the list.
A = { 3 1 6 2 1 3 4 5 9 0 }

A = { 0 1 1 2 3 3 4 5 6 9 } 3<br>