SlideShare a Scribd company logo
Find the Maximum Algorithm
currentIndex: 0
maxValue: -1
start with -1 as maximum
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 0
maxValue: -1
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
currentIndex: 0
maxValue: -1
found a new maximum!
Find the Maximum Algorithm
currentIndex: 0
maxValue: 5
found a new maximum!
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 1
maxValue: 5
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 2
maxValue: 5
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 3
maxValue: 5
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 4
maxValue: 5
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
found a new maximum!
Find the Maximum Algorithm
currentIndex: 4
maxValue: 9
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
found a new maximum!
Find the Maximum Algorithm
currentIndex: 5
maxValue: 9
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 6
maxValue: 9
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 7
maxValue: 9
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 8
maxValue: 9
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8
Find the Maximum Algorithm
currentIndex: 8
maxValue: 9
Finished: output is 9
5 3 1 2 9 8 7 3 9
0 1 2 3 4 5 6 7 8

More Related Content

Viewers also liked

Top 10 need-to-knows_about_social_networking_and_where_it_is_headed
Top 10 need-to-knows_about_social_networking_and_where_it_is_headedTop 10 need-to-knows_about_social_networking_and_where_it_is_headed
Top 10 need-to-knows_about_social_networking_and_where_it_is_headed
Araceli Castelló
 
Katrina power point
Katrina power pointKatrina power point
Katrina power point
sownational
 
Maks
MaksMaks
AdReaction 2012: Marketing in the Mobile World
AdReaction 2012: Marketing in the Mobile WorldAdReaction 2012: Marketing in the Mobile World
AdReaction 2012: Marketing in the Mobile World
Araceli Castelló
 
Ajman Urban Design
Ajman Urban DesignAjman Urban Design
Ajman Urban Design
Shafiya Rizwan
 
High end charity retail
High end charity retailHigh end charity retail
High end charity retail
Shafiya Rizwan
 
Twitter TV Book
Twitter TV BookTwitter TV Book
Twitter TV Book
Araceli Castelló
 
Financial crisis final - NPR
Financial crisis final - NPRFinancial crisis final - NPR
Financial crisis final - NPR
sownational
 
The age of social influence
The age of social influenceThe age of social influence
The age of social influence
Araceli Castelló
 
ტელეფონები
ტელეფონებიტელეფონები
ტელეფონებიgiorgi8249
 
Ajman Analysis Final
Ajman Analysis FinalAjman Analysis Final
Ajman Analysis Final
Shafiya Rizwan
 
Linked List Operations
Linked List OperationsLinked List Operations
Linked List Operations
Gail Carmichael
 
Graduation I Presentation
Graduation I PresentationGraduation I Presentation
Graduation I Presentation
Shafiya Rizwan
 
Graduation Thesis
Graduation ThesisGraduation Thesis
Graduation Thesis
Shafiya Rizwan
 
Insertion Sort Algorithm
Insertion Sort AlgorithmInsertion Sort Algorithm
Insertion Sort Algorithm
Gail Carmichael
 
RTvS: Toelichting 2e dag vh Socialisme (presentatie)
RTvS: Toelichting 2e dag vh Socialisme (presentatie)RTvS: Toelichting 2e dag vh Socialisme (presentatie)
RTvS: Toelichting 2e dag vh Socialisme (presentatie)
Ronde Tafel van Socialisten
 

Viewers also liked (16)

Top 10 need-to-knows_about_social_networking_and_where_it_is_headed
Top 10 need-to-knows_about_social_networking_and_where_it_is_headedTop 10 need-to-knows_about_social_networking_and_where_it_is_headed
Top 10 need-to-knows_about_social_networking_and_where_it_is_headed
 
Katrina power point
Katrina power pointKatrina power point
Katrina power point
 
Maks
MaksMaks
Maks
 
AdReaction 2012: Marketing in the Mobile World
AdReaction 2012: Marketing in the Mobile WorldAdReaction 2012: Marketing in the Mobile World
AdReaction 2012: Marketing in the Mobile World
 
Ajman Urban Design
Ajman Urban DesignAjman Urban Design
Ajman Urban Design
 
High end charity retail
High end charity retailHigh end charity retail
High end charity retail
 
Twitter TV Book
Twitter TV BookTwitter TV Book
Twitter TV Book
 
Financial crisis final - NPR
Financial crisis final - NPRFinancial crisis final - NPR
Financial crisis final - NPR
 
The age of social influence
The age of social influenceThe age of social influence
The age of social influence
 
ტელეფონები
ტელეფონებიტელეფონები
ტელეფონები
 
Ajman Analysis Final
Ajman Analysis FinalAjman Analysis Final
Ajman Analysis Final
 
