SlideShare a Scribd company logo
1 of 15
HILL CLIMBING
SEARCH
ALGORITHM
GROUP 12
MC
TABLE OF CONTENTS
WHAT IS HILL CLIMBING? 1
IMPLEMENTATION PROCEDURE 2
ILLUSTRATION OF ALGORITHM PROCEDURE WITH EXAMPLES 3
PROPERTIES OF HILL CLIMBING SEARCH ALGORITHM 4
MERITS AND DEMERITS OF HILL CLIMBING SEARCH ALGORITHM 5
CODE REPRESENTATIONS 6
HILL CLIMBING
ALGORITHM
Hill climbing is a heuristic search used
for mathematical optimization
problems in the field of Artificial
Intelligence.
Given a large set of inputs and a good
heuristic function, it tries to find
sufficiently good solution to the
problem.
IMPLEMENTATION
PROCEDURE
The hill climbing algorithm is a simple
optimization algorithm that uses an iterative
process to find the best solution. The algorithm
starts with an initial solution and then makes
small changes to it in the hopes of improving it
STEPS IN IMPLEMENTING THE
SEARCH ALGORITHM
INITIALIZATION
Starts with an initial solution within the
workspace
EVALUATION
Evaluate the quality of the current solution using an
objective function or fitness measure.
SELECTING A NEIGHBORING STATE
Apply an operator to the current state to select a neighboring
state within the loop.
EVALUATE THE NEW STATE
If the new state is the goal state, return success and exit. If it's
better than the current state, update the current state to this
new state. If it's not better, discard it and continue the loop.
CONTINUE ITERATING
Continue iterating until the solution state is reached or until
no new operators are available to be applied to the current
state.
PROPERTIES OF HILL CLIMBING ALGORITHM
• Generate and Test Approach: This feature involves generating
neighboring solutions and evaluating their effectiveness, always
aiming for an upward move in the solution space.
• Follows Greedy Approach: Unlike other algorithms, Hill Climbing does
not revisit or reconsider previous decisions, persistently moving
forward in the quest for the optimal solution.
• No backtracking: Unlike other algorithms, Hill Climbing does not revisit
or reconsider previous decisions, persistently moving forward in the
quest for the optimal solution.
MERITS AND DEMERITS OF HILL
CLIMBING
APPLICATIONS OF HILL CLIMBING
 Marketing: It’s instrumental in solving the classic Traveling-Salesman
problems, optimizing sales routes, and reducing travel time. This
leads to more efficient sales operations and better resource
utilization.
 Robotics: enhancing the performance and coordination of various
robotic components. This leads to more sophisticated and efficient
robotic systems performing complex tasks.
 Game Theory: In AI-based gaming, the algorithm is pivotal in
developing sophisticated strategies identifying moves that maximize
winning chances or scores.
SIMPLE EXAMPLE OF HILL
CLIMBING
Finding the shortest path between a number of points
and places that must be visited is the goal of the
algorithmic problem known as the “traveling salesman
problem” (TSP). The input here is a 2D array of
coordinates of cities and the output is a list of
integers that indicates the numbers of cities in
order(starting from zero)
PYTHON CODE IMPLEMENTATION
CONCLUSION
The Hill Climbing Algorithm, with its simple yet
effective approach, stands as an essential tool in AI. Its
adaptability across various domains highlights its
significance in AI and optimization. Despite its inherent
limitations, as AI continues to evolve, the role of this
algorithm in navigating complex problems remains
indispensable.
REFERENCES
• Dhondge, T. (2022, October 30). Hill Climbing
Algorithm in Python - AskPython. AskPython.
https://www.askpython.com/python/examples/hill-
climbing-algorithm-in-python
GROUP MEMBERS
• AGYAPONG SOLOMON
• AWORTWE FRANCIS JUNIOR
• CYRILINA BRADI
• SANTA MICHAEL
• AMEZUWOE DONNE
• FELIX SARFO KANTANKA
• HACKMAN RAYMOND
• APPIAH DAVID
• KONTOH JOSHUA OWUSU
THANK YOU

More Related Content

Similar to IDDFS ALGORITHM in artificial intelligence

Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm design
Nahid Hasan
 

Similar to IDDFS ALGORITHM in artificial intelligence (20)

Tuning for Systematic Trading: Talk 1
Tuning for Systematic Trading: Talk 1Tuning for Systematic Trading: Talk 1
Tuning for Systematic Trading: Talk 1
 
Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm design
 
1 resource optimization 2
1 resource optimization 21 resource optimization 2
1 resource optimization 2
 
Lecture-4-Linear Regression-Gradient Descent Solution.PPTX
Lecture-4-Linear Regression-Gradient Descent Solution.PPTXLecture-4-Linear Regression-Gradient Descent Solution.PPTX
Lecture-4-Linear Regression-Gradient Descent Solution.PPTX
 
Algorithm Design Presentation
Algorithm Design PresentationAlgorithm Design Presentation
Algorithm Design Presentation
 
Reinforcement Learning
Reinforcement LearningReinforcement Learning
Reinforcement Learning
 
Introduction of Deep Reinforcement Learning
Introduction of Deep Reinforcement LearningIntroduction of Deep Reinforcement Learning
Introduction of Deep Reinforcement Learning
 
Six Sigma Overview
Six Sigma OverviewSix Sigma Overview
Six Sigma Overview
 
Lpp through graphical analysis
Lpp through graphical analysis Lpp through graphical analysis
Lpp through graphical analysis
 
