SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Click to edit Master title style
1
Click to edit Master title style
2
Hill Climbing Algorithm: Introduction
2
 It is a local search algorithm which continuously moves in the direction of increasing
elevation/value to find the peak of the mountain or best solution to the problem. It terminates
when it reaches a peak value where no neighbor has a higher value.
 It has a time complexity of O(∞) but a space complexity of O(b).
 It is also a technique which is used for optimizing the mathematical problems. Like in the
case of TSP.
 It is also called greedy local search as it only looks to its good immediate neighbor state and
not beyond that.
 Hill Climbing is mostly used when a good heuristic is available. The process of continuous
improvement of the current state of iteration can be termed as climbing. This explains why the
algorithm is termed as a hill-climbing algorithm.
 In this algorithm, we don't need to maintain and handle the search tree or graph as it only
keeps a single current state.
Click to edit Master title style
3 3
Features of Hill Climbing:
A hill-climbing algorithm has four main features:
 Greedy approach: This means that it moves in a direction in which the cost
function is optimized. The greedy approach enables the algorithm to establish local
maxima or minima.
 No Backtracking: A hill-climbing algorithm only works on the current state and
succeeding states (future). It does not look at the previous states.
 Feedback mechanism: The algorithm has a feedback mechanism that helps it
decide on the direction of movement (whether up or down the hill). The feedback
mechanism is enhanced through the generate-and-test technique.
 Incremental change: The algorithm improves the current solution by
incremental changes.
Click to edit Master title style
4 4
Various regions in the state
space landscape
A state-space diagram consists of various regions that can be explained as
follows:
 Local maximum: A local maximum is a solution that surpasses other
neighboring solutions or states but is not the best possible solution.
 Global maximum: This is the best possible solution achieved by the
algorithm.
 Current state: This is the existing or present state.
 Flat local maximum: This is a flat region where the neighboring
solutions attain the same value.
 Shoulder: This is a plateau whose edge is stretching upwards.
Click to edit Master title style
5 5
State-space Diagram for Hill Climbing
A state-space diagram provides a graphical representation of
states and the optimization function. If the objective function is the
y-axis, we aim to establish the local maximum and global
maximum.
If the cost function represents this axis, we aim to establish the
local minimum and global minimum.
The following diagram shows a simple state-space diagram. The
objective function has been shown on the y-axis, while the state-
space represents the x-axis.
Click to edit Master title style
6 6
Types of Hill Climbing
Algorithm
=> Simple hill Climbing
=> Steepest-Ascent hill-climbing
=> Stochastic hill Climbing
Click to edit Master title style
7 7
1. Simple Hill Climbing
 Simple hill climbing is the simplest way to implement a hill climbing
algorithm.
 It only evaluates the neighbor node state at a time and selects the
first one which optimizes current cost and set it as a current state.
 It only checks it's one successor state, and if it finds better than the
current state, then move else be in the same state.
 This algorithm has the following features:
o Less time consuming
o Less optimal solution and the solution is not guaranteed
Click to edit Master title style
8 8
Algorithm for Simple Hill
Climbing
Step 1: Evaluate the initial state, if it is goal state then return success and Stop.
Step 2: Loop Until a solution is found or there is no new operator left to apply.
Step 3: Select and apply an operator to the current state.
Step 4: Check new state:
If it is goal state, then return success and quit.
Else if it is better than the current state then assign new state as a current state.
Else if not better than the current state, then return to step2.
Step 5: Exit.
Click to edit Master title style
9 9
2. Steepest-Ascent hill climbing
 The steepest-Ascent algorithm is a variation of simple hill
climbing algorithm.
 This algorithm examines all the neighboring nodes of the current
state and selects one neighbor node which is closest to the goal
state.
 This algorithm consumes more time as it searches for multiple
