SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Pure Heuristic Search
2
Pure Heuristic Search
 The simplest of heuristic search algorithms, the pure heuristic
search, expands nodes in order of their heuristic values h(n). It
maintains a closed list of those nodes that have already been
expanded, and a open list of those nodes that have been generated
but not yet been expanded.
 The algorithm begins with just the initial state on the open list. At
each cycle, a node on the open list with the minimum h(n) value
is expanded, generating all of its children and is placed on the
closed list. The heuristic function is applied to the children, and
they are placed on the open list in order of their heuristic values.
The algorithm continues until a goal state is chosen for
expansion.
3
Heuristic searching
 might not always find the best solution
 but is guaranteed to find a good solution in reasonable
time.
 By sacrificing completeness it increases efficiency.
 Useful in solving tough problems which
 could not be solved any other way.
 solutions take an infinite time or very long time to compute.
4
Heuristic searching
 One example is the 15-puzzle
 For each piece, figure out how many moves away it is from
its goal position, if no other piece were in the way
 The total of these gives a measure of distance from goal
 This is a heuristic measure
- The classic example of heuristic search methods is the
“Missionaries and cannibals” problem.
5
Heuristics
 A heuristic is a rule of thumb for deciding which choice might be
best
 There is no general theory for finding heuristics, because every
problem is different
 Choice of heuristics depends on knowledge of the problem space
6
Example 1: Maze
 A maze can be represented as a state space
 Each state represents “where you are” in the maze
 The start state represents your starting position
 The goal state represents the exit from the maze
 Operators (for a rectangular maze) are: move north,
move south, move east, and move west
 Each operator takes you to a new state (maze location)
 Operators may not always apply, because of walls in the
maze
Example of a Maze
7
G
8
Example 2: The 15-puzzle
 The start state is some (almost) random
configuration of the tiles
 The goal state is as shown
 Operators are
 Move empty space up
 Move empty space down
 Move empty space right
 Move empty space left
 Operators apply if not against edge
3 10 13 7
9 14 6 1
4 15 2
11 8 5 12
Start state:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15
Goal state:
Example 3
The Midterm Exam
9
10
Example 4: Missionaries and cannibals
 “Missionaries and cannibals” problem (in various guises)
 The missionaries and cannibals wish to cross a river
 They have a canoe that can hold two people
 It is unsafe to have cannibals outnumber missionaries
M
M
M
C
C C
Initial state
M
M
M
C
C C
Goal state
11
States
 A state can be represented by the number of
missionaries and cannibals on each side of the
river
 Initial state: 3m,3c,canoe / 0m,0c
 Goal state: 0m,0c / 3m,3c,canoe
 We assume that crossing the river is a simple procedure
that always works (so we don’t have to represent the
canoe being in the middle of the river)
 However, this is redundant; we only need to
represent how many missionaries/cannibals are on
one side of the river
 Initial state: 3m,3c,canoe
 Goal state: 0m,0c
12
Operations
 An operation takes us from one state to another
 Operations can be:
 Canoe takes ? missionary across river
 Canoe takes ? cannibal across river
 Canoe takes ? missionaries across river
 Canoe takes ? cannibals across river
 Canoe takes ? missionary and ? cannibal across river
 We don’t have to specify “west to east” or “east to
west” because only one of these will be possible at any
given time
States
13
 M- missionary
 C- cannibal
 - canoe
1. MMM CCC MC
2. MM CC M C
3. MM C MC M CC
4. MM C
(etc.)
14
15
Conclusion
 The best searches combine a basic blind search
technique with heuristic knowledge about the problem
space
16
The End

Weitere ähnliche Inhalte

Was ist angesagt?

State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and SearchHitesh Mohapatra
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligencegrinu
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceJay Nagar
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingMohammed Romi
 
Optimization Heuristics
Optimization HeuristicsOptimization Heuristics
Optimization HeuristicsKausal Malladi
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithmAhmed Fouad Ali
 
Inverse-Trigonometric-Functions.pdf
Inverse-Trigonometric-Functions.pdfInverse-Trigonometric-Functions.pdf
Inverse-Trigonometric-Functions.pdfAshikAhmed42
 
Particle swarm optimization on pacman game problem solving
Particle swarm optimization on pacman game problem solvingParticle swarm optimization on pacman game problem solving
Particle swarm optimization on pacman game problem solvingDavid Rigan
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithmsMinakshi Atre
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 

Was ist angesagt? (18)

State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 
AI Lesson 04
AI Lesson 04AI Lesson 04
AI Lesson 04
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
AI Lesson 10
AI Lesson 10AI Lesson 10
AI Lesson 10
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
AI: AI & Searching
AI: AI & SearchingAI: AI & Searching
AI: AI & Searching
 
Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searching
 
Optimization Heuristics
Optimization HeuristicsOptimization Heuristics
Optimization Heuristics
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
 
Inverse-Trigonometric-Functions.pdf
Inverse-Trigonometric-Functions.pdfInverse-Trigonometric-Functions.pdf
Inverse-Trigonometric-Functions.pdf
 
AI Lesson 03
AI Lesson 03AI Lesson 03
AI Lesson 03
 
