SlideShare a Scribd company logo
1 of 34
Download to read offline
Heuristically Informed
Searches
Heuristically Informed
• Heuristic Example
• Here you see the distances between each city and the goal
• If you wish to reach the goal, it is usually better to be in a city that is close, but
not necessarily; city
• Suppose our goal is to reach city G starting from S.
C is closer than, but city C is not a good place to be
Straight-line distance as Heuristic
• Heuristics do help us reduce the search space
• It is not at all guaranteed that we’ll always find a solution.
• Heuristic function takes as input the heuristic and gives us output a
number corresponding to that heuristic
Hill Climbing
.
• Problems
Hill Climbing is DFS with a heuristic measurement that
orders choices.
Foothill Problem
Plateau Problem Ridge Problem
Hill Climbing
The numbers beside the nodes are straight-line
distances from the path- terminating city to the
goal city.
S
BA
E FDC
G H I J
K L M N
9 11
9 9
7
6
4 4
8.57.3
6
5
02
Beam Search
S
BA
E FDC
G H I J
K L M N
9 11
7.1 9
7
5.3
4 2
8.57.3
6
5
02.5
Degree (k) = 2
At every level use only 2
best nodes
Out of n possible choices at any level, beam search follows only the best k of them.
Best First Search
Best first search considers all the open nodes so far and selects the best
amongst them.
best first search is a greedy approach which looks for the best
amongst the available options
Optimal Searches
• Both uninformed and informed searches
• whenever they find a solution they immediately stop.
• the solution that they have ignored might be the optimal one.
• They are not optimal
• Methods to find optimal solutions
• brute force method: exploring the entire search space
• Branch and Bound
• A* Procedure
Branch and Bound
Basic Observation
The length of complete path
from S to G, S-D-E-F-G is 9
Similarly the length of the partial path S D-A-B also
is 9 and any additional
movement along a branch will make it longer than 9
S
D
A E
B F
G
9
9
Branch and Bound
Start state : S
Goal state: G
Proceed in Best first search manner
Start at S, A is the best option
Branch and Bound
From S the options to travel are B and D, the children of A and D
the child of S. Among these, D the child of S is the best option. So
we explore D.
Branch and Bound
From here the best option is E so we go there,
Branch and Bound
then B,
Branch and Bound
Here we have E, F and A as equally good options so we select arbitrarily and move to say A,
Branch and Bound
then E.
Branch and Bound
we explore E we find out that if we follow this path further, our path length will increase
beyond 9 which is the distance of S to G. we block all the further sub-trees along this paths.
Branch and Bound
Then move to F as that is the best option at this point with a value 7.
Branch and Bound
then C,
Branch and Bound
C is a leaf node so we bind C too as in diagram we move to B on the right hand side of
the tree and bind the sub trees ahead of B as they also exceed the path length 9.
Branch and Bound
We go on proceeding in this fashion, binding the paths that exceed 9 and hence we are saved
from traversing a considerable portion of the tree. The subsequent diagrams complete the
search until it has found all the optimal solution, that is along the right hand branch of the tree
Branch and Bound
The basic idea was to reduce the search space by binding the paths
that exceed the path length from S to G.
The two most famous ways to improve it.
1. Estimates
2. Dynamic Programming
Dynamic Programming
A* Procedure
S
A D
B D A E
C E
D F
G
E
B F
C G
B
C E
F
G
B F
A C G
7+1=8
9+0 = 9
0+8 = 8
2+2 = 4
5+3 = 8 6+6 = 12
8+5 = 13 9+5 = 14
3+6 = 9
7+2 = 9
4+5 = 9
10+3 = 13 8+3 = 11
S
G
FE
CB
D
A
3 3
1 3
2
8
6
2
5
3
5
1
0
Adversarial Search
• multiple agents or persons searching for solutions in
the same solution space.
• game playing where two opponents also called adversaries are
searching for a goal.
• Their goals are usually contrary to each other.
Search and Game Playing
• We will focus on Board Games
• We will represent the game as a tree
Original Board
Situation
New Board
Situation
New Board
Situation
• The node is a
game tree
represent board
configuration,
and the branches
indicate how
moves can
connect them.
A
B C
D E F G
The Minimax Procedure
3 6 2 7
Maximizing Level
Minimizing Level
Maximizing LevelG
3 2
3
A
B C
D E F
Alpha Beta Pruning
3 6 2
Maximizing Level
Minimizing Level
Maximizing Level
=3
=3
>=3
=<2
A
B C
Alpha Beta Pruning
50 40 70 10 60 30 80 90 20 90 70 60
50
70 30 20
50 30 20
50
Maximizing Level
Minimizing Level
Maximizing Level
50
Example: Tic-tac-toe
• The heuristic takes a state to be measure, counts all winning lines open to MAX and then
subtracts the total number of winning lines open to MIN.
• The search attempts to maximize this difference
• If a state is a forced win for MAX, it is evaluated as +͚ ; a forced win for MIN as –
Infinity
Cont’d
Cont’d
AND/OR Trees
Problems
Problems

