SlideShare a Scribd company logo
1 of 13
Artificial Intelligence tutorial
Hill Climbing Algorithm
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
Introduction
• Hill climbing algorithm is a local search
algorithm which continuously moves in the
direction of increasing 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.
• Hill climbing algorithm is a local search
algorithm which continuously moves in the
direction of increasing 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.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
Introduction
• Hill climbing algorithm is a technique which is
used for optimizing the mathematical
problems. One of the widely discussed
examples of Hill climbing algorithm is
Traveling-salesman Problem in which we need
to minimize the distance traveled by the
salesman.
• Hill climbing algorithm is a technique which is
used for optimizing the mathematical
problems. One of the widely discussed
examples of Hill climbing algorithm is
Traveling-salesman Problem in which we need
to minimize the distance traveled by the
salesman.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
Introduction
• It is also called greedy local search as it only
looks to its good immediate neighbor state
and not beyond that.
• A node of hill climbing algorithm has two
components which are state and value.
• In this algorithm, we don't need to maintain
and handle the search tree or graph as it only
keeps a single current state.
• It is also called greedy local search as it only
looks to its good immediate neighbor state
and not beyond that.
• A node of hill climbing algorithm has two
components which are state and value.
• In this algorithm, we don't need to maintain
and handle the search tree or graph as it only
keeps a single current state.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
Features of Hill Climbing:-
• Greedy approach: Hill-climbing algorithm
search moves in the direction which optimizes
the cost.
• No backtracking: It does not backtrack the
search space, as it does not remember the
previous states.
• Greedy approach: Hill-climbing algorithm
search moves in the direction which optimizes
the cost.
• No backtracking: It does not backtrack the
search space, as it does not remember the
previous states.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
State-space Diagram for Hill Climbing
• The state-space landscape is a graphical
representation of the hill-climbing algorithm
which is showing a graph between various
states of algorithm and Objective
function/Cost
• On Y-axis we have taken the function which
can be an objective function or cost function,
and state-space on the x-axis.
• The state-space landscape is a graphical
representation of the hill-climbing algorithm
which is showing a graph between various
states of algorithm and Objective
function/Cost
• On Y-axis we have taken the function which
can be an objective function or cost function,
and state-space on the x-axis.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
State-space Diagram for Hill Climbing
• If the function on Y-axis is cost then, the goal
of search is to find the global minimum and
local minimum.
• If the function of Y-axis is Objective function,
then the goal of the search is to find the global
maximum and local maximum.
• If the function on Y-axis is cost then, the goal
of search is to find the global minimum and
local minimum.
• If the function of Y-axis is Objective function,
then the goal of the search is to find the global
maximum and local maximum.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
State-space Diagram for Hill Climbing
• Local Maximum: Local maximum is a state
which is better than its neighbor states, but
there is also another state which is higher
than it.
• Global Maximum: Global maximum is the best
possible state of state space landscape. It has
the highest value of objective function.
• Current state: It is a state in a landscape
diagram where an agent is currently present.
• Local Maximum: Local maximum is a state
which is better than its neighbor states, but
there is also another state which is higher
than it.
• Global Maximum: Global maximum is the best
possible state of state space landscape. It has
the highest value of objective function.
• Current state: It is a state in a landscape
diagram where an agent is currently present.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
State-space Diagram for Hill Climbing
Our Website:-
Pywix.blogspot.com Rahul Gupta Sir Video by Digital classes
State-space Diagram for Hill Climbing
• Flat local maximum: It is a flat space in the
landscape where all the neighbor states of
current states have the same value.
• Shoulder: It is a plateau region which has an
uphill edge.
• Flat local maximum: It is a flat space in the
landscape where all the neighbor states of
current states have the same value.
• Shoulder: It is a plateau region which has an
uphill edge.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
Problems in Hill Climbing Algorithm
• 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.
• 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.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
Problems in Hill Climbing Algorithm
• 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.
• 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.
Our website:-
pywix.blogspot.com
Video by Digital classesRahul Gupta Sir
• Visit our website
• http://pywix.blogspot.com/
• Our youtube channel
• https://www.youtube.com/channel/UCaVvaWTj-
3VRbpKhjBsbWpA?view_as=subscriber
• Visit our website
• http://pywix.blogspot.com/
• Our youtube channel
• https://www.youtube.com/channel/UCaVvaWTj-
3VRbpKhjBsbWpA?view_as=subscriber
Our website:-
pywix.blogspot.com
Rahul Gupta Sir Video by Digital classes

More Related Content

What's hot

Matching techniques
Matching techniquesMatching techniques
Matching techniquesNagpalkirti
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchDheerendra k
 
Ch2 properties of the task environment
Ch2 properties of the task environmentCh2 properties of the task environment
Ch2 properties of the task environmentJulyn Mae Pagmanoja
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptxMghooolMasier
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchTekendra Nath Yogi
 
