SlideShare a Scribd company logo
1 of 1
Download to read offline
10 14 27 33 35 19 42 44Array : T
.
.
.
.
.
.
.
.
.
3rd Iteration
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
minj = 3
minx = 27
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Inner For Loop
j = 4
.
.
.
j = 5
.
.
.
j = 6
.
.
.
j = 7
.
.
.
j = 8
.
.
.
33 < 27 (F)
.
.
.
35 < 27 (F)
.
.
.
19 < 27 (T)
.
.
.
42 < 19 (F)
.
.
.
44 < 19 (F)
.
.
.
.
.
.
.
.
.
.
.
minj = 6
minx = 19
.
.
.
.
.
.
.
.
.
.
Inner For Loop terminate
Effect on array
10 14 27 33 35 19 42 44
4442273533191410
Array : T 10 14 19 33 35 27 42 44
.
.
.
.
.
.
.
.
.
4th Iteration
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
minj = 4
minx = 33
.
.
.
.
.
.
.
.
.
Inner For Loop
j = 5
.
.
.
j = 6
.
.
.
j = 7
.
.
.
j = 8
.
.
.
35 < 33 (F)
.
.
.
27 < 33 (T)
.
.
.
42 < 27 (F)
.
.
.
44 < 27 (F)
.
.
.
.
.
.
.
minj = 6
minx = 27
.
.
.
.
.
.
.
.
.
.
Inner For Loop terminate
Effect on array
10 14 19 33 35 27 42 44
4442333527191410
Inner For Loop
j = 6
.
.
.
j = 7
.
.
.
j = 8
.
.
.
.
.
.
.
.
minj = 5
minx = 35
.
.
.
.
.
.
.
.
.
.
.
.
5th Iteration
.
.
.
.
.
.
10Array : T 14 19 27 35 33 42 44
33 < 35 (T)
.
.
.
42 < 33 (F)
.
.
.
44 < 33 (F)
.
.
.
minj = 6
minx = 33
.
.
.
.
.
.
.
.
.
.
Inner For Loop terminate
Effect on array
10 14 19 27 35 33 42 44
4442353327191410
Effect on array
10 14 19 27 33 35 42 44
(No Change)
4442353327191410
Inner For Loop terminate
.
.
.
.
.
.
.
.
42 < 35 (F)
.
.
.
44 < 35 (F)
.
.
.
j = 7
.
.
.
j = 8
.
.
.
Inner For Loop
.
minj = 6
minx = 35
.
.
.
.
6th Iteration
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Array : T 10 14 19 27 33 35 42 44
.
.
7th Iteration
.
.
.
minj = 7
minx = 42
.
.
Array : T 10 14 19 27 33 35 42 44
j = 8
.
.
.
42 < 44 (F)
.
.
.
.
.
.
.
Inner For Loop terminate
Effect on array
10 14 19 27 33 35 42 44
4442353327191410
(No Change)

More Related Content

Viewers also liked

Intro to AWS Machine Learning
Intro to AWS Machine LearningIntro to AWS Machine Learning
Intro to AWS Machine LearningNVISIA
 
Crosscode Customer Interaction Management (CIM) Suite Datasheet
Crosscode Customer Interaction Management (CIM) Suite DatasheetCrosscode Customer Interaction Management (CIM) Suite Datasheet
Crosscode Customer Interaction Management (CIM) Suite Datasheetacuser30
 
The Guest house | Reinventing Work | www.the-guest-house.com
The Guest house | Reinventing Work | www.the-guest-house.comThe Guest house | Reinventing Work | www.the-guest-house.com
The Guest house | Reinventing Work | www.the-guest-house.comPhil Long
 
Carta de un padre con el nombre manchado
Carta de un padre con el nombre manchadoCarta de un padre con el nombre manchado
Carta de un padre con el nombre manchadoUnidiversidad
 

Viewers also liked (6)

O magikos avlos
O magikos avlosO magikos avlos
O magikos avlos
 
στον ρυθμό της παρέλασης!
στον ρυθμό της παρέλασης!στον ρυθμό της παρέλασης!
στον ρυθμό της παρέλασης!
 
Intro to AWS Machine Learning
Intro to AWS Machine LearningIntro to AWS Machine Learning
Intro to AWS Machine Learning
 
Crosscode Customer Interaction Management (CIM) Suite Datasheet
Crosscode Customer Interaction Management (CIM) Suite DatasheetCrosscode Customer Interaction Management (CIM) Suite Datasheet
Crosscode Customer Interaction Management (CIM) Suite Datasheet
 