Crow search algorithm
Crow search algorithmCrow search algorithm
Crow search algorithm
 
Particle swarm optimization on pacman game problem solving
Particle swarm optimization on pacman game problem solvingParticle swarm optimization on pacman game problem solving
Particle swarm optimization on pacman game problem solving
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithms
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
artficial intelligence
artficial intelligenceartficial intelligence
artficial intelligence
 

Andere mochten auch

09 heuristic search
09 heuristic search09 heuristic search
09 heuristic searchTianlu Wang
 
Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013 Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013 Arizona State University
 
Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1Martin Ebner
 
Technology Seminar Handout
Technology Seminar HandoutTechnology Seminar Handout
Technology Seminar HandoutDerecskei Anita
 
Heuristics
HeuristicsHeuristics
HeuristicsMoe Tmz
 
Presentation - Bi-directional A-star search
Presentation - Bi-directional A-star searchPresentation - Bi-directional A-star search
Presentation - Bi-directional A-star searchMohammad Saiful Islam
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search TechniquesJismy .K.Jose
 
16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniquesJais Balta
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed SearchHema Kashyap
 
Solving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) SearchSolving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) Searchmatele41
 
Lecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmLecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmHema Kashyap
 
AI search techniques
AI search techniquesAI search techniques
AI search techniquesOmar Isaid
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithmHasan Gök
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 aiRadhika Srinivasan
 
Amit ppt
Amit pptAmit ppt
Amit pptamitp26
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 

Andere mochten auch (20)

09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013 Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013
 
Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1
 
Technology Seminar Handout
Technology Seminar HandoutTechnology Seminar Handout
Technology Seminar Handout
 
Heuristics
HeuristicsHeuristics
Heuristics
 
Presentation - Bi-directional A-star search
Presentation - Bi-directional A-star searchPresentation - Bi-directional A-star search
Presentation - Bi-directional A-star search
 
M4 Heuristics
M4 HeuristicsM4 Heuristics
M4 Heuristics
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search Techniques
 
16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniques
 
04 search heuristic
04 search heuristic04 search heuristic
04 search heuristic
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed Search
 
Solving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) SearchSolving problems by searching Informed (heuristics) Search
Solving problems by searching Informed (heuristics) Search
 
Lecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmLecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithm
 
Lect6 csp
Lect6 cspLect6 csp
Lect6 csp
 
AI search techniques
AI search techniquesAI search techniques
AI search techniques
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
 
Chapter 2 (final)
Chapter 2 (final)Chapter 2 (final)
Chapter 2 (final)
 
Amit ppt
Amit pptAmit ppt
Amit ppt
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 

Ähnlich wie simple

AIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjek
AIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjekAIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjek
AIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjekpavan402055
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.pptMIT,Imphal
 
PRML Chapter 11
PRML Chapter 11PRML Chapter 11
PRML Chapter 11Sunwoo Kim
 
Unit1_AI&ML_leftover (2).pptx
Unit1_AI&ML_leftover (2).pptxUnit1_AI&ML_leftover (2).pptx
Unit1_AI&ML_leftover (2).pptxsahilshah890338
 
Limits and their applications
Limits and their applicationsLimits and their applications
Limits and their applicationsHaroun Elmir
 
chapterThree.pptx
chapterThree.pptxchapterThree.pptx
chapterThree.pptxchalachew5
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed searchHamzaJaved64
 
Monte Carlo Berkeley.pptx
Monte Carlo Berkeley.pptxMonte Carlo Berkeley.pptx
Monte Carlo Berkeley.pptxHaibinSu2
 
Combining UCT and Constraint Satisfaction Problems for Minesweeper
Combining UCT and Constraint Satisfaction Problems for MinesweeperCombining UCT and Constraint Satisfaction Problems for Minesweeper
Combining UCT and Constraint Satisfaction Problems for MinesweeperOlivier Teytaud
 
causality_discussion_slides_final.pdf
causality_discussion_slides_final.pdfcausality_discussion_slides_final.pdf
causality_discussion_slides_final.pdfssuser8cde591
 
chapter 2 Problem Solving.pdf
chapter 2 Problem Solving.pdfchapter 2 Problem Solving.pdf
chapter 2 Problem Solving.pdfMeghaGupta952452
 
03_UninformedSearch.pdf
03_UninformedSearch.pdf03_UninformedSearch.pdf
03_UninformedSearch.pdfkaxeca4096
 

Ähnlich wie simple (20)

AIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjek
AIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjekAIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjek
AIMA_ch3_L2-complement.ppt kjekfkjekjfkjefkjefkjek
 
02LocalSearch.pdf
02LocalSearch.pdf02LocalSearch.pdf
02LocalSearch.pdf
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.ppt
 
searching
searchingsearching
searching
 
PRML Chapter 11
PRML Chapter 11PRML Chapter 11
PRML Chapter 11
 
Unit1_AI&ML_leftover (2).pptx
Unit1_AI&ML_leftover (2).pptxUnit1_AI&ML_leftover (2).pptx
Unit1_AI&ML_leftover (2).pptx
 