neighbors.
Click to edit Master title style
1010
Algorithm for Steepest-Ascent
hill climbing
Step 1: Evaluate the initial state, if it is goal state then return success and stop, else make
current state as initial state.
Step 2: Loop until a solution is found or the current state does not change.
Let there be a state A such that any successor of the current state will be better than it.
Step 3: For each operator that applies to the current state:
o Apply the new operator and generate a new state.
o Evaluate the new state.
Step 4:
o If it is goal state, then return it and quit, else compare it to the A.
o If it is better than A, then set new state as A.
o If the A is better than the current state, then set current state to A.
Step 5: Exit.
Click to edit Master title style
1111
3. Stochastic hill climbing
 Stochastic hill climbing does not examine for all its neighbor before
moving.
 Rather, this search algorithm selects one neighbor node at random and
decides whether to choose it as a current state or examine another state.
Click to edit Master title style
1212
Problems in Hill Climbing
Algorithm
1. Local Maximum: A local maximum is a peak state in the
landscape which is better than each of its neighboring
states, but there is another state also present which is
higher than the local maximum.
Solution: Backtracking technique can be a solution of the local
maximum in state space landscape. Create a list of
the promising path so that the algorithm can
backtrack the search space and explore other paths
as well.
Click to edit Master title style
1313
2. Plateau: A plateau is the flat area of the search space in which
all the neighbor states of the current state contains the same
value, because of this algorithm does not find any best direction
to move. A hill-climbing search might be lost in the plateau area.
Solution: The solution for the plateau is to take big steps or very
little steps while searching, to solve the problem.
Randomly select a state which is far away from the
current state so it is possible that the algorithm could
find non-plateau region.
3. Ridges: A ridge is a special form of the local maximum. It has
an area which is higher than its surrounding areas, but itself has a
slope, and cannot be reached in a single move.
Solution: This impediment can be solved by going in different
directions at once.
Click to edit Master title style
1414
Simulated Annealing
 A hill-climbing algorithm which never makes a move towards a lower value
guaranteed to be incomplete because it can get stuck on a local maximum. And if
algorithm applies a random walk, by moving a successor, then it may complete
but not efficient.
 Simulated Annealing is an algorithm which yields both efficiency and
completeness.
 In mechanical term Annealing is a process of hardening a metal or glass to a
high temperature then cooling gradually, so this allows the metal to reach a low-
energy crystalline state.
 The same process is used in simulated annealing in which the algorithm picks
a random move, instead of picking the best move. If the random move improves
the state, then it follows the same path. Otherwise, the algorithm follows the path
which has a probability of less than 1 or it moves downhill and chooses another
path.
Click to edit Master title style
1515
Applications of Hill Searching
The hill-climbing algorithm can be applied in the following areas:
1) Marketing:
A hill-climbing algorithm can help a marketing manager to develop the best marketing
plans. This algorithm is widely used in solving Traveling-Salesman problems. It can help
by optimizing the distance covered and improving the travel time of sales team members.
The algorithm helps establish the local minima efficiently.
2) Robotics:
Hill climbing is useful in the effective operation of robotics. It enhances the coordination of
different systems and components in robots.
3) Job Scheduling:
The hill climbing algorithm has also been applied in job scheduling. This is a process in
which system resources are allocated to different tasks within a computer system. Job
scheduling is achieved through the migration of jobs from one node to a neighboring
node. A hill-climbing technique helps establish the right migration route.
Click to edit Master title style
1616
Conclusion
 Hill climbing is a very resourceful technique used in solving huge
computational problems. It can help establish the best solution for
problems. This technique has the potential of revolutionizing optimization
within artificial intelligence.
 In the future, technological advancement to the hill climbing technique
will solve diverse and unique optimization problems with better advanced
features.
Click to edit Master title style
17
Thank You!

Weitere ähnliche Inhalte

Was ist angesagt?

Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Adversarial Search
Adversarial SearchAdversarial Search
Adversarial SearchMegha Sharma
 
Reinforcement learning, Q-Learning
Reinforcement learning, Q-LearningReinforcement learning, Q-Learning
Reinforcement learning, Q-LearningKuppusamy P
 
Lecture 26 local beam search
Lecture 26 local beam searchLecture 26 local beam search
Lecture 26 local beam searchHema Kashyap
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligencegrinu
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesFahim Ferdous
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemMohammad Imam Hossain
 