Linked List Operations
Linked List OperationsLinked List Operations
Linked List Operations
 
Graduation I Presentation
Graduation I PresentationGraduation I Presentation
Graduation I Presentation
 
Graduation Thesis
Graduation ThesisGraduation Thesis
Graduation Thesis
 
Insertion Sort Algorithm
Insertion Sort AlgorithmInsertion Sort Algorithm
Insertion Sort Algorithm
 
RTvS: Toelichting 2e dag vh Socialisme (presentatie)
RTvS: Toelichting 2e dag vh Socialisme (presentatie)RTvS: Toelichting 2e dag vh Socialisme (presentatie)
RTvS: Toelichting 2e dag vh Socialisme (presentatie)
 

Similar to Find the Maximum Algorithm

Basics in algorithms and data structure
Basics in algorithms and data structure Basics in algorithms and data structure
Basics in algorithms and data structure
Eman magdy
 
Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...
Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...
Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...
Ruby Meditation
 
Algorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IAlgorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms I
Mohamed Loey
 
The CppCat Analyzer Checks TortoiseGit
The CppCat Analyzer Checks TortoiseGitThe CppCat Analyzer Checks TortoiseGit
The CppCat Analyzer Checks TortoiseGit
Andrey Karpov
 
Maximal slice problem
Maximal slice problemMaximal slice problem
Maximal slice problem
mininerej
 
Lecture-1-Algorithms.pptx
Lecture-1-Algorithms.pptxLecture-1-Algorithms.pptx
Lecture-1-Algorithms.pptx
xalahama3
 
2011 Mongo FR - Indexing in MongoDB
2011 Mongo FR - Indexing in MongoDB2011 Mongo FR - Indexing in MongoDB
2011 Mongo FR - Indexing in MongoDB
antoinegirbal
 
NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練
NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練
NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練
Sheng-Hao Ma
 
Faceted Search – the 120 Million Documents Story
Faceted Search – the 120 Million Documents StoryFaceted Search – the 120 Million Documents Story
Faceted Search – the 120 Million Documents Story
Sourcesense
 
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar PradhanAwesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
Ajeet Singh Raina
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data mining
Sulman Ahmed
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapalooza
JenniferBall44
 
DIY Netflow Data Analytic with ELK Stack by CL Lee
DIY Netflow Data Analytic with ELK Stack by CL LeeDIY Netflow Data Analytic with ELK Stack by CL Lee
DIY Netflow Data Analytic with ELK Stack by CL Lee
MyNOG
 
Botnets behavioral patterns in the network. A Machine Learning study of botne...
Botnets behavioral patterns in the network. A Machine Learning study of botne...Botnets behavioral patterns in the network. A Machine Learning study of botne...
Botnets behavioral patterns in the network. A Machine Learning study of botne...
Czech Technical University in Prague
 
Cool bonsai cool - an introduction to ElasticSearch
Cool bonsai cool - an introduction to ElasticSearchCool bonsai cool - an introduction to ElasticSearch
Cool bonsai cool - an introduction to ElasticSearch
clintongormley
 
MongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCP
MongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCPMongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCP
MongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCP
MongoDB
 

Similar to Find the Maximum Algorithm (16)

Basics in algorithms and data structure
Basics in algorithms and data structure Basics in algorithms and data structure
Basics in algorithms and data structure
 
Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...
Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...
Postgres vs Elasticsearch while enriching data - Vlad Somov | Ruby Meditaiton...
 
Algorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IAlgorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms I
 
The CppCat Analyzer Checks TortoiseGit
The CppCat Analyzer Checks TortoiseGitThe CppCat Analyzer Checks TortoiseGit
The CppCat Analyzer Checks TortoiseGit
 
Maximal slice problem
Maximal slice problemMaximal slice problem
Maximal slice problem
 
Lecture-1-Algorithms.pptx
Lecture-1-Algorithms.pptxLecture-1-Algorithms.pptx
Lecture-1-Algorithms.pptx
 
2011 Mongo FR - Indexing in MongoDB
2011 Mongo FR - Indexing in MongoDB2011 Mongo FR - Indexing in MongoDB
2011 Mongo FR - Indexing in MongoDB
 
NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練
NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練
NTUSTxTDOH 資訊安全基礎工作坊 基礎逆向教育訓練
 
Faceted Search – the 120 Million Documents Story
Faceted Search – the 120 Million Documents StoryFaceted Search – the 120 Million Documents Story
Faceted Search – the 120 Million Documents Story
 
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar PradhanAwesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
Awesome Traefik - Ingress Controller for Kubernetes - Swapnasagar Pradhan
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data mining
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapalooza
 