Informed search algorithms.pptx
Informed search algorithms.pptxInformed search algorithms.pptx
Informed search algorithms.pptxDr.Shweta
 
AI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptxAI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptxPankaj Debbarma
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligencesandeep54552
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search techniqueKapil Dahal
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
 
State transition testing-software_testing
State transition testing-software_testingState transition testing-software_testing
State transition testing-software_testingMidhun S
 
State Space Search and Control Strategies in Artificial Intelligence.pptx
State Space Search and Control Strategies in Artificial Intelligence.pptxState Space Search and Control Strategies in Artificial Intelligence.pptx
State Space Search and Control Strategies in Artificial Intelligence.pptxRSAISHANKAR
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithmMegha Sharma
 
Production System in AI
Production System in AIProduction System in AI
Production System in AIBharat Bhushan
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed SearchHema Kashyap
 

What's hot (20)

Matching techniques
Matching techniquesMatching techniques
Matching techniques
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
 
Ch2 properties of the task environment
Ch2 properties of the task environmentCh2 properties of the task environment
Ch2 properties of the task environment
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptx
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed search
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Informed search algorithms.pptx
Informed search algorithms.pptxInformed search algorithms.pptx
Informed search algorithms.pptx
 
AI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptxAI-06 Search Techniques - Informed.pptx
AI-06 Search Techniques - Informed.pptx
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
 
Intelligent Agents
Intelligent AgentsIntelligent Agents
Intelligent Agents
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search technique
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
State transition testing-software_testing
State transition testing-software_testingState transition testing-software_testing
State transition testing-software_testing
 
State Space Search and Control Strategies in Artificial Intelligence.pptx
State Space Search and Control Strategies in Artificial Intelligence.pptxState Space Search and Control Strategies in Artificial Intelligence.pptx
State Space Search and Control Strategies in Artificial Intelligence.pptx
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithm
 
Production System in AI
Production System in AIProduction System in AI
Production System in AI
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed Search
 
Checkpoints of the Process
Checkpoints of the ProcessCheckpoints of the Process
Checkpoints of the Process
 

Similar to hill climbing algorithm in artificial intelligence

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
 
anintroductiontoreinforcementlearning-180912151720.pdf
anintroductiontoreinforcementlearning-180912151720.pdfanintroductiontoreinforcementlearning-180912151720.pdf
anintroductiontoreinforcementlearning-180912151720.pdfssuseradaf5f
 
An introduction to reinforcement learning
An introduction to reinforcement learningAn introduction to reinforcement learning
An introduction to reinforcement learningSubrat Panda, PhD
 
Heuristic search
Heuristic searchHeuristic search
Heuristic searchNivethaS35
 
The deep bootstrap framework review
The deep bootstrap framework reviewThe deep bootstrap framework review
The deep bootstrap framework reviewtaeseon ryu
 
Integration
IntegrationIntegration
IntegrationStevoC
 
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
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmvikas dhakane
 
AWS Stockholm Meetup June 2019 - Cybercom DeepRacer story
AWS Stockholm Meetup June 2019 - Cybercom DeepRacer storyAWS Stockholm Meetup June 2019 - Cybercom DeepRacer story
AWS Stockholm Meetup June 2019 - Cybercom DeepRacer storyRolf Koski
 
AWS Finland Meetup June 2019 - DeepRacer story
AWS Finland Meetup June 2019 - DeepRacer storyAWS Finland Meetup June 2019 - DeepRacer story
AWS Finland Meetup June 2019 - DeepRacer storyJouni Luoma
 
Heuristic search
Heuristic searchHeuristic search
Heuristic searchNivethaS35
 
Literature Review - Presentation on Relevant work for RL4AD capstone
Literature Review - Presentation on Relevant work for RL4AD capstoneLiterature Review - Presentation on Relevant work for RL4AD capstone
Literature Review - Presentation on Relevant work for RL4AD capstoneMayank Gupta
 
Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...
Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...
Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...SmartCat
 
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
 
Demographics andweblogtargeting
Demographics andweblogtargetingDemographics andweblogtargeting
Demographics andweblogtargetingDoug Chang
 
An overview of gradient descent optimization algorithms
An overview of gradient descent optimization algorithms An overview of gradient descent optimization algorithms
An overview of gradient descent optimization algorithms Hakky St
 
Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]
Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]
Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]Shakeeb Ahmad Mohammad Mukhtar
 

Similar to hill climbing algorithm in artificial intelligence (20)

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
 
anintroductiontoreinforcementlearning-180912151720.pdf
anintroductiontoreinforcementlearning-180912151720.pdfanintroductiontoreinforcementlearning-180912151720.pdf
anintroductiontoreinforcementlearning-180912151720.pdf
 
