SlideShare a Scribd company logo
Presentation
on
By
BHARAT BHUSHAN
Asst. Professor, Department of Computer Sc.
RLSY College, Ranchi
Buddha Science and Technical Institute, Ranchi
www.bharatsir.com
Hill Climbing & Its Variations
Artificial Intelligence
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Hill - Climbing
A hill-climbing algorithm is an Artificial
Intelligence (AI) algorithm that increases in
value continuously until it achieves a peak
solution.
This algorithm is used to optimize
mathematical problems and in other real-
life applications like marketing and job
scheduling.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Hill - Climbing
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.
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.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Features of Hill Climbing
Following are some main features of Hill Climbing
Algorithm:
Generate and Test Variant: Hill Climbing is the
variant of Generate and Test method. The Generate
and Test method produce feedback which helps to
decide which direction to move in the search space.
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.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
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
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Different regions in the state space landscape:
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.
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.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Types of Hill Climbing Algorithm:
 Simple Hill Climbing
 Steepest-Ascent Hill-Climbing
 Stochastic Hill Climbing
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
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:
Less time consuming
Less optimal solution and the solution is not
guaranteed
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
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:
(a) If it is goal state, then return success and quit.
(b) Else if it is better than the current state then
assign new state as a current state.
(c) Else if not better than the current state, then return
to step2.
Step 5: Exit.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
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
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
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.
A. Let SUCC be a state such that any successor of
the current state will be better than it.
B. For each operator that applies to the current
state:
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
a. Apply the new operator and generate a new
state.
b. Evaluate the new state.
c. If it is goal state, then return it and quit, else
compare it to the SUCC.
d. If it is better than SUCC, then set new state
as SUCC.
e. If the SUCC is better than the current state,
then set current state to SUCC.
Step 5: Exit.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Stochastic Hill Climbing
It does not examine all the neighboring nodes
before deciding which node to select. It just
selects a neighboring node at random and
decides (based on the amount of improvement
in that neighbor) whether to move to that
neighbor or to examine another.
• Evaluate the initial state. If it is a goal state
then stop and return success. Otherwise,
make the initial state the current state.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Stochastic Hill Climbing
• Repeat these steps until a solution is found
or the current state does not change.
 Select a state that has not been yet
applied to the current state.
 Apply the successor function to the
current state and generate all the
neighbor states.
 Among the generated neighbor states
which are better than the current state
choose a state randomly.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Stochastic Hill Climbing
 If the chosen state is the goal state, then
return success, else make it the current state
and repeat step 2 of the second point.
• Exit from the function.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Application of Hill Climbing
Hill Climbing technique can be used to solve
many problems, where the current state allows
for an accurate evaluation function, such as
1. Network-Flow
2. Travelling Salesman problem
3. 8-Queens problem
4. Integrated Circuit design, etc.
Hill Climbing is used in inductive learning
methods too.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Advantages of Hill Climbing
1. Hill Climbing can be used in continuous as
well as domains.
2. These technique is very useful in job shop
scheduling, automatic programming, circuit
designing, and vehicle routing.
3. It is also helpful to solve pure optimization
problems where the objective is to find the
best state according to the objective
function.
www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889
Artificial Intelligence
Disadvantages of Hill Climbing
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.
Bharat Bhushan, Assistant Professor, RLSY College, Ranchi
Artificial Intelligence
Ad

More Related Content

What's hot (20)

Hill climbing
Hill climbingHill climbing
Hill climbing
Mohammad Faizan
 
Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Heuristics Search Techniques in AI
Heuristics Search Techniques in AI
Bharat Bhushan
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
Animesh Chaturvedi
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.ppt
arunsingh660
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Jay Nagar
 
State space search and Problem Solving techniques
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniques
Kirti Verma
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
Nilu Desai
 
AI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAI - Local Search - Hill Climbing
AI - Local Search - Hill Climbing
Andrew Ferlitsch
 
State space search
State space searchState space search
State space search
chauhankapil
 
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfUNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
JenishaR1
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
Dr. C.V. Suresh Babu
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in ai
vikas dhakane
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
Ramla Sheikh
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
Dr. C.V. Suresh Babu
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
sandeep54552
 
AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)
Tajim Md. Niamat Ullah Akhund
 
Frames
FramesFrames
Frames
amitp26
 
Production System in AI
Production System in AIProduction System in AI
Production System in AI
Bharat Bhushan
 
Water jug problem ai part 6
Water jug problem ai part 6Water jug problem ai part 6
Water jug problem ai part 6
Kirti Verma
 
Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Heuristics Search Techniques in AI
Heuristics Search Techniques in AI
Bharat Bhushan
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
Animesh Chaturvedi
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.ppt
arunsingh660
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Jay Nagar
 
State space search and Problem Solving techniques
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniques
Kirti Verma
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
Nilu Desai
 
AI - Local Search - Hill Climbing
AI - Local Search - Hill ClimbingAI - Local Search - Hill Climbing
AI - Local Search - Hill Climbing
Andrew Ferlitsch
 
State space search
State space searchState space search
State space search
chauhankapil
 
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfUNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
JenishaR1
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
Dr. C.V. Suresh Babu
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in ai
vikas dhakane
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
Ramla Sheikh
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
sandeep54552
 
Production System in AI
Production System in AIProduction System in AI
Production System in AI
Bharat Bhushan
 
Water jug problem ai part 6
Water jug problem ai part 6Water jug problem ai part 6
Water jug problem ai part 6
Kirti Verma
 

Similar to Hill Climbing Algorithm in Artificial Intelligence (20)

unit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptx
unit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptxunit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptx
unit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptx
RRamya22
 
AI_ppt.pptx
AI_ppt.pptxAI_ppt.pptx
AI_ppt.pptx
SnehaTiwari84
 
Machine Learning Lecture Number three
Machine   Learning  Lecture Number threeMachine   Learning  Lecture Number three
Machine Learning Lecture Number three
ssksh1499
 
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
Guru Nanak Technical Institutions
 
Unit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programmingUnit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programming
LeahRachael
 
Heuristics Search Techniques
Heuristics Search TechniquesHeuristics Search Techniques
Heuristics Search Techniques
Bharat Bhushan
 
Rapid motor adaptation for legged robots
Rapid motor adaptation for legged robotsRapid motor adaptation for legged robots
Rapid motor adaptation for legged robots
Rohit Choudhury
 
Nss power point_machine_learning
Nss power point_machine_learningNss power point_machine_learning
Nss power point_machine_learning
Gauravsd2014
 
Paper on PLC
Paper on PLCPaper on PLC
Paper on PLC
Ajit Saruk
 
Atlas robotics assignment
Atlas robotics assignmentAtlas robotics assignment
Atlas robotics assignment
Jash Shah
 
Introduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIMLIntroduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIML
vsaipriya
 
8.-Hill-Climbing-Algorithm in Artificial.pdf
8.-Hill-Climbing-Algorithm in Artificial.pdf8.-Hill-Climbing-Algorithm in Artificial.pdf
8.-Hill-Climbing-Algorithm in Artificial.pdf
ratnababum
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Webinar20211
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
Bharat Bhushan
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
Bharat Bhushan
 
Searching Techniques in Artificial Intelligence
Searching Techniques in Artificial IntelligenceSearching Techniques in Artificial Intelligence
Searching Techniques in Artificial Intelligence
kapilhande1
 
chapter2.pptx
chapter2.pptxchapter2.pptx
chapter2.pptx
jpradha86
 
Final-AI-Problem Solving.pdf
Final-AI-Problem Solving.pdfFinal-AI-Problem Solving.pdf
Final-AI-Problem Solving.pdf
harinathkuruva
 
22PCOAM11 Session 5 Hill climbing algorithm.pptx
22PCOAM11 Session 5 Hill climbing algorithm.pptx22PCOAM11 Session 5 Hill climbing algorithm.pptx
22PCOAM11 Session 5 Hill climbing algorithm.pptx
Guru Nanak Technical Institutions
 
Vehicle detection and speed detection
Vehicle detection and speed detectionVehicle detection and speed detection
Vehicle detection and speed detection
Venkat Projects
 
unit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptx
unit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptxunit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptx
unit-2hillclimbinganditsvariation-230206170323-6fcb44fe.pptx
RRamya22
 