DIY Netflow Data Analytic with ELK Stack by CL Lee
DIY Netflow Data Analytic with ELK Stack by CL LeeDIY Netflow Data Analytic with ELK Stack by CL Lee
DIY Netflow Data Analytic with ELK Stack by CL Lee
 
Botnets behavioral patterns in the network. A Machine Learning study of botne...
Botnets behavioral patterns in the network. A Machine Learning study of botne...Botnets behavioral patterns in the network. A Machine Learning study of botne...
Botnets behavioral patterns in the network. A Machine Learning study of botne...
 
Cool bonsai cool - an introduction to ElasticSearch
Cool bonsai cool - an introduction to ElasticSearchCool bonsai cool - an introduction to ElasticSearch
Cool bonsai cool - an introduction to ElasticSearch
 
MongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCP
MongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCPMongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCP
MongoDB World 2019: DIY Glucose Monitoring with Open Source, MongoDB, and GCP
 

More from Gail Carmichael

Head and Tail Recursion
Head and Tail RecursionHead and Tail Recursion
Head and Tail Recursion
Gail Carmichael
 
Branching Story Example
Branching Story ExampleBranching Story Example
Branching Story Example
Gail Carmichael
 
Deep Copy of a Linked List
Deep Copy of a Linked ListDeep Copy of a Linked List
Deep Copy of a Linked List
Gail Carmichael
 
References Are 'Nice' Pointers
References Are 'Nice' PointersReferences Are 'Nice' Pointers
References Are 'Nice' Pointers
Gail Carmichael
 
Pointers
PointersPointers
Pointers
Gail Carmichael
 
Function Call Stack
Function Call StackFunction Call Stack
Function Call Stack
Gail Carmichael
 
Attracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it MattersAttracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it Matters
Gail Carmichael
 
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Gail Carmichael
 
Interactive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next StepsInteractive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next Steps
Gail Carmichael
 
Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13
Gail Carmichael
 
Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)
Gail Carmichael
 
Understanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for LearningUnderstanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for Learning
Gail Carmichael
 
Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)
Gail Carmichael
 
Global Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature DescriptorsGlobal Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature Descriptors
Gail Carmichael
 

More from Gail Carmichael (14)

Head and Tail Recursion
Head and Tail RecursionHead and Tail Recursion
Head and Tail Recursion
 
Branching Story Example
Branching Story ExampleBranching Story Example
Branching Story Example
 
Deep Copy of a Linked List
Deep Copy of a Linked ListDeep Copy of a Linked List
Deep Copy of a Linked List
 
References Are 'Nice' Pointers
References Are 'Nice' PointersReferences Are 'Nice' Pointers
References Are 'Nice' Pointers
 
Pointers
PointersPointers
Pointers
 
Function Call Stack
Function Call StackFunction Call Stack
Function Call Stack
 
Attracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it MattersAttracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it Matters
 
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
 
Interactive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next StepsInteractive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next Steps
 
Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13
 
Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)
 
Understanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for LearningUnderstanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for Learning
 
Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)
 
Global Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature DescriptorsGlobal Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature Descriptors
 

Recently uploaded

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 

Recently uploaded (20)

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 

Find the Maximum Algorithm

  • 1. Find the Maximum Algorithm currentIndex: 0 maxValue: -1 start with -1 as maximum 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 2. Find the Maximum Algorithm currentIndex: 0 maxValue: -1 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 3. Find the Maximum Algorithm 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8 currentIndex: 0 maxValue: -1 found a new maximum!
  • 4. Find the Maximum Algorithm currentIndex: 0 maxValue: 5 found a new maximum! 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 5. Find the Maximum Algorithm currentIndex: 1 maxValue: 5 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 6. Find the Maximum Algorithm currentIndex: 2 maxValue: 5 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 7. Find the Maximum Algorithm currentIndex: 3 maxValue: 5 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 8. Find the Maximum Algorithm currentIndex: 4 maxValue: 5 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8 found a new maximum!
  • 9. Find the Maximum Algorithm currentIndex: 4 maxValue: 9 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8 found a new maximum!
  • 10. Find the Maximum Algorithm currentIndex: 5 maxValue: 9 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 11. Find the Maximum Algorithm currentIndex: 6 maxValue: 9 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 12. Find the Maximum Algorithm currentIndex: 7 maxValue: 9 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 13. Find the Maximum Algorithm currentIndex: 8 maxValue: 9 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8
  • 14. Find the Maximum Algorithm currentIndex: 8 maxValue: 9 Finished: output is 9 5 3 1 2 9 8 7 3 9 0 1 2 3 4 5 6 7 8