SlideShare a Scribd company logo
1 of 27
SEARCHING WITH NO TRANSITION MODEL –
ONLINE SEARCH
Offline vs. online search
Offline search: With the transition
model, we can
1. Initial state
2. Possible actions: ACTIONS
3. Transition model: RESULT
4. Goal test: GOAL-TEST
5. Cost: STEP-COST, PATH-COST
Online search: Without the transition model,
we need to
Online search is useful in
 There is a penalty for
 Nondeterministic environments:
 No environment model:
Examples of online search:
Competitive ratio
There are 2 types of path costs in online search:
 Actual path cost:
 Shortest path cost:
Competitive ratio = Actual path cost / Shortest path cost
Dead-end state
Some actions are irreversible, they lead to a dead-end state:

For example,
Safely explorable state space:
For example,
Online depth-first search agent
Source:
(Russell,
2016)
Why depth-first?
In online search: the agent actually walks in the environment.

In depth-first search: the agent only moves to its next position (with 1 or a few
actions)
However,

Online A* search: LRTA* (Learning Real-Time A*) algorithm
Ideas:
 At each step, from state s, agent moves to the successor s’
which has the best estimated cost:
 H(s):
Learning Real-Time A* agent
Source:
(Russell,
2016)
Demo
Source:
(Russell,
2016)
NOTE:
CONSTRAINT SATISFACTOIN
PROBLEMS
Main reference:
Chapters 6 of Russell, S., & Norvig, P. (2016). Artificial intelligence: a modern approach.
Previous algorithms use atomic state representation:
Now, we move to factored representation:
Constraint satisfaction problems:
Constraint satisfaction problems (CSP)
Defining a CSP
Three components:
 X:
 D:
 C:
A solution of a CSP:
Example: Map coloring problem
Problem: color each region
Problem components:
Image: pngwave
Example 2: Car assembly scheduling
Factories have the problem of job scheduling, subject to various constraints.
For example,
Example 2: Car assembly scheduling
Problem components:
Variables:
Domains:
Constraints:
Other examples
Discrete, finite domains:
Discrete, infinite domains:
Continuous domains:
Solve CSPs using
Constraint Propagation
Can CSPs be solved using searching on state space?
Yes, but
CSP solvers (e.g., constraint propagation methods) can be faster than state-space
searchers because
For example, once we have chosen {HaNoi = blue}
Constraint propagation
Using the constraints to reduce the domain (legal values) for a variable,
which in turn

Local consistency: the key idea of constraint propagation
Enforcing local consistency in each part of the graph causes inconsistent values to be
eliminated throughout the graph.
Types of local consistency:
Constraint graph
Nodes:
Arcs:
Node consistency
Enforcing domains to satisfy unary constraints.
For example,
Arc consistency
Enforcing domains to satisfy binary constraints.
Xi is arc-consistent with respect to Xj if
For example, consider the constraint 𝐘 = 𝐗𝟐
 To make the problem arc-consistent:
Example 2: Map coloring problem:
AC-3 algorithm
Source:
(Russell,
2016)
Sodoku problem
No digit appears twice in any row, column, or 3 ×
3 box.
Image:
(Russell,
2016)

More Related Content

Similar to AIw09.pptx

NEAL-2016 ARL Symposium Poster
NEAL-2016 ARL Symposium PosterNEAL-2016 ARL Symposium Poster
NEAL-2016 ARL Symposium Poster
Barbara Jean Neal
 
A feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problemA feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problem
Cem Recai Çırak
 

Similar to AIw09.pptx (20)

Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithms
 
artifical intelligence final paper
artifical intelligence final paperartifical intelligence final paper
artifical intelligence final paper
 
Evolving CSP Algorithm in Predicting the Path Loss of Indoor Propagation Models
Evolving CSP Algorithm in Predicting the Path Loss of Indoor Propagation ModelsEvolving CSP Algorithm in Predicting the Path Loss of Indoor Propagation Models
Evolving CSP Algorithm in Predicting the Path Loss of Indoor Propagation Models
 
Eryk_Kulikowski_a4
Eryk_Kulikowski_a4Eryk_Kulikowski_a4
Eryk_Kulikowski_a4
 
Parallel Artificial Bee Colony Algorithm
Parallel Artificial Bee Colony AlgorithmParallel Artificial Bee Colony Algorithm
Parallel Artificial Bee Colony Algorithm
 
Straight Line Distance Heuristic
Straight Line Distance HeuristicStraight Line Distance Heuristic
Straight Line Distance Heuristic
 
Branch and bound technique
Branch and bound techniqueBranch and bound technique
Branch and bound technique
 