An introduction to reinforcement learning
An introduction to reinforcement learningAn introduction to reinforcement learning
An introduction to reinforcement learning
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
The deep bootstrap framework review
The deep bootstrap framework reviewThe deep bootstrap framework review
The deep bootstrap framework review
 
Integration
IntegrationIntegration
Integration
 
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
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
 
AWS Stockholm Meetup June 2019 - Cybercom DeepRacer story
AWS Stockholm Meetup June 2019 - Cybercom DeepRacer storyAWS Stockholm Meetup June 2019 - Cybercom DeepRacer story
AWS Stockholm Meetup June 2019 - Cybercom DeepRacer story
 
AWS Finland Meetup June 2019 - DeepRacer story
AWS Finland Meetup June 2019 - DeepRacer storyAWS Finland Meetup June 2019 - DeepRacer story
AWS Finland Meetup June 2019 - DeepRacer story
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
AI_ppt.pptx
AI_ppt.pptxAI_ppt.pptx
AI_ppt.pptx
 
talk
talktalk
talk
 
Literature Review - Presentation on Relevant work for RL4AD capstone
Literature Review - Presentation on Relevant work for RL4AD capstoneLiterature Review - Presentation on Relevant work for RL4AD capstone
Literature Review - Presentation on Relevant work for RL4AD capstone
 
Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...
Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...
Navigation in 3 d environment with reinforcement learning by Predrag Njegovan...
 
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
 
Demographics andweblogtargeting
Demographics andweblogtargetingDemographics andweblogtargeting
Demographics andweblogtargeting
 
An overview of gradient descent optimization algorithms
An overview of gradient descent optimization algorithms An overview of gradient descent optimization algorithms
An overview of gradient descent optimization algorithms
 
02LocalSearch.pdf
02LocalSearch.pdf02LocalSearch.pdf
02LocalSearch.pdf
 
Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]
Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]
Q-Learning Algorithm: A Concise Introduction [Shakeeb A.]
 

More from Rahul Gupta

LINKED LIST.pptx
LINKED LIST.pptxLINKED LIST.pptx
LINKED LIST.pptxRahul Gupta
 
COMPUTER VOCATIONAL PHP THIRD YEAR MGSU PREVIOUS YEAR PAPER2020
COMPUTER VOCATIONAL PHP THIRD YEAR  MGSU PREVIOUS YEAR PAPER2020COMPUTER VOCATIONAL PHP THIRD YEAR  MGSU PREVIOUS YEAR PAPER2020
COMPUTER VOCATIONAL PHP THIRD YEAR MGSU PREVIOUS YEAR PAPER2020Rahul Gupta
 
Queue in data structure
Queue in data structureQueue in data structure
Queue in data structureRahul Gupta
 
Class 8th Formula Sheet | CBSE | NCERT
Class 8th Formula Sheet | CBSE | NCERTClass 8th Formula Sheet | CBSE | NCERT
Class 8th Formula Sheet | CBSE | NCERTRahul Gupta
 
Class 10th maths formula sheet
Class 10th maths formula sheetClass 10th maths formula sheet
Class 10th maths formula sheetRahul Gupta
 
A star algorithm in artificial intelligence
A star algorithm in artificial intelligenceA star algorithm in artificial intelligence
A star algorithm in artificial intelligenceRahul Gupta
 
Best first search algorithm in Artificial Intelligence
Best first search algorithm in Artificial IntelligenceBest first search algorithm in Artificial Intelligence
Best first search algorithm in Artificial IntelligenceRahul Gupta
 

More from Rahul Gupta (9)

LINKED LIST.pptx
LINKED LIST.pptxLINKED LIST.pptx
LINKED LIST.pptx
 
TAUTOLOGY.pptx
TAUTOLOGY.pptxTAUTOLOGY.pptx
TAUTOLOGY.pptx
 
COMPUTER VOCATIONAL PHP THIRD YEAR MGSU PREVIOUS YEAR PAPER2020
COMPUTER VOCATIONAL PHP THIRD YEAR  MGSU PREVIOUS YEAR PAPER2020COMPUTER VOCATIONAL PHP THIRD YEAR  MGSU PREVIOUS YEAR PAPER2020
COMPUTER VOCATIONAL PHP THIRD YEAR MGSU PREVIOUS YEAR PAPER2020
 
Queue in data structure
Queue in data structureQueue in data structure
Queue in data structure
 
Class 8th Formula Sheet | CBSE | NCERT
Class 8th Formula Sheet | CBSE | NCERTClass 8th Formula Sheet | CBSE | NCERT
Class 8th Formula Sheet | CBSE | NCERT
 
Class 10th maths formula sheet
Class 10th maths formula sheetClass 10th maths formula sheet
Class 10th maths formula sheet
 