Operations research lpp
Operations research lppOperations research lpp
Operations research lpp
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptx
 
Reinforcement learning
Reinforcement learningReinforcement learning
Reinforcement learning
 
Six Sigma overview for Grad School
Six Sigma overview for Grad SchoolSix Sigma overview for Grad School
Six Sigma overview for Grad School
 
Fdp session rtu session 1
Fdp session rtu session 1Fdp session rtu session 1
Fdp session rtu session 1
 
Production model lifecycle management 2016 09
Production model lifecycle management 2016 09Production model lifecycle management 2016 09
Production model lifecycle management 2016 09
 
Lecture-4-Linear Regression-Gradient Descent Solution.ppt
Lecture-4-Linear Regression-Gradient Descent Solution.pptLecture-4-Linear Regression-Gradient Descent Solution.ppt
Lecture-4-Linear Regression-Gradient Descent Solution.ppt
 
AOA Week 01.ppt
AOA Week 01.pptAOA Week 01.ppt
AOA Week 01.ppt
 
Analysis and Design of Algorithms
Analysis and Design of AlgorithmsAnalysis and Design of Algorithms
Analysis and Design of Algorithms
 
TensorFlow London 17: Practical Reinforcement Learning with OpenAI
TensorFlow London 17: Practical Reinforcement Learning with OpenAITensorFlow London 17: Practical Reinforcement Learning with OpenAI
TensorFlow London 17: Practical Reinforcement Learning with OpenAI
 
Synthesis of analytical methods data driven decision-making
Synthesis of analytical methods data driven decision-makingSynthesis of analytical methods data driven decision-making
Synthesis of analytical methods data driven decision-making
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 

IDDFS ALGORITHM in artificial intelligence

  • 2. TABLE OF CONTENTS WHAT IS HILL CLIMBING? 1 IMPLEMENTATION PROCEDURE 2 ILLUSTRATION OF ALGORITHM PROCEDURE WITH EXAMPLES 3 PROPERTIES OF HILL CLIMBING SEARCH ALGORITHM 4 MERITS AND DEMERITS OF HILL CLIMBING SEARCH ALGORITHM 5 CODE REPRESENTATIONS 6
  • 3. HILL CLIMBING ALGORITHM Hill climbing is a heuristic search used for mathematical optimization problems in the field of Artificial Intelligence. Given a large set of inputs and a good heuristic function, it tries to find sufficiently good solution to the problem.
  • 4. IMPLEMENTATION PROCEDURE The hill climbing algorithm is a simple optimization algorithm that uses an iterative process to find the best solution. The algorithm starts with an initial solution and then makes small changes to it in the hopes of improving it
  • 5. STEPS IN IMPLEMENTING THE SEARCH ALGORITHM INITIALIZATION Starts with an initial solution within the workspace EVALUATION Evaluate the quality of the current solution using an objective function or fitness measure. SELECTING A NEIGHBORING STATE Apply an operator to the current state to select a neighboring state within the loop. EVALUATE THE NEW STATE If the new state is the goal state, return success and exit. If it's better than the current state, update the current state to this new state. If it's not better, discard it and continue the loop. CONTINUE ITERATING Continue iterating until the solution state is reached or until no new operators are available to be applied to the current state.
  • 6.
  • 7. PROPERTIES OF HILL CLIMBING ALGORITHM • Generate and Test Approach: This feature involves generating neighboring solutions and evaluating their effectiveness, always aiming for an upward move in the solution space. • Follows Greedy Approach: Unlike other algorithms, Hill Climbing does not revisit or reconsider previous decisions, persistently moving forward in the quest for the optimal solution. • No backtracking: Unlike other algorithms, Hill Climbing does not revisit or reconsider previous decisions, persistently moving forward in the quest for the optimal solution.
  • 8. MERITS AND DEMERITS OF HILL CLIMBING
  • 9. APPLICATIONS OF HILL CLIMBING  Marketing: It’s instrumental in solving the classic Traveling-Salesman problems, optimizing sales routes, and reducing travel time. This leads to more efficient sales operations and better resource utilization.  Robotics: enhancing the performance and coordination of various robotic components. This leads to more sophisticated and efficient robotic systems performing complex tasks.  Game Theory: In AI-based gaming, the algorithm is pivotal in developing sophisticated strategies identifying moves that maximize winning chances or scores.
  • 10. SIMPLE EXAMPLE OF HILL CLIMBING Finding the shortest path between a number of points and places that must be visited is the goal of the algorithmic problem known as the “traveling salesman problem” (TSP). The input here is a 2D array of coordinates of cities and the output is a list of integers that indicates the numbers of cities in order(starting from zero)
  • 12. CONCLUSION The Hill Climbing Algorithm, with its simple yet effective approach, stands as an essential tool in AI. Its adaptability across various domains highlights its significance in AI and optimization. Despite its inherent limitations, as AI continues to evolve, the role of this algorithm in navigating complex problems remains indispensable.
  • 13. REFERENCES • Dhondge, T. (2022, October 30). Hill Climbing Algorithm in Python - AskPython. AskPython. https://www.askpython.com/python/examples/hill- climbing-algorithm-in-python
  • 14. GROUP MEMBERS • AGYAPONG SOLOMON • AWORTWE FRANCIS JUNIOR • CYRILINA BRADI • SANTA MICHAEL • AMEZUWOE DONNE • FELIX SARFO KANTANKA • HACKMAN RAYMOND • APPIAH DAVID • KONTOH JOSHUA OWUSU