Advanced Lane Finding
Advanced Lane FindingAdvanced Lane Finding
Advanced Lane Finding
 
NEAL-2016 ARL Symposium Poster
NEAL-2016 ARL Symposium PosterNEAL-2016 ARL Symposium Poster
NEAL-2016 ARL Symposium Poster
 
Ai1.pdf
Ai1.pdfAi1.pdf
Ai1.pdf
 
Presentation for korea multimedia(in english)
Presentation for korea multimedia(in english)Presentation for korea multimedia(in english)
Presentation for korea multimedia(in english)
 
Motion and tracking
Motion and trackingMotion and tracking
Motion and tracking
 
[CIKM 2014] Deviation-Based Contextual SLIM Recommenders
[CIKM 2014] Deviation-Based Contextual SLIM Recommenders[CIKM 2014] Deviation-Based Contextual SLIM Recommenders
[CIKM 2014] Deviation-Based Contextual SLIM Recommenders
 
Hierarchical Reinforcement Learning
Hierarchical Reinforcement LearningHierarchical Reinforcement Learning
Hierarchical Reinforcement Learning
 
Dispatching taxi cabs with passenger pool
Dispatching taxi cabs with passenger poolDispatching taxi cabs with passenger pool
Dispatching taxi cabs with passenger pool
 
A feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problemA feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problem
 
robotaxi2023.pdf
robotaxi2023.pdfrobotaxi2023.pdf
robotaxi2023.pdf
 
MS Project
MS ProjectMS Project
MS Project
 
Hybrid iterated local search algorithm for optimization route of airplane tr...
Hybrid iterated local search algorithm for optimization route of  airplane tr...Hybrid iterated local search algorithm for optimization route of  airplane tr...
Hybrid iterated local search algorithm for optimization route of airplane tr...
 
06466595
0646659506466595
06466595
 

More from Nguyễn Tiến (20)

AIw13_Exercises.pptx
AIw13_Exercises.pptxAIw13_Exercises.pptx
AIw13_Exercises.pptx
 
AIw13_slide.pptx
AIw13_slide.pptxAIw13_slide.pptx
AIw13_slide.pptx
 
AIw12_Cross entropy.pptx
AIw12_Cross entropy.pptxAIw12_Cross entropy.pptx
AIw12_Cross entropy.pptx
 
AIw11_Exercises.pptx
AIw11_Exercises.pptxAIw11_Exercises.pptx
AIw11_Exercises.pptx
 
AIw11_slide.pptx
AIw11_slide.pptxAIw11_slide.pptx
AIw11_slide.pptx
 
AIw10_Exercises.pptx
AIw10_Exercises.pptxAIw10_Exercises.pptx
AIw10_Exercises.pptx
 
AIw10_Backtracking.pptx
AIw10_Backtracking.pptxAIw10_Backtracking.pptx
AIw10_Backtracking.pptx
 
AIw09_Exercises.pptx
AIw09_Exercises.pptxAIw09_Exercises.pptx
AIw09_Exercises.pptx
 
AIw08_Exercises.pptx
AIw08_Exercises.pptxAIw08_Exercises.pptx
AIw08_Exercises.pptx
 
AIw08.pptx
AIw08.pptxAIw08.pptx
AIw08.pptx
 
AIw07 Exercises.pptx
AIw07 Exercises.pptxAIw07 Exercises.pptx
AIw07 Exercises.pptx
 
AIw07.pptx
AIw07.pptxAIw07.pptx
AIw07.pptx
 
AIw06_Exercises.pptx
AIw06_Exercises.pptxAIw06_Exercises.pptx
AIw06_Exercises.pptx
 
AIw06.pptx
AIw06.pptxAIw06.pptx
AIw06.pptx
 
AIw05_Exercises.pptx
AIw05_Exercises.pptxAIw05_Exercises.pptx
AIw05_Exercises.pptx
 
AIw05.pptx
AIw05.pptxAIw05.pptx
AIw05.pptx
 
AIw04_Exercises.pptx
AIw04_Exercises.pptxAIw04_Exercises.pptx
AIw04_Exercises.pptx
 
AIw04_slide.pptx
AIw04_slide.pptxAIw04_slide.pptx
AIw04_slide.pptx
 
AIw03.pptx
AIw03.pptxAIw03.pptx
AIw03.pptx
 
AI02_exercises.pptx
AI02_exercises.pptxAI02_exercises.pptx
AI02_exercises.pptx
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
Elizabeth Walsh
 

Recently uploaded (20)

VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Ernest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsErnest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell Tolls
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 

AIw09.pptx