Expert system
Expert systemExpert system
Expert system
 
A star algorithm in artificial intelligence
A star algorithm in artificial intelligenceA star algorithm in artificial intelligence
A star algorithm in artificial intelligence
 
Best first search algorithm in Artificial Intelligence
Best first search algorithm in Artificial IntelligenceBest first search algorithm in Artificial Intelligence
Best first search algorithm in Artificial Intelligence
 

Recently uploaded

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

hill climbing algorithm in artificial intelligence

  • 1. Artificial Intelligence tutorial Hill Climbing Algorithm Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 2. Introduction • Hill climbing algorithm is a local search algorithm which continuously moves in the direction of increasing 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. • Hill climbing algorithm is a local search algorithm which continuously moves in the direction of increasing 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. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 3. Introduction • Hill climbing algorithm is a technique which is used for optimizing the mathematical problems. One of the widely discussed examples of Hill climbing algorithm is Traveling-salesman Problem in which we need to minimize the distance traveled by the salesman. • Hill climbing algorithm is a technique which is used for optimizing the mathematical problems. One of the widely discussed examples of Hill climbing algorithm is Traveling-salesman Problem in which we need to minimize the distance traveled by the salesman. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 4. Introduction • It is also called greedy local search as it only looks to its good immediate neighbor state and not beyond that. • A node of hill climbing algorithm has two components which are state and value. • In this algorithm, we don't need to maintain and handle the search tree or graph as it only keeps a single current state. • It is also called greedy local search as it only looks to its good immediate neighbor state and not beyond that. • A node of hill climbing algorithm has two components which are state and value. • In this algorithm, we don't need to maintain and handle the search tree or graph as it only keeps a single current state. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 5. Features of Hill Climbing:- • Greedy approach: Hill-climbing algorithm search moves in the direction which optimizes the cost. • No backtracking: It does not backtrack the search space, as it does not remember the previous states. • Greedy approach: Hill-climbing algorithm search moves in the direction which optimizes the cost. • No backtracking: It does not backtrack the search space, as it does not remember the previous states. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 6. State-space Diagram for Hill Climbing • The state-space landscape is a graphical representation of the hill-climbing algorithm which is showing a graph between various states of algorithm and Objective function/Cost • On Y-axis we have taken the function which can be an objective function or cost function, and state-space on the x-axis. • The state-space landscape is a graphical representation of the hill-climbing algorithm which is showing a graph between various states of algorithm and Objective function/Cost • On Y-axis we have taken the function which can be an objective function or cost function, and state-space on the x-axis. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 7. State-space Diagram for Hill Climbing • If the function on Y-axis is cost then, the goal of search is to find the global minimum and local minimum. • If the function of Y-axis is Objective function, then the goal of the search is to find the global maximum and local maximum. • If the function on Y-axis is cost then, the goal of search is to find the global minimum and local minimum. • If the function of Y-axis is Objective function, then the goal of the search is to find the global maximum and local maximum. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 8. State-space Diagram for Hill Climbing • Local Maximum: Local maximum is a state which is better than its neighbor states, but there is also another state which is higher than it. • Global Maximum: Global maximum is the best possible state of state space landscape. It has the highest value of objective function. • Current state: It is a state in a landscape diagram where an agent is currently present. • Local Maximum: Local maximum is a state which is better than its neighbor states, but there is also another state which is higher than it. • Global Maximum: Global maximum is the best possible state of state space landscape. It has the highest value of objective function. • Current state: It is a state in a landscape diagram where an agent is currently present. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 9. State-space Diagram for Hill Climbing Our Website:- Pywix.blogspot.com Rahul Gupta Sir Video by Digital classes
  • 10. State-space Diagram for Hill Climbing • Flat local maximum: It is a flat space in the landscape where all the neighbor states of current states have the same value. • Shoulder: It is a plateau region which has an uphill edge. • Flat local maximum: It is a flat space in the landscape where all the neighbor states of current states have the same value. • Shoulder: It is a plateau region which has an uphill edge. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 11. Problems in Hill Climbing Algorithm • 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. • 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. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 12. Problems in Hill Climbing Algorithm • 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. • 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. Our website:- pywix.blogspot.com Video by Digital classesRahul Gupta Sir
  • 13. • Visit our website • http://pywix.blogspot.com/ • Our youtube channel • https://www.youtube.com/channel/UCaVvaWTj- 3VRbpKhjBsbWpA?view_as=subscriber • Visit our website • http://pywix.blogspot.com/ • Our youtube channel • https://www.youtube.com/channel/UCaVvaWTj- 3VRbpKhjBsbWpA?view_as=subscriber Our website:- pywix.blogspot.com Rahul Gupta Sir Video by Digital classes