SlideShare a Scribd company logo
WELCOME TO MY
PRESENTATION
VERSITY OF SCIENCE AND THECHNOLOGY CHITTAGONG
ACULTY OF SCEINCE ENGINEERING AND TECHNOLOGY
Submitted to:
Sohrab Hossain
Assistant Professor ,
Dept of CSE .
Submitted by:
Md Abdul Kuddus
Roll: 15010102
Batch: 25th Dept: CSE
SUBJECT :
QUICK SORT
Procedure:
It is one of the fastest sorting techniques available.
Like binary search, this method uses a recursive , devide and conquer
strategy
The basic idea is to separate a list of items into two parts,
Surrounding a distinguished item calls pivot
At the end of the process, one part will contain items
Smaller than the pivot and the other part will contain items
Larger than the pivot
Quick sort algorithm using slide presentation , Learn selection sort example by power point presentation
5 3 8 9 1 0 2 6 47
GIVEN SERIES
EXAMPLE:
SELECT THE PIVOT ELEMENT
5 3 8 9 1 7 0 2 6 4
p
ITERATION -1
5 3 8 9 1 7 0 2 6 4
P L R
SWAP THE ELEMENTS
5 3 4 9 1 7 0 2 6 8
5 3 4 9 1 7 0 2 6 8
P L R
SWAP THE ELEMENTS
5 3 4 2 1 7 0 9 6 8
5 3 4 2 1 7 0 9 6 8
P L R
SWAP THE ELEMENTS
5 3 4 2 1 0 7 9 6 8
P R L
0 3 4 2 1 5 9 6 8
0 3 4 2 1 5 7 9 6 8
P>R>L
7
0 3 4 2 1 5 7 9 6 8
ITERATION-2
P L P LR R
SWAP THE ELEMENTS
0 1 4 2 5 7 6 9 83
0 34 21 5 7 96 8
P L P LR R
SWAP THE ELEMENTS
0 1 5 6 7 9 832 4
0 32 41 5 7 96 8
SWAP THE ELEMENTS
0 1 5 6 7 8 942 3
0 1 2 3 4 6 7 95
SORTED SERIES
8
ALGORITHM:
1.Algorithm quicksort (p,q)
2.{
3.If (p<q) then
4. {
5.j=partition(a,p,q+1);
6.Quicksort(p,j-1);
7. Quicksort (j+1,q);
8. }
9. }
THANK YOU
Ad

Recommended

Quick sort algorithn
Quick sort algorithn
Kumar
 
Quick sort
Quick sort
amar kakde
 
Quick Sort
Quick Sort
Shweta Sahu
 
Algorithm: Quick-Sort
Algorithm: Quick-Sort
Tareq Hasan
 
Merge sort
Merge sort
Vidushi Pathak
 
Algorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms I
Mohamed Loey
 
Monitors
Monitors
Mohd Arif
 
Selection sort
Selection sort
amna izzat
 
Insertion Sorting
Insertion Sorting
FarihaHabib123
 
Sorting algorithms
Sorting algorithms
CHANDAN KUMAR
 
Cs8493 unit 4
Cs8493 unit 4
Kathirvel Ayyaswamy
 
Quick sort
Quick sort
International Islamic University
 
Insertion sort
Insertion sort
almaqboli
 
03 algorithm properties
03 algorithm properties
Lincoln School
 
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
Umesh Kumar
 
Singly & Circular Linked list
Singly & Circular Linked list
Khulna University of Engineering & Tecnology
 
Dinive conquer algorithm
Dinive conquer algorithm
Mohd Arif
 
Insertion Sort Algorithm
Insertion Sort Algorithm
Gail Carmichael
 
Heap and heapsort
Heap and heapsort
Amit Kumar Rathi
 
Bubble Sort Algorithm Presentation
Bubble Sort Algorithm Presentation
AhmedAlbutty
 
3.8 quicksort
3.8 quicksort
Krish_ver2
 
Quick Sort , Merge Sort , Heap Sort
Quick Sort , Merge Sort , Heap Sort
Mohammed Hussein
 
Sorting Algorithms
Sorting Algorithms
multimedia9
 
Quick sort
Quick sort
Afaq Mansoor Khan
 
Queues in C++
Queues in C++
Vineeta Garg
 