Limits and their applications
Limits and their applicationsLimits and their applications
Limits and their applications
 
chapterThree.pptx
chapterThree.pptxchapterThree.pptx
chapterThree.pptx
 
Large Deviations: An Introduction
Large Deviations: An IntroductionLarge Deviations: An Introduction
Large Deviations: An Introduction
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed search
 
Problem space
Problem spaceProblem space
Problem space
 
Problem space
Problem spaceProblem space
Problem space
 
Problem space
Problem spaceProblem space
Problem space
 
Problem solving
Problem solvingProblem solving
Problem solving
 
Problem formulation
Problem formulationProblem formulation
Problem formulation
 
Monte Carlo Berkeley.pptx
Monte Carlo Berkeley.pptxMonte Carlo Berkeley.pptx
Monte Carlo Berkeley.pptx
 
Combining UCT and Constraint Satisfaction Problems for Minesweeper
Combining UCT and Constraint Satisfaction Problems for MinesweeperCombining UCT and Constraint Satisfaction Problems for Minesweeper
Combining UCT and Constraint Satisfaction Problems for Minesweeper
 
causality_discussion_slides_final.pdf
causality_discussion_slides_final.pdfcausality_discussion_slides_final.pdf
causality_discussion_slides_final.pdf
 
chapter 2 Problem Solving.pdf
chapter 2 Problem Solving.pdfchapter 2 Problem Solving.pdf
chapter 2 Problem Solving.pdf
 
03_UninformedSearch.pdf
03_UninformedSearch.pdf03_UninformedSearch.pdf
03_UninformedSearch.pdf
 

Kürzlich hochgeladen

FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...only4webmaster01
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 

Kürzlich hochgeladen (20)

FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 

simple

  • 2. 2 Pure Heuristic Search  The simplest of heuristic search algorithms, the pure heuristic search, expands nodes in order of their heuristic values h(n). It maintains a closed list of those nodes that have already been expanded, and a open list of those nodes that have been generated but not yet been expanded.  The algorithm begins with just the initial state on the open list. At each cycle, a node on the open list with the minimum h(n) value is expanded, generating all of its children and is placed on the closed list. The heuristic function is applied to the children, and they are placed on the open list in order of their heuristic values. The algorithm continues until a goal state is chosen for expansion.
  • 3. 3 Heuristic searching  might not always find the best solution  but is guaranteed to find a good solution in reasonable time.  By sacrificing completeness it increases efficiency.  Useful in solving tough problems which  could not be solved any other way.  solutions take an infinite time or very long time to compute.
  • 4. 4 Heuristic searching  One example is the 15-puzzle  For each piece, figure out how many moves away it is from its goal position, if no other piece were in the way  The total of these gives a measure of distance from goal  This is a heuristic measure - The classic example of heuristic search methods is the “Missionaries and cannibals” problem.
  • 5. 5 Heuristics  A heuristic is a rule of thumb for deciding which choice might be best  There is no general theory for finding heuristics, because every problem is different  Choice of heuristics depends on knowledge of the problem space
  • 6. 6 Example 1: Maze  A maze can be represented as a state space  Each state represents “where you are” in the maze  The start state represents your starting position  The goal state represents the exit from the maze  Operators (for a rectangular maze) are: move north, move south, move east, and move west  Each operator takes you to a new state (maze location)  Operators may not always apply, because of walls in the maze
  • 7. Example of a Maze 7 G
  • 8. 8 Example 2: The 15-puzzle  The start state is some (almost) random configuration of the tiles  The goal state is as shown  Operators are  Move empty space up  Move empty space down  Move empty space right  Move empty space left  Operators apply if not against edge 3 10 13 7 9 14 6 1 4 15 2 11 8 5 12 Start state: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Goal state:
  • 10. 10 Example 4: Missionaries and cannibals  “Missionaries and cannibals” problem (in various guises)  The missionaries and cannibals wish to cross a river  They have a canoe that can hold two people  It is unsafe to have cannibals outnumber missionaries M M M C C C Initial state M M M C C C Goal state
  • 11. 11 States  A state can be represented by the number of missionaries and cannibals on each side of the river  Initial state: 3m,3c,canoe / 0m,0c  Goal state: 0m,0c / 3m,3c,canoe  We assume that crossing the river is a simple procedure that always works (so we don’t have to represent the canoe being in the middle of the river)  However, this is redundant; we only need to represent how many missionaries/cannibals are on one side of the river  Initial state: 3m,3c,canoe  Goal state: 0m,0c
  • 12. 12 Operations  An operation takes us from one state to another  Operations can be:  Canoe takes ? missionary across river  Canoe takes ? cannibal across river  Canoe takes ? missionaries across river  Canoe takes ? cannibals across river  Canoe takes ? missionary and ? cannibal across river  We don’t have to specify “west to east” or “east to west” because only one of these will be possible at any given time
  • 14.  M- missionary  C- cannibal  - canoe 1. MMM CCC MC 2. MM CC M C 3. MM C MC M CC 4. MM C (etc.) 14
  • 15. 15 Conclusion  The best searches combine a basic blind search technique with heuristic knowledge about the problem space