The Guest house | Reinventing Work | www.the-guest-house.com
The Guest house | Reinventing Work | www.the-guest-house.comThe Guest house | Reinventing Work | www.the-guest-house.com
The Guest house | Reinventing Work | www.the-guest-house.com
 
Carta de un padre con el nombre manchado
Carta de un padre con el nombre manchadoCarta de un padre con el nombre manchado
Carta de un padre con el nombre manchado
 

Recently uploaded

How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdftawat puangthong
 
E-Commerce Shopping using MERN Stack where different modules are present
E-Commerce Shopping using MERN Stack where different modules are presentE-Commerce Shopping using MERN Stack where different modules are present
E-Commerce Shopping using MERN Stack where different modules are presentjatinraor66
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.MdManikurRahman
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesRashidFaridChishti
 
Multivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptxMultivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptxalijaker017
 
Introduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsIntroduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsKineticEngineeringCo
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2T.D. Shashikala
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisDr.Costas Sachpazis
 
Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AISheetal Jain
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoAbhimanyu Sangale
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Prakhyath Rai
 
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...MohammadAliNayeem
 
ChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdfChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdfqasastareekh
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdfKamal Acharya
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfAshrafRagab14
 
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...ShivamTiwari995432
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5T.D. Shashikala
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsSheetal Jain
 

Recently uploaded (20)

How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdf
 
E-Commerce Shopping using MERN Stack where different modules are present
E-Commerce Shopping using MERN Stack where different modules are presentE-Commerce Shopping using MERN Stack where different modules are present
E-Commerce Shopping using MERN Stack where different modules are present
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
Multivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptxMultivibrator and its types defination and usges.pptx
Multivibrator and its types defination and usges.pptx
 
Introduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsIntroduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and Applications
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AI
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of Arduino
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
 
ChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdfChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdf
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 

Analysis of Selection Sort Example

  • 1. 10 14 27 33 35 19 42 44Array : T . . . . . . . . . 3rd Iteration . . . . . . . . . . . . . . . . . . . . . minj = 3 minx = 27 . . . . . . . . . . . . . . . . . . . Inner For Loop j = 4 . . . j = 5 . . . j = 6 . . . j = 7 . . . j = 8 . . . 33 < 27 (F) . . . 35 < 27 (F) . . . 19 < 27 (T) . . . 42 < 19 (F) . . . 44 < 19 (F) . . . . . . . . . . . minj = 6 minx = 19 . . . . . . . . . . Inner For Loop terminate Effect on array 10 14 27 33 35 19 42 44 4442273533191410 Array : T 10 14 19 33 35 27 42 44 . . . . . . . . . 4th Iteration . . . . . . . . . . . . . . . . . . . . . minj = 4 minx = 33 . . . . . . . . . Inner For Loop j = 5 . . . j = 6 . . . j = 7 . . . j = 8 . . . 35 < 33 (F) . . . 27 < 33 (T) . . . 42 < 27 (F) . . . 44 < 27 (F) . . . . . . . minj = 6 minx = 27 . . . . . . . . . . Inner For Loop terminate Effect on array 10 14 19 33 35 27 42 44 4442333527191410 Inner For Loop j = 6 . . . j = 7 . . . j = 8 . . . . . . . . minj = 5 minx = 35 . . . . . . . . . . . . 5th Iteration . . . . . . 10Array : T 14 19 27 35 33 42 44 33 < 35 (T) . . . 42 < 33 (F) . . . 44 < 33 (F) . . . minj = 6 minx = 33 . . . . . . . . . . Inner For Loop terminate Effect on array 10 14 19 27 35 33 42 44 4442353327191410 Effect on array 10 14 19 27 33 35 42 44 (No Change) 4442353327191410 Inner For Loop terminate . . . . . . . . 42 < 35 (F) . . . 44 < 35 (F) . . . j = 7 . . . j = 8 . . . Inner For Loop . minj = 6 minx = 35 . . . . 6th Iteration . . . . . . . . . . . . . . . Array : T 10 14 19 27 33 35 42 44 . . 7th Iteration . . . minj = 7 minx = 42 . . Array : T 10 14 19 27 33 35 42 44 j = 8 . . . 42 < 44 (F) . . . . . . . Inner For Loop terminate Effect on array 10 14 19 27 33 35 42 44 4442353327191410 (No Change)