Machine Learning Lecture Number three
Machine   Learning  Lecture Number threeMachine   Learning  Lecture Number three
Machine Learning Lecture Number three
ssksh1499
 
Unit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programmingUnit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programming
LeahRachael
 
Heuristics Search Techniques
Heuristics Search TechniquesHeuristics Search Techniques
Heuristics Search Techniques
Bharat Bhushan
 
Rapid motor adaptation for legged robots
Rapid motor adaptation for legged robotsRapid motor adaptation for legged robots
Rapid motor adaptation for legged robots
Rohit Choudhury
 
Nss power point_machine_learning
Nss power point_machine_learningNss power point_machine_learning
Nss power point_machine_learning
Gauravsd2014
 
Atlas robotics assignment
Atlas robotics assignmentAtlas robotics assignment
Atlas robotics assignment
Jash Shah
 
Introduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIMLIntroduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIML
vsaipriya
 
8.-Hill-Climbing-Algorithm in Artificial.pdf
8.-Hill-Climbing-Algorithm in Artificial.pdf8.-Hill-Climbing-Algorithm in Artificial.pdf
8.-Hill-Climbing-Algorithm in Artificial.pdf
ratnababum
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Webinar20211
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
Bharat Bhushan
 
Problem Characteristics in Artificial Intelligence
Problem Characteristics in  Artificial IntelligenceProblem Characteristics in  Artificial Intelligence
Problem Characteristics in Artificial Intelligence
Bharat Bhushan
 
Searching Techniques in Artificial Intelligence
Searching Techniques in Artificial IntelligenceSearching Techniques in Artificial Intelligence
Searching Techniques in Artificial Intelligence
kapilhande1
 
chapter2.pptx
chapter2.pptxchapter2.pptx
chapter2.pptx
jpradha86
 
Final-AI-Problem Solving.pdf
Final-AI-Problem Solving.pdfFinal-AI-Problem Solving.pdf
Final-AI-Problem Solving.pdf
harinathkuruva
 
Vehicle detection and speed detection
Vehicle detection and speed detectionVehicle detection and speed detection
Vehicle detection and speed detection
Venkat Projects
 
Ad

More from Bharat Bhushan (20)

NIMCET 2023 : Questions
NIMCET 2023  : QuestionsNIMCET 2023  : Questions
NIMCET 2023 : Questions
Bharat Bhushan
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI
Bharat Bhushan
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI
Bharat Bhushan
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programming
Bharat Bhushan
 
Algorithm Design Technique
Algorithm Design Technique Algorithm Design Technique
Algorithm Design Technique
Bharat Bhushan
 
Introduction to Artificial Intteligence
Introduction to Artificial IntteligenceIntroduction to Artificial Intteligence
Introduction to Artificial Intteligence
Bharat Bhushan
 
Introduction to Artificial Intteligence
Introduction to Artificial IntteligenceIntroduction to Artificial Intteligence
Introduction to Artificial Intteligence
Bharat Bhushan
 
DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir
DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir
DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir
Bharat Bhushan
 
DESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMSDESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMS
Bharat Bhushan
 
ARTIFICIAL INTELLIGENCE
ARTIFICIAL INTELLIGENCE ARTIFICIAL INTELLIGENCE
ARTIFICIAL INTELLIGENCE
Bharat Bhushan
 
ARTIFICIAL INTELLIGENCE SYLLABUS
ARTIFICIAL INTELLIGENCE SYLLABUS ARTIFICIAL INTELLIGENCE SYLLABUS
ARTIFICIAL INTELLIGENCE SYLLABUS
Bharat Bhushan
 
Cyber Security
Cyber Security Cyber Security
Cyber Security
Bharat Bhushan
 
Cyber Security
Cyber Security Cyber Security
Cyber Security
Bharat Bhushan
 
Digital Content Creation By Bharat Sir Kokar
Digital Content Creation By Bharat Sir KokarDigital Content Creation By Bharat Sir Kokar
Digital Content Creation By Bharat Sir Kokar
Bharat Bhushan
 