More Related Content

What's hot

Searching methodologies
Searching methodologiesSearching methodologies
Searching methodologiesjyoti_lakhani
 
16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniquesJais Balta
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...
Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...
Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...Fernando Rodrigues Junior
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
2.5 bfs & dfs 02
2.5 bfs & dfs 022.5 bfs & dfs 02
2.5 bfs & dfs 02Krish_ver2
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)Bablu Shofi
 
2 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.32 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.3Ravi Balout
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and SearchHitesh Mohapatra
 

What's hot (13)

Searching Algorithm
Searching AlgorithmSearching Algorithm
Searching Algorithm
 
Searching methodologies
Searching methodologiesSearching methodologies
Searching methodologies
 
16890 unit 2 heuristic search techniques
16890 unit 2 heuristic  search techniques16890 unit 2 heuristic  search techniques
16890 unit 2 heuristic search techniques
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
A star algorithms
A star algorithmsA star algorithms
A star algorithms
 
DFS and BFS
DFS and BFSDFS and BFS
DFS and BFS
 
Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...
Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...
Breadth-First Search, Depth-First Search and Backtracking Depth-First Search ...
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
2.5 bfs & dfs 02
2.5 bfs & dfs 022.5 bfs & dfs 02
2.5 bfs & dfs 02
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
2 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.32 lectures 16 17-informed search algorithms ch 4.3
2 lectures 16 17-informed search algorithms ch 4.3
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 

Similar to Lec 2 1 informed search

Informed search algorithms.pptx
Informed search algorithms.pptxInformed search algorithms.pptx
Informed search algorithms.pptxDr.Shweta
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligenceananth
 
Jarrar: Informed Search
Jarrar: Informed Search  Jarrar: Informed Search
Jarrar: Informed Search Mustafa Jarrar
 
Unit 11 lesson 5 distance in coordinate plane
Unit 11 lesson 5 distance in coordinate planeUnit 11 lesson 5 distance in coordinate plane
Unit 11 lesson 5 distance in coordinate planemlabuski
 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfiftakhar8
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.pptmmpnair0
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)ssuser2a76b5
 
Artificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptxArtificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptxbharatipatel22
 
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VEC
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VECUnit II Problem Solving Methods in AI K.sundar,AP/CSE,VEC
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VECsundarKanagaraj1
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)Nazir Ahmed
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)Nazir Ahmed
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.pptMIT,Imphal
 

Similar to Lec 2 1 informed search (20)

Informed search algorithms.pptx
Informed search algorithms.pptxInformed search algorithms.pptx
Informed search algorithms.pptx
 
Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4Final slide4 (bsc csit) chapter 4
Final slide4 (bsc csit) chapter 4
 
CS767_Lecture_03.pptx
CS767_Lecture_03.pptxCS767_Lecture_03.pptx
CS767_Lecture_03.pptx
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligence
 
Searching
SearchingSearching
Searching
 
Jarrar: Informed Search
Jarrar: Informed Search  Jarrar: Informed Search
Jarrar: Informed Search
 
Unit 11 lesson 5 distance in coordinate plane
Unit 11 lesson 5 distance in coordinate planeUnit 11 lesson 5 distance in coordinate plane
Unit 11 lesson 5 distance in coordinate plane
 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdf
 
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
 
uniformed (also called blind search algo)
uniformed (also called blind search algo)uniformed (also called blind search algo)
uniformed (also called blind search algo)
 
Artificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptxArtificial intelligence topic for the btech studentCT II.pptx
Artificial intelligence topic for the btech studentCT II.pptx
 
GRE - Algebra
GRE - AlgebraGRE - Algebra
GRE - Algebra
 