AI Heuristic Search - Beam Search - Simulated Annealing
AI Heuristic Search - Beam Search - Simulated AnnealingAI Heuristic Search - Beam Search - Simulated Annealing
AI Heuristic Search - Beam Search - Simulated AnnealingAhmed Gad
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)Bablu Shofi
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithmMegha Sharma
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchTekendra Nath Yogi
 
Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Bharat Bhushan
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
 

Was ist angesagt? (20)

Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Adversarial Search
Adversarial SearchAdversarial Search
Adversarial Search
 
Reinforcement learning, Q-Learning
Reinforcement learning, Q-LearningReinforcement learning, Q-Learning
Reinforcement learning, Q-Learning
 
Lecture 26 local beam search
Lecture 26 local beam searchLecture 26 local beam search
Lecture 26 local beam search
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
AI Heuristic Search - Beam Search - Simulated Annealing
AI Heuristic Search - Beam Search - Simulated AnnealingAI Heuristic Search - Beam Search - Simulated Annealing
AI Heuristic Search - Beam Search - Simulated Annealing
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
Ai 8 puzzle problem
Ai 8 puzzle problemAi 8 puzzle problem
Ai 8 puzzle problem
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithm
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed search
 
Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Heuristics Search Techniques in AI
Heuristics Search Techniques in AI
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Informed search
Informed searchInformed search
Informed search
 

Ähnlich wie AI_ppt.pptx

hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptxMghooolMasier
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed searchHamzaJaved64
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search TechniquesJismy .K.Jose
 
AI_Session 9 Hill climbing algorithm.pptx
AI_Session 9 Hill climbing algorithm.pptxAI_Session 9 Hill climbing algorithm.pptx
AI_Session 9 Hill climbing algorithm.pptxAsst.prof M.Gokilavani
 
Informed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptxInformed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptxKirti Verma
 
AI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptxAI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptxAsst.prof M.Gokilavani
 
Traveling salesman problem
Traveling salesman problemTraveling salesman problem
Traveling salesman problemMohamed Gad
 
Artificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptxArtificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptxCCBProduction
 
24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptx24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptxManiMaran230751
 
Ai planning with evolutionary computing
Ai planning with evolutionary computingAi planning with evolutionary computing
Ai planning with evolutionary computingpinozz
 
Heuristic search
Heuristic searchHeuristic search
Heuristic searchNivethaS35
 
Hill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial IntelligenceHill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial IntelligenceBharat Bhushan
 
Hill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial IntelligenceHill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial IntelligenceBharat Bhushan
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptkarthikaparthasarath
 
Heuristic search
Heuristic searchHeuristic search
Heuristic searchNivethaS35
 
Amit ppt
Amit pptAmit ppt
Amit pptamitp26
 
unit-1-l3AI..........................ppt
unit-1-l3AI..........................pptunit-1-l3AI..........................ppt
unit-1-l3AI..........................pptShilpaBhatia32
 

Ähnlich wie AI_ppt.pptx (20)

hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptx
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed search
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search Techniques
 
AI_Session 9 Hill climbing algorithm.pptx
AI_Session 9 Hill climbing algorithm.pptxAI_Session 9 Hill climbing algorithm.pptx
AI_Session 9 Hill climbing algorithm.pptx
 
Hill Climbing.pptx
Hill Climbing.pptxHill Climbing.pptx
Hill Climbing.pptx
 
Informed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptxInformed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptx
 
AI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptxAI3391 Session 11 Hill climbing algorithm.pptx
AI3391 Session 11 Hill climbing algorithm.pptx
 
Traveling salesman problem
Traveling salesman problemTraveling salesman problem
Traveling salesman problem
 
Artificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptxArtificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptx
 
24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptx24.09.2021 Reinforcement Learning Algorithms.pptx
24.09.2021 Reinforcement Learning Algorithms.pptx
 
Ai planning with evolutionary computing
Ai planning with evolutionary computingAi planning with evolutionary computing
Ai planning with evolutionary computing
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Hill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial IntelligenceHill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial Intelligence
 