Digital Content Creation by Bharat Sir Kokar
Digital Content Creation by Bharat Sir KokarDigital Content Creation by Bharat Sir Kokar
Digital Content Creation by Bharat Sir Kokar
Bharat Bhushan
 
NEET PHYSICS RANCHI
NEET PHYSICS RANCHINEET PHYSICS RANCHI
NEET PHYSICS RANCHI
Bharat Bhushan
 
Bharat Sir Kokar
Bharat Sir KokarBharat Sir Kokar
Bharat Sir Kokar
Bharat Bhushan
 
Buddha Science and Technical Institute
Buddha Science and Technical Institute Buddha Science and Technical Institute
Buddha Science and Technical Institute
Bharat Bhushan
 
The Information Technology ACT, 2000
The Information Technology ACT, 2000The Information Technology ACT, 2000
The Information Technology ACT, 2000
Bharat Bhushan
 
NEET PHYSICS KOKAR
NEET PHYSICS KOKARNEET PHYSICS KOKAR
NEET PHYSICS KOKAR
Bharat Bhushan
 
NIMCET 2023 : Questions
NIMCET 2023  : QuestionsNIMCET 2023  : Questions
NIMCET 2023 : Questions
Bharat Bhushan
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI
Bharat Bhushan
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI
Bharat Bhushan
 
Algorithm Design Technique
Algorithm Design Technique Algorithm Design Technique
Algorithm Design Technique
Bharat Bhushan
 
Introduction to Artificial Intteligence
Introduction to Artificial IntteligenceIntroduction to Artificial Intteligence
Introduction to Artificial Intteligence
Bharat Bhushan
 
Introduction to Artificial Intteligence
Introduction to Artificial IntteligenceIntroduction to Artificial Intteligence
Introduction to Artificial Intteligence
Bharat Bhushan
 
DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir
DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir
DESIGN AND ANALYSIS OF ALGORITHMS by Bharat Sir
Bharat Bhushan
 
DESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMSDESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMS
Bharat Bhushan
 
ARTIFICIAL INTELLIGENCE
ARTIFICIAL INTELLIGENCE ARTIFICIAL INTELLIGENCE
ARTIFICIAL INTELLIGENCE
Bharat Bhushan
 
ARTIFICIAL INTELLIGENCE SYLLABUS
ARTIFICIAL INTELLIGENCE SYLLABUS ARTIFICIAL INTELLIGENCE SYLLABUS
ARTIFICIAL INTELLIGENCE SYLLABUS
Bharat Bhushan
 
Digital Content Creation By Bharat Sir Kokar
Digital Content Creation By Bharat Sir KokarDigital Content Creation By Bharat Sir Kokar
Digital Content Creation By Bharat Sir Kokar
Bharat Bhushan
 
Digital Content Creation by Bharat Sir Kokar
Digital Content Creation by Bharat Sir KokarDigital Content Creation by Bharat Sir Kokar
Digital Content Creation by Bharat Sir Kokar
Bharat Bhushan
 
Buddha Science and Technical Institute
Buddha Science and Technical Institute Buddha Science and Technical Institute
Buddha Science and Technical Institute
Bharat Bhushan
 
The Information Technology ACT, 2000
The Information Technology ACT, 2000The Information Technology ACT, 2000
The Information Technology ACT, 2000
Bharat Bhushan
 
Ad

Recently uploaded (20)

Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Studying Drama: Definition, types and elements
Studying Drama: Definition, types and elementsStudying Drama: Definition, types and elements
Studying Drama: Definition, types and elements
AbdelFattahAdel2
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Timber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptxTimber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptx
Tantish QS, UTM
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Unit 5: Dividend Decisions and its theories
Unit 5: Dividend Decisions and its theoriesUnit 5: Dividend Decisions and its theories
Unit 5: Dividend Decisions and its theories
bharath321164
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Open Access: Revamping Library Learning Resources.
Open Access: Revamping Library Learning Resources.Open Access: Revamping Library Learning Resources.
Open Access: Revamping Library Learning Resources.
Rishi Bankim Chandra Evening College, Naihati, North 24 Parganas, West Bengal, India
 
High Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptxHigh Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptx
Ayush Srivastava
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Diabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomicDiabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomic
Pankaj Patawari
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Studying Drama: Definition, types and elements
Studying Drama: Definition, types and elementsStudying Drama: Definition, types and elements
Studying Drama: Definition, types and elements
AbdelFattahAdel2
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Timber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptxTimber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptx
Tantish QS, UTM
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Unit 5: Dividend Decisions and its theories
Unit 5: Dividend Decisions and its theoriesUnit 5: Dividend Decisions and its theories
Unit 5: Dividend Decisions and its theories
bharath321164
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
High Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptxHigh Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptx
Ayush Srivastava
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Diabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomicDiabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomic
Pankaj Patawari
 

Hill Climbing Algorithm in Artificial Intelligence

  • 1. Presentation on By BHARAT BHUSHAN Asst. Professor, Department of Computer Sc. RLSY College, Ranchi Buddha Science and Technical Institute, Ranchi www.bharatsir.com Hill Climbing & Its Variations Artificial Intelligence
  • 2. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Hill - Climbing A hill-climbing algorithm is an Artificial Intelligence (AI) algorithm that increases in value continuously until it achieves a peak solution. This algorithm is used to optimize mathematical problems and in other real- life applications like marketing and job scheduling.
  • 3. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Hill - Climbing 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. 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.
  • 4. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Features of Hill Climbing Following are some main features of Hill Climbing Algorithm: Generate and Test Variant: Hill Climbing is the variant of Generate and Test method. The Generate and Test method produce feedback which helps to decide which direction to move in the search space. 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.
  • 5. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence 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
  • 6. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Different regions in the state space landscape: 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. 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.
  • 7. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Types of Hill Climbing Algorithm:  Simple Hill Climbing  Steepest-Ascent Hill-Climbing  Stochastic Hill Climbing
  • 8. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence 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: Less time consuming Less optimal solution and the solution is not guaranteed
  • 9. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence 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: (a) If it is goal state, then return success and quit. (b) Else if it is better than the current state then assign new state as a current state. (c) Else if not better than the current state, then return to step2. Step 5: Exit.
  • 10. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence 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
  • 11. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence 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. A. Let SUCC be a state such that any successor of the current state will be better than it. B. For each operator that applies to the current state:
  • 12. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence a. Apply the new operator and generate a new state. b. Evaluate the new state. c. If it is goal state, then return it and quit, else compare it to the SUCC. d. If it is better than SUCC, then set new state as SUCC. e. If the SUCC is better than the current state, then set current state to SUCC. Step 5: Exit.
  • 13. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Stochastic Hill Climbing It does not examine all the neighboring nodes before deciding which node to select. It just selects a neighboring node at random and decides (based on the amount of improvement in that neighbor) whether to move to that neighbor or to examine another. • Evaluate the initial state. If it is a goal state then stop and return success. Otherwise, make the initial state the current state.
  • 14. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Stochastic Hill Climbing • Repeat these steps until a solution is found or the current state does not change.  Select a state that has not been yet applied to the current state.  Apply the successor function to the current state and generate all the neighbor states.  Among the generated neighbor states which are better than the current state choose a state randomly.
  • 15. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Stochastic Hill Climbing  If the chosen state is the goal state, then return success, else make it the current state and repeat step 2 of the second point. • Exit from the function.
  • 16. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Application of Hill Climbing Hill Climbing technique can be used to solve many problems, where the current state allows for an accurate evaluation function, such as 1. Network-Flow 2. Travelling Salesman problem 3. 8-Queens problem 4. Integrated Circuit design, etc. Hill Climbing is used in inductive learning methods too.
  • 17. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Advantages of Hill Climbing 1. Hill Climbing can be used in continuous as well as domains. 2. These technique is very useful in job shop scheduling, automatic programming, circuit designing, and vehicle routing. 3. It is also helpful to solve pure optimization problems where the objective is to find the best state according to the objective function.
  • 18. www.bharatsir.com || Mo No : 09835376044 || WhtasApp : 09006365889 Artificial Intelligence Disadvantages of Hill Climbing 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.
  • 19. Bharat Bhushan, Assistant Professor, RLSY College, Ranchi Artificial Intelligence