Ac1.3fNumberLineDistanceAndNotation
Ac1.3fNumberLineDistanceAndNotationAc1.3fNumberLineDistanceAndNotation
Ac1.3fNumberLineDistanceAndNotation
 
LEC 12-DSALGO-GRAPHS(final12).pdf
LEC 12-DSALGO-GRAPHS(final12).pdfLEC 12-DSALGO-GRAPHS(final12).pdf
LEC 12-DSALGO-GRAPHS(final12).pdf
 
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VEC
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VECUnit II Problem Solving Methods in AI K.sundar,AP/CSE,VEC
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VEC
 
DEV
DEVDEV
DEV
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.ppt
 
Hoho
HohoHoho
Hoho
 

More from Eyob Sisay

Lec 9 conclusion
Lec 9  conclusionLec 9  conclusion
Lec 9 conclusionEyob Sisay
 
Lec 8 ai implementation
Lec 8  ai implementationLec 8  ai implementation
Lec 8 ai implementationEyob Sisay
 
Lec 7 genetic algorithms
Lec 7 genetic algorithmsLec 7 genetic algorithms
Lec 7 genetic algorithmsEyob Sisay
 
Lec 6 learning
Lec 6 learningLec 6 learning
Lec 6 learningEyob Sisay
 
Lec 5 uncertainty
Lec 5 uncertaintyLec 5 uncertainty
Lec 5 uncertaintyEyob Sisay
 
Lec 4 expert systems
Lec 4  expert systemsLec 4  expert systems
Lec 4 expert systemsEyob Sisay
 
Lec 3 1 reasoning
Lec 3  1 reasoningLec 3  1 reasoning
Lec 3 1 reasoningEyob Sisay
 
Lec 3 knowledge acquisition representation and inference
Lec 3  knowledge acquisition representation and inferenceLec 3  knowledge acquisition representation and inference
Lec 3 knowledge acquisition representation and inferenceEyob Sisay
 
Lec 0 about the course
Lec 0 about the courseLec 0 about the course
Lec 0 about the courseEyob Sisay
 
Lec 1 introduction
Lec 1  introductionLec 1  introduction
Lec 1 introductionEyob Sisay
 
Security and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing EnvironmentsSecurity and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing EnvironmentsEyob Sisay
 
A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)Eyob Sisay
 

More from Eyob Sisay (13)

Lec 9 conclusion
Lec 9  conclusionLec 9  conclusion
Lec 9 conclusion
 
Lec 8 ai implementation
Lec 8  ai implementationLec 8  ai implementation
Lec 8 ai implementation
 
Lec 7 genetic algorithms
Lec 7 genetic algorithmsLec 7 genetic algorithms
Lec 7 genetic algorithms
 
Lec 6 learning
Lec 6 learningLec 6 learning
Lec 6 learning
 
Lec 5 uncertainty
Lec 5 uncertaintyLec 5 uncertainty
Lec 5 uncertainty
 
Lec 4 expert systems
Lec 4  expert systemsLec 4  expert systems
Lec 4 expert systems
 
Lec 3 1 reasoning
Lec 3  1 reasoningLec 3  1 reasoning
Lec 3 1 reasoning
 
Lec 3 knowledge acquisition representation and inference
Lec 3  knowledge acquisition representation and inferenceLec 3  knowledge acquisition representation and inference
Lec 3 knowledge acquisition representation and inference
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
Lec 0 about the course
Lec 0 about the courseLec 0 about the course
Lec 0 about the course
 
Lec 1 introduction
Lec 1  introductionLec 1  introduction
Lec 1 introduction
 
Security and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing EnvironmentsSecurity and Privacy Challenges in Cloud Computing Environments
Security and Privacy Challenges in Cloud Computing Environments
 
A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)A Survey on Wireless Mesh Networks (WMN)
A Survey on Wireless Mesh Networks (WMN)
 

Recently uploaded

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 

Lec 2 1 informed search

  • 2. Heuristically Informed • Heuristic Example • Here you see the distances between each city and the goal • If you wish to reach the goal, it is usually better to be in a city that is close, but not necessarily; city • Suppose our goal is to reach city G starting from S. C is closer than, but city C is not a good place to be
  • 3. Straight-line distance as Heuristic • Heuristics do help us reduce the search space • It is not at all guaranteed that we’ll always find a solution. • Heuristic function takes as input the heuristic and gives us output a number corresponding to that heuristic
  • 4. Hill Climbing . • Problems Hill Climbing is DFS with a heuristic measurement that orders choices. Foothill Problem Plateau Problem Ridge Problem
  • 5. Hill Climbing The numbers beside the nodes are straight-line distances from the path- terminating city to the goal city. S BA E FDC G H I J K L M N 9 11 9 9 7 6 4 4 8.57.3 6 5 02
  • 6. Beam Search S BA E FDC G H I J K L M N 9 11 7.1 9 7 5.3 4 2 8.57.3 6 5 02.5 Degree (k) = 2 At every level use only 2 best nodes Out of n possible choices at any level, beam search follows only the best k of them.
  • 7. Best First Search Best first search considers all the open nodes so far and selects the best amongst them. best first search is a greedy approach which looks for the best amongst the available options
  • 8. Optimal Searches • Both uninformed and informed searches • whenever they find a solution they immediately stop. • the solution that they have ignored might be the optimal one. • They are not optimal • Methods to find optimal solutions • brute force method: exploring the entire search space • Branch and Bound • A* Procedure
  • 9. Branch and Bound Basic Observation The length of complete path from S to G, S-D-E-F-G is 9 Similarly the length of the partial path S D-A-B also is 9 and any additional movement along a branch will make it longer than 9 S D A E B F G 9 9
  • 10. Branch and Bound Start state : S Goal state: G Proceed in Best first search manner Start at S, A is the best option
  • 11. Branch and Bound From S the options to travel are B and D, the children of A and D the child of S. Among these, D the child of S is the best option. So we explore D.
  • 12. Branch and Bound From here the best option is E so we go there,
  • 14. Branch and Bound Here we have E, F and A as equally good options so we select arbitrarily and move to say A,
  • 16. Branch and Bound we explore E we find out that if we follow this path further, our path length will increase beyond 9 which is the distance of S to G. we block all the further sub-trees along this paths.
  • 17. Branch and Bound Then move to F as that is the best option at this point with a value 7.
  • 19. Branch and Bound C is a leaf node so we bind C too as in diagram we move to B on the right hand side of the tree and bind the sub trees ahead of B as they also exceed the path length 9.
  • 20. Branch and Bound We go on proceeding in this fashion, binding the paths that exceed 9 and hence we are saved from traversing a considerable portion of the tree. The subsequent diagrams complete the search until it has found all the optimal solution, that is along the right hand branch of the tree
  • 21. Branch and Bound The basic idea was to reduce the search space by binding the paths that exceed the path length from S to G. The two most famous ways to improve it. 1. Estimates 2. Dynamic Programming
  • 23. A* Procedure S A D B D A E C E D F G E B F C G B C E F G B F A C G 7+1=8 9+0 = 9 0+8 = 8 2+2 = 4 5+3 = 8 6+6 = 12 8+5 = 13 9+5 = 14 3+6 = 9 7+2 = 9 4+5 = 9 10+3 = 13 8+3 = 11 S G FE CB D A 3 3 1 3 2 8 6 2 5 3 5 1 0
  • 24. Adversarial Search • multiple agents or persons searching for solutions in the same solution space. • game playing where two opponents also called adversaries are searching for a goal. • Their goals are usually contrary to each other.
  • 25. Search and Game Playing • We will focus on Board Games • We will represent the game as a tree Original Board Situation New Board Situation New Board Situation • The node is a game tree represent board configuration, and the branches indicate how moves can connect them. A B C D E F G
  • 26. The Minimax Procedure 3 6 2 7 Maximizing Level Minimizing Level Maximizing LevelG 3 2 3 A B C D E F
  • 27. Alpha Beta Pruning 3 6 2 Maximizing Level Minimizing Level Maximizing Level =3 =3 >=3 =<2 A B C
  • 28. Alpha Beta Pruning 50 40 70 10 60 30 80 90 20 90 70 60 50 70 30 20 50 30 20 50 Maximizing Level Minimizing Level Maximizing Level 50
  • 29. Example: Tic-tac-toe • The heuristic takes a state to be measure, counts all winning lines open to MAX and then subtracts the total number of winning lines open to MIN. • The search attempts to maximize this difference • If a state is a forced win for MAX, it is evaluated as +͚ ; a forced win for MIN as – Infinity