Hill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial IntelligenceHill Climbing Algorithm in Artificial Intelligence
Hill Climbing Algorithm in Artificial Intelligence
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.ppt
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Amit ppt
Amit pptAmit ppt
Amit ppt
 
CH2_AI_Lecture1.ppt
CH2_AI_Lecture1.pptCH2_AI_Lecture1.ppt
CH2_AI_Lecture1.ppt
 
unit-1-l3.ppt
unit-1-l3.pptunit-1-l3.ppt
unit-1-l3.ppt
 
unit-1-l3AI..........................ppt
unit-1-l3AI..........................pptunit-1-l3AI..........................ppt
unit-1-l3AI..........................ppt
 

Kürzlich hochgeladen

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Kürzlich hochgeladen (20)

complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 

AI_ppt.pptx

  • 1. Click to edit Master title style 1
  • 2. Click to edit Master title style 2 Hill Climbing Algorithm: Introduction 2  It is a local search algorithm which continuously moves in the direction of increasing elevation/value to find the peak of the mountain or best solution to the problem. It terminates when it reaches a peak value where no neighbor has a higher value.  It has a time complexity of O(∞) but a space complexity of O(b).  It is also a technique which is used for optimizing the mathematical problems. Like in the case of TSP.  It is also called greedy local search as it only looks to its good immediate neighbor state and not beyond that.  Hill Climbing is mostly used when a good heuristic is available. The process of continuous improvement of the current state of iteration can be termed as climbing. This explains why the algorithm is termed as a hill-climbing algorithm.  In this algorithm, we don't need to maintain and handle the search tree or graph as it only keeps a single current state.
  • 3. Click to edit Master title style 3 3 Features of Hill Climbing: A hill-climbing algorithm has four main features:  Greedy approach: This means that it moves in a direction in which the cost function is optimized. The greedy approach enables the algorithm to establish local maxima or minima.  No Backtracking: A hill-climbing algorithm only works on the current state and succeeding states (future). It does not look at the previous states.  Feedback mechanism: The algorithm has a feedback mechanism that helps it decide on the direction of movement (whether up or down the hill). The feedback mechanism is enhanced through the generate-and-test technique.  Incremental change: The algorithm improves the current solution by incremental changes.
  • 4. Click to edit Master title style 4 4 Various regions in the state space landscape A state-space diagram consists of various regions that can be explained as follows:  Local maximum: A local maximum is a solution that surpasses other neighboring solutions or states but is not the best possible solution.  Global maximum: This is the best possible solution achieved by the algorithm.  Current state: This is the existing or present state.  Flat local maximum: This is a flat region where the neighboring solutions attain the same value.  Shoulder: This is a plateau whose edge is stretching upwards.
  • 5. Click to edit Master title style 5 5 State-space Diagram for Hill Climbing A state-space diagram provides a graphical representation of states and the optimization function. If the objective function is the y-axis, we aim to establish the local maximum and global maximum. If the cost function represents this axis, we aim to establish the local minimum and global minimum. The following diagram shows a simple state-space diagram. The objective function has been shown on the y-axis, while the state- space represents the x-axis.
  • 6. Click to edit Master title style 6 6 Types of Hill Climbing Algorithm => Simple hill Climbing => Steepest-Ascent hill-climbing => Stochastic hill Climbing
  • 7. Click to edit Master title style 7 7 1. Simple Hill Climbing  Simple hill climbing is the simplest way to implement a hill climbing algorithm.  It only evaluates the neighbor node state at a time and selects the first one which optimizes current cost and set it as a current state.  It only checks it's one successor state, and if it finds better than the current state, then move else be in the same state.  This algorithm has the following features: o Less time consuming o Less optimal solution and the solution is not guaranteed
  • 8. Click to edit Master title style 8 8 Algorithm for Simple Hill Climbing Step 1: Evaluate the initial state, if it is goal state then return success and Stop. Step 2: Loop Until a solution is found or there is no new operator left to apply. Step 3: Select and apply an operator to the current state. Step 4: Check new state: If it is goal state, then return success and quit. Else if it is better than the current state then assign new state as a current state. Else if not better than the current state, then return to step2. Step 5: Exit.
  • 9. Click to edit Master title style 9 9 2. Steepest-Ascent hill climbing  The steepest-Ascent algorithm is a variation of simple hill climbing algorithm.  This algorithm examines all the neighboring nodes of the current state and selects one neighbor node which is closest to the goal state.  This algorithm consumes more time as it searches for multiple neighbors.
  • 10. Click to edit Master title style 1010 Algorithm for Steepest-Ascent hill climbing Step 1: Evaluate the initial state, if it is goal state then return success and stop, else make current state as initial state. Step 2: Loop until a solution is found or the current state does not change. Let there be a state A such that any successor of the current state will be better than it. Step 3: For each operator that applies to the current state: o Apply the new operator and generate a new state. o Evaluate the new state. Step 4: o If it is goal state, then return it and quit, else compare it to the A. o If it is better than A, then set new state as A. o If the A is better than the current state, then set current state to A. Step 5: Exit.
  • 11. Click to edit Master title style 1111 3. Stochastic hill climbing  Stochastic hill climbing does not examine for all its neighbor before moving.  Rather, this search algorithm selects one neighbor node at random and decides whether to choose it as a current state or examine another state.
  • 12. Click to edit Master title style 1212 Problems in Hill Climbing Algorithm 1. Local Maximum: A local maximum is a peak state in the landscape which is better than each of its neighboring states, but there is another state also present which is higher than the local maximum. Solution: Backtracking technique can be a solution of the local maximum in state space landscape. Create a list of the promising path so that the algorithm can backtrack the search space and explore other paths as well.
  • 13. Click to edit Master title style 1313 2. Plateau: A plateau is the flat area of the search space in which all the neighbor states of the current state contains the same value, because of this algorithm does not find any best direction to move. A hill-climbing search might be lost in the plateau area. Solution: The solution for the plateau is to take big steps or very little steps while searching, to solve the problem. Randomly select a state which is far away from the current state so it is possible that the algorithm could find non-plateau region. 3. Ridges: A ridge is a special form of the local maximum. It has an area which is higher than its surrounding areas, but itself has a slope, and cannot be reached in a single move. Solution: This impediment can be solved by going in different directions at once.
  • 14. Click to edit Master title style 1414 Simulated Annealing  A hill-climbing algorithm which never makes a move towards a lower value guaranteed to be incomplete because it can get stuck on a local maximum. And if algorithm applies a random walk, by moving a successor, then it may complete but not efficient.  Simulated Annealing is an algorithm which yields both efficiency and completeness.  In mechanical term Annealing is a process of hardening a metal or glass to a high temperature then cooling gradually, so this allows the metal to reach a low- energy crystalline state.  The same process is used in simulated annealing in which the algorithm picks a random move, instead of picking the best move. If the random move improves the state, then it follows the same path. Otherwise, the algorithm follows the path which has a probability of less than 1 or it moves downhill and chooses another path.
  • 15. Click to edit Master title style 1515 Applications of Hill Searching The hill-climbing algorithm can be applied in the following areas: 1) Marketing: A hill-climbing algorithm can help a marketing manager to develop the best marketing plans. This algorithm is widely used in solving Traveling-Salesman problems. It can help by optimizing the distance covered and improving the travel time of sales team members. The algorithm helps establish the local minima efficiently. 2) Robotics: Hill climbing is useful in the effective operation of robotics. It enhances the coordination of different systems and components in robots. 3) Job Scheduling: The hill climbing algorithm has also been applied in job scheduling. This is a process in which system resources are allocated to different tasks within a computer system. Job scheduling is achieved through the migration of jobs from one node to a neighboring node. A hill-climbing technique helps establish the right migration route.
  • 16. Click to edit Master title style 1616 Conclusion  Hill climbing is a very resourceful technique used in solving huge computational problems. It can help establish the best solution for problems. This technique has the potential of revolutionizing optimization within artificial intelligence.  In the future, technological advancement to the hill climbing technique will solve diverse and unique optimization problems with better advanced features.
  • 17. Click to edit Master title style 17 Thank You!