Lecture 14 run time environment
Lecture 14 run time environment
Iffat Anjum
 
Disk scheduling
Disk scheduling
NEERAJ BAGHEL
 
Heap sort
Heap sort
Mohd Arif
 
Quicksort Algorithm..simply defined through animations..!!
Quicksort Algorithm..simply defined through animations..!!
Mahesh Tibrewal
 
09 QUICK SORT Design and Analysis of algorithms
09 QUICK SORT Design and Analysis of algorithms
syamalamaganti
 

More Related Content

What's hot (20)

Insertion Sorting
Insertion Sorting
FarihaHabib123
 
Sorting algorithms
Sorting algorithms
CHANDAN KUMAR
 
Cs8493 unit 4
Cs8493 unit 4
Kathirvel Ayyaswamy
 
Quick sort
Quick sort
International Islamic University
 
Insertion sort
Insertion sort
almaqboli
 
03 algorithm properties
03 algorithm properties
Lincoln School
 
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
Umesh Kumar
 
Singly & Circular Linked list
Singly & Circular Linked list
Khulna University of Engineering & Tecnology
 
Dinive conquer algorithm
Dinive conquer algorithm
Mohd Arif
 
Insertion Sort Algorithm
Insertion Sort Algorithm
Gail Carmichael
 
Heap and heapsort
Heap and heapsort
Amit Kumar Rathi
 
Bubble Sort Algorithm Presentation
Bubble Sort Algorithm Presentation
AhmedAlbutty
 
3.8 quicksort
3.8 quicksort
Krish_ver2
 
Quick Sort , Merge Sort , Heap Sort
Quick Sort , Merge Sort , Heap Sort
Mohammed Hussein
 
Sorting Algorithms
Sorting Algorithms
multimedia9
 
Quick sort
Quick sort
Afaq Mansoor Khan
 
Queues in C++
Queues in C++
Vineeta Garg
 
Lecture 14 run time environment
Lecture 14 run time environment
Iffat Anjum
 
Disk scheduling
Disk scheduling
NEERAJ BAGHEL
 
Heap sort
Heap sort
Mohd Arif
 

Similar to Quick sort algorithm using slide presentation , Learn selection sort example by power point presentation (20)

Quicksort Algorithm..simply defined through animations..!!
Quicksort Algorithm..simply defined through animations..!!
Mahesh Tibrewal
 
09 QUICK SORT Design and Analysis of algorithms
09 QUICK SORT Design and Analysis of algorithms
syamalamaganti
 
Sorting
Sorting
invertis university
 
Divide-and-conquer
Divide-and-conquer
Mrunal Patil
 
DIVIDE AND CONQUERMETHOD IN DATASTRUCTURE.pptx
DIVIDE AND CONQUERMETHOD IN DATASTRUCTURE.pptx
LakshmiSamivel
 
Quick sorting
Quick sorting
Lovely Professional University
 
Data Structure and algorithms for software
Data Structure and algorithms for software
ManishShukla712917
 
Unit 2 - Quick Sort.pptx
Unit 2 - Quick Sort.pptx
CO1IShwetaKidile
 
Divide and conquer
Divide and conquer
Dr Shashikant Athawale
 
Quick-Sort Algorithm and pivot selection
Quick-Sort Algorithm and pivot selection
SubhranjaliBehera
 
Lecture 3.3.4 Quick sort.pptxIIIIIIIIIII
Lecture 3.3.4 Quick sort.pptxIIIIIIIIIII
anshsaini1603
 
Sortings .pptx
Sortings .pptx
MuhammadSheraz836877
 
Quick Sort
Quick Sort
priyankanaidu6
 
MERGE and Quick Sort algorithm explain ppt
MERGE and Quick Sort algorithm explain ppt
UNNATISAXENA8
 
Bs,qs,divide and conquer 1
Bs,qs,divide and conquer 1
subhashchandra197
 
Quicksort AlgorithmQuicksort is a divide and conquer algorithm. Q.pdf
Quicksort AlgorithmQuicksort is a divide and conquer algorithm. Q.pdf
anupamfootwear
 
Class13_Quicksort_Algorithm.pdf
Class13_Quicksort_Algorithm.pdf
AkashSingh625550
 
Divide and conquer - Quick sort
Divide and conquer - Quick sort
Madhu Bala
 
Quick sort
Quick sort
Jehat Hassan
 
Quick Sort algorithm for sorting an array of elements
Quick Sort algorithm for sorting an array of elements
9843ganesan
 
Quicksort Algorithm..simply defined through animations..!!
Quicksort Algorithm..simply defined through animations..!!
Mahesh Tibrewal
 
09 QUICK SORT Design and Analysis of algorithms
09 QUICK SORT Design and Analysis of algorithms
syamalamaganti
 
Divide-and-conquer
Divide-and-conquer
Mrunal Patil
 
DIVIDE AND CONQUERMETHOD IN DATASTRUCTURE.pptx
DIVIDE AND CONQUERMETHOD IN DATASTRUCTURE.pptx
LakshmiSamivel
 
Data Structure and algorithms for software
Data Structure and algorithms for software
ManishShukla712917
 
Quick-Sort Algorithm and pivot selection
Quick-Sort Algorithm and pivot selection
SubhranjaliBehera
 
Lecture 3.3.4 Quick sort.pptxIIIIIIIIIII
Lecture 3.3.4 Quick sort.pptxIIIIIIIIIII
anshsaini1603
 
MERGE and Quick Sort algorithm explain ppt
MERGE and Quick Sort algorithm explain ppt
UNNATISAXENA8
 
Quicksort AlgorithmQuicksort is a divide and conquer algorithm. Q.pdf
Quicksort AlgorithmQuicksort is a divide and conquer algorithm. Q.pdf
anupamfootwear
 
Class13_Quicksort_Algorithm.pdf
Class13_Quicksort_Algorithm.pdf
AkashSingh625550
 
Divide and conquer - Quick sort
Divide and conquer - Quick sort
Madhu Bala
 
Quick Sort algorithm for sorting an array of elements
Quick Sort algorithm for sorting an array of elements
9843ganesan
 
Ad

More from University of Science and Technology Chitttagong (6)

Merge sort-algorithm for computer science engineering students
Merge sort-algorithm for computer science engineering students
University of Science and Technology Chitttagong
 
Insertion sort algorithm power point presentation
Insertion sort algorithm power point presentation
University of Science and Technology Chitttagong
 
Merge sort algorithm power point presentation
Merge sort algorithm power point presentation
University of Science and Technology Chitttagong
 
Selection sort algorithm presentation, selection sort example using power point
Selection sort algorithm presentation, selection sort example using power point
University of Science and Technology Chitttagong
 
Database management system basic, database, database management, learn databa...
Database management system basic, database, database management, learn databa...
University of Science and Technology Chitttagong
 
Database language
Database language
University of Science and Technology Chitttagong
 
Ad

Recently uploaded (20)

SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
“THE BEST CLASS IN SCHOOL”. _
“THE BEST CLASS IN SCHOOL”. _
Colégio Santa Teresinha
 
How to Manage Multi Language for Invoice in Odoo 18
How to Manage Multi Language for Invoice in Odoo 18
Celine George
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
Belicia R.S
 
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
RAKESH SAJJAN
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
TechSoup
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
RAKESH SAJJAN
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
LDM Recording Presents Yogi Goddess by LDMMIA
LDM Recording Presents Yogi Goddess by LDMMIA
LDM & Mia eStudios
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
Health Care Planning and Organization of Health Care at Various Levels – Unit...
Health Care Planning and Organization of Health Care at Various Levels – Unit...
RAKESH SAJJAN
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
How to Manage Multi Language for Invoice in Odoo 18
How to Manage Multi Language for Invoice in Odoo 18
Celine George
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
Belicia R.S
 
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
Communicable Diseases and National Health Programs – Unit 9 | B.Sc Nursing 5t...
RAKESH SAJJAN
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
TechSoup
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
RAKESH SAJJAN
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
LDM Recording Presents Yogi Goddess by LDMMIA
LDM Recording Presents Yogi Goddess by LDMMIA
LDM & Mia eStudios
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
Health Care Planning and Organization of Health Care at Various Levels – Unit...
Health Care Planning and Organization of Health Care at Various Levels – Unit...
RAKESH SAJJAN
 

Quick sort algorithm using slide presentation , Learn selection sort example by power point presentation