SlideShare ist ein Scribd-Unternehmen logo
1 von 43
Part2 AI as Representation
and Search
Dr. Bernard Chen Ph.D.

University of Central Arkansas
Spring 2011
Outline




Intro to Representation and
Search
Ch3 Structures and strategies for state
space search
Introduction to Representation




The representation function is to capture
the critical features of a problem and make
that information accessible to a problem
solving procedure
Expressiveness (the result of the feature
abstracted) and efficiency (the
computational complexity) are major
dimensions for evaluating knowledge
representation
Introduction to Representation






The computer representation of floating-point
numbers illustrate these trade-off
To be precise, real number require an infinite
string of digits to be fully described.
This cannot be accomplished on a finite
device such as computer
Introduction to Representation
Introduction to Representation




The array is another representation
common in computer science
For many problems, it is more natural
and efficient than the memory
architecture implemented in computer
hardware
Introduction to Representation
Introduction to Search




Given a representation, the second
component of intelligent problem solving is
search
Human generally consider a number of
alternatives strategies on their way to solve a
problem





Such as chess
Player reviews alternative moves, select the “best”
move
A player can also consider a short term gain
Introduction to Search


Consider “tic-tac-toe”







Starting with an empty board,
The first player can place a X on any one
of nine places
Each move yields a different board that will
allow the opponent 8 possible responses
and so on…
Introduction to Search






We can represent this collection of possible
moves by regarding each board as a state
in a graph
The link of the graph represent legal move
The resulting structure is a state space
graph
“tic-tac-toe” state space graph
Introduction to Search


Consider a task of diagnosing a
mechanical fault in an automobile:
Introduction to Search
Introduction to Search


Human use intelligent search



Human do not do exhaustive search



The rules are known as heuristics,
and they constitute one of the central
topics of AI search
Outline



Intro to Representation and Search
Ch3 Structures and strategies for
state space search
State Space Representation






In the state space representation of a problem, the
nodes of a graph correspond to partial problem
solution states and the arcs correspond to steps in a
problem solving process
One or more initial states form the root of the graph
The graph also defines one or more goal conditions,
which are solutions to a problem
State Space Representation




State space search characterizes
problem solving as the process of
finding a solution path form the start
state to a goal
A goal may describe a state, such as
winning board in tic-tac-toe
“tic-tac-toe” state space graph
State Space Representation






In the 8-puzzle, 8 different numbered tiles are fitted
into 9 spaces on a grid
One space is left blank so that tiles can be moved
around to form different patterns
The goal is to find a series of moves of tiles into the
blank space that places the board in a goal
configuration:
State Space Representation


A goal in configuration in the 8-puzzle
State Space Representation


The Traveling salesperson problem




Suppose a salesperson has five cities to visit and then must
return home
The goal of the problem is to find the shortest path for the
salesperson to travel
State Space Representation


An instance of the traveling salesperson
problem with some greedy concept
State Space Representation
State Space Representation




As previous slide suggests, the
complexity of exhaustive search in the
traveling salesperson problem is (N-1)!
It is a NP problem
Outline



Strategies for state space search
Depth-First and Breadth-First Search
Strategies for state space
search


A state may be searched in two
directions:




From the given data of a problem instance
toward a foal or
From a goal to the data
Strategies for state space
search




In data driven search, also called forward
chaining, the problem solver begins with the given
facts of the problem and set of legal moves for
changing state
This process continues until (we hope!!) it generates
a path that satisfies the goal condition
Strategies for state space
search







An alternative approach (Goal Driven) is start with the goal
that we want to solve
See what rules can generate this goal and determine what
conditions must be true to use them
These conditions become the new goals
Working backward through successive subgoals until (we hope
again!) it work back to
Strategies for state space
search


For example:
Consider the problem of confirming or
denying the statement “I am a
descendant of Thomas Jefferson”


Some facts:



He was born about 250 years ago
Assume 25 years per generation
Strategies for state space
search






As each person has 2 parents, if we search back
(goal driven) starting from “I”, the search space
would be 2^10
If we assume an average of only 3 children per
family, the search space for search forward (data
driven) would be 3^10
Therefore, the decision to choose between data- and
goal- driven search is based on the structure of the
problem
Outline



Strategies for state space search
Depth-First and Breadth-First
Search
BFS and DFS




In addition to specifying a search direction
(data-driven or goal-driven), a search
algorithm must determine the order in which
states are examined in the graph
Two possibilities:



Depth-first search
Breadth-first search
BFS and DFS




In DFS, when a state is examined, all of
its children and their descendants are
examined before any of its siblings
Breadth-first search explores the space
in a level-by-level fashion
BFS and DFS
BFS and DFS




DFS results:
ABEKSLTFMCGNHOPUDIQJR
BFS results:
ABCDEFGHIJKLMNOPQRSTU
8-puzzle BFS
8-puzzle DFS
BFS and DFS


Properties of BFS






Because it always examines all nodes at
level n before proceeding to level n+1, BFS
always finds the shortest path to a goal
In a problem have a simple solution, the
solution will be found
Unfortunately, if the states have a high
average number of children, it may use all
the memory before it find a solution
BFS and DFS


Properties of DFS




If it is known that the solution path will be
long, DFS will not spend time searching a
large number of “shallow” states in the
graph
However, DFS may “lost” deep in a graph,
missing short paths to a goal, or even
stuck in an infinite loop
BFS and DFS




A nice compromise on these trade-offs
is to use a depth bound on DFS
New slide shows a DFS with a depth
bound of 5
BFS and DFS
BFS and DFS




DFS with iterative deepening performs
a DFS search of the space with a depth
bound of 1,
If it fails to find a goal, it performs
another DFS with depth bound of 2
BFS and DFS






Unfortunately, all the search strategies
discussed in this chapter may be shown to
have worst-case exponential time complexity
This is true for all uniformed search
algorithms
Any other search algorithms???

Weitere ähnliche Inhalte

Was ist angesagt?

Lecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchLecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchHema Kashyap
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchTekendra Nath Yogi
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmHema Kashyap
 
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...Asst.prof M.Gokilavani
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
Expert systems
Expert systemsExpert systems
Expert systemsJithin Zcs
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsDr. C.V. Suresh Babu
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and SearchHitesh Mohapatra
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsNuruzzaman Milon
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligencesandeep54552
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AIvikas dhakane
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingMohammed Romi
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAsst.prof M.Gokilavani
 
Learning rule of first order rules
Learning rule of first order rulesLearning rule of first order rules
Learning rule of first order rulesswapnac12
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms Syed Ahmed
 

Was ist angesagt? (20)

Lecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchLecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star search
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed search
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithm
 
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
 
Np cooks theorem
Np cooks theoremNp cooks theorem
Np cooks theorem
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
Input-Buffering
Input-BufferingInput-Buffering
Input-Buffering
 
Ai 03 solving_problems_by_searching
Ai 03 solving_problems_by_searchingAi 03 solving_problems_by_searching
Ai 03 solving_problems_by_searching
 
Adversarial search
Adversarial search Adversarial search
Adversarial search
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
 
Learning rule of first order rules
Learning rule of first order rulesLearning rule of first order rules
Learning rule of first order rules
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 

Andere mochten auch

Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 
Problems problem spaces and search
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and searchAmey Kerkar
 
Adversarial search with Game Playing
Adversarial search with Game PlayingAdversarial search with Game Playing
Adversarial search with Game PlayingAman Patel
 
Split Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of LearningSplit Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of LearningDominic Woodman
 
Amit ppt
Amit pptAmit ppt
Amit pptamitp26
 
Friends of Search - VR Marketing
Friends of Search  - VR MarketingFriends of Search  - VR Marketing
Friends of Search - VR MarketingJes Scholz
 
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
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligencelordmwesh
 
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCEFORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCEJohnLeonard Onwuzuruigbo
 
PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT Andrew Schwartz
 

Andere mochten auch (12)

AI Lesson 03
AI Lesson 03AI Lesson 03
AI Lesson 03
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Problems problem spaces and search
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and search
 
Adversarial search with Game Playing
Adversarial search with Game PlayingAdversarial search with Game Playing
Adversarial search with Game Playing
 
Split Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of LearningSplit Testing for SEO - 9 Months of Learning
Split Testing for SEO - 9 Months of Learning
 
Amit ppt
Amit pptAmit ppt
Amit ppt
 
Forward Backward Chaining
Forward Backward ChainingForward Backward Chaining
Forward Backward Chaining
 
Friends of Search - VR Marketing
Friends of Search  - VR MarketingFriends of Search  - VR Marketing
Friends of Search - VR Marketing
 
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
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligence
 
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCEFORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
FORWARD CHAINING AND BACKWARD CHAINING SYSTEMS IN ARTIFICIAL INTELIGENCE
 
PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT
 

Ähnlich wie Ai ch2

Artificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-searchArtificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-searchTaymoor Nazmy
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchPalGov
 
AI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptxAI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptxYousef Aburawi
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceJay Nagar
 
(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
 
Unit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution'sUnit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution'sHarsha Patel
 
C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003
C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003
C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003mrsantos6thgrade
 
2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.pptDr. Naushad Varish
 
CptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial IntelligenceCptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial Intelligencebutest
 
Artificial Intelligence 02 Uninformed Search
Artificial Intelligence 02 Uninformed SearchArtificial Intelligence 02 Uninformed Search
Artificial Intelligence 02 Uninformed SearchAndres Mendez-Vazquez
 
Lesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web versionLesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web versionmrsantos6thgrade
 
Lesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web versionLesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web versionmrsantos6thgrade
 
problem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , problomsproblem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , problomsSlimAmiri
 
Basics of Machine Learning
Basics of Machine LearningBasics of Machine Learning
Basics of Machine Learningbutest
 
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
 
AI3391 Session 9 Greedy Best first search algorithm.pptx
AI3391 Session 9 Greedy Best first search algorithm.pptxAI3391 Session 9 Greedy Best first search algorithm.pptx
AI3391 Session 9 Greedy Best first search algorithm.pptxAsst.prof M.Gokilavani
 
Means end analysis, knowledge in learning
Means end analysis,  knowledge in learningMeans end analysis,  knowledge in learning
Means end analysis, knowledge in learningGaurav Chaubey
 

Ähnlich wie Ai ch2 (20)

Artificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-searchArtificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-search
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
 
Chapter 5 (final)
Chapter 5 (final)Chapter 5 (final)
Chapter 5 (final)
 
AI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptxAI_03_Solving Problems by Searching.pptx
AI_03_Solving Problems by Searching.pptx
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
 
Year 1 AI.ppt
Year 1 AI.pptYear 1 AI.ppt
Year 1 AI.ppt
 
Unit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution'sUnit-III-AI Search Techniques and solution's
Unit-III-AI Search Techniques and solution's
 
C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003
C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003
C:\fakepath\lesson 2.1 thinking spatially mapping tx v2003
 
2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt
 
CptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial IntelligenceCptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial Intelligence
 
AI Lesson 04
AI Lesson 04AI Lesson 04
AI Lesson 04
 
Artificial Intelligence 02 Uninformed Search
Artificial Intelligence 02 Uninformed SearchArtificial Intelligence 02 Uninformed Search
Artificial Intelligence 02 Uninformed Search
 
Lesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web versionLesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web version
 
Lesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web versionLesson 2.1 thinking spatially mapping tx v2003 web version
Lesson 2.1 thinking spatially mapping tx v2003 web version
 
problem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , problomsproblem solve and resolving in ai domain , probloms
problem solve and resolving in ai domain , probloms
 
Basics of Machine Learning
Basics of Machine LearningBasics of Machine Learning
Basics of Machine Learning
 
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 ...
 
AI3391 Session 9 Greedy Best first search algorithm.pptx
AI3391 Session 9 Greedy Best first search algorithm.pptxAI3391 Session 9 Greedy Best first search algorithm.pptx
AI3391 Session 9 Greedy Best first search algorithm.pptx
 
Means end analysis, knowledge in learning
Means end analysis,  knowledge in learningMeans end analysis,  knowledge in learning
Means end analysis, knowledge in learning
 

Mehr von Praveen Kumar

Mehr von Praveen Kumar (20)

Summer2014 internship
Summer2014 internshipSummer2014 internship
Summer2014 internship
 
Summer+training 2
Summer+training 2Summer+training 2
Summer+training 2
 
Summer+training
Summer+trainingSummer+training
Summer+training
 
Solutions1.1
Solutions1.1Solutions1.1
Solutions1.1
 
Slides15
Slides15Slides15
Slides15
 
Scribed lec8
Scribed lec8Scribed lec8
Scribed lec8
 
Scholarship sc st
Scholarship sc stScholarship sc st
Scholarship sc st
 
Networks 2
Networks 2Networks 2
Networks 2
 
Mithfh lecturenotes 9
Mithfh lecturenotes 9Mithfh lecturenotes 9
Mithfh lecturenotes 9
 
Mcs student
Mcs studentMcs student
Mcs student
 
Math350 hw2solutions
Math350 hw2solutionsMath350 hw2solutions
Math350 hw2solutions
 
Matching
MatchingMatching
Matching
 
Line circle draw
Line circle drawLine circle draw
Line circle draw
 
Lecture3
Lecture3Lecture3
Lecture3
 
Lec2 state space
Lec2 state spaceLec2 state space
Lec2 state space
 
Graphtheory
GraphtheoryGraphtheory
Graphtheory
 
Graphics display-devicesmod-1
Graphics display-devicesmod-1Graphics display-devicesmod-1
Graphics display-devicesmod-1
 
Games.4
Games.4Games.4
Games.4
 
Dda line-algorithm
Dda line-algorithmDda line-algorithm
Dda line-algorithm
 
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
 

Kürzlich hochgeladen

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Kürzlich hochgeladen (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Ai ch2

  • 1. Part2 AI as Representation and Search Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011
  • 2. Outline   Intro to Representation and Search Ch3 Structures and strategies for state space search
  • 3. Introduction to Representation   The representation function is to capture the critical features of a problem and make that information accessible to a problem solving procedure Expressiveness (the result of the feature abstracted) and efficiency (the computational complexity) are major dimensions for evaluating knowledge representation
  • 4. Introduction to Representation    The computer representation of floating-point numbers illustrate these trade-off To be precise, real number require an infinite string of digits to be fully described. This cannot be accomplished on a finite device such as computer
  • 6. Introduction to Representation   The array is another representation common in computer science For many problems, it is more natural and efficient than the memory architecture implemented in computer hardware
  • 8. Introduction to Search   Given a representation, the second component of intelligent problem solving is search Human generally consider a number of alternatives strategies on their way to solve a problem    Such as chess Player reviews alternative moves, select the “best” move A player can also consider a short term gain
  • 9. Introduction to Search  Consider “tic-tac-toe”     Starting with an empty board, The first player can place a X on any one of nine places Each move yields a different board that will allow the opponent 8 possible responses and so on…
  • 10. Introduction to Search    We can represent this collection of possible moves by regarding each board as a state in a graph The link of the graph represent legal move The resulting structure is a state space graph
  • 12. Introduction to Search  Consider a task of diagnosing a mechanical fault in an automobile:
  • 14. Introduction to Search  Human use intelligent search  Human do not do exhaustive search  The rules are known as heuristics, and they constitute one of the central topics of AI search
  • 15. Outline   Intro to Representation and Search Ch3 Structures and strategies for state space search
  • 16. State Space Representation    In the state space representation of a problem, the nodes of a graph correspond to partial problem solution states and the arcs correspond to steps in a problem solving process One or more initial states form the root of the graph The graph also defines one or more goal conditions, which are solutions to a problem
  • 17. State Space Representation   State space search characterizes problem solving as the process of finding a solution path form the start state to a goal A goal may describe a state, such as winning board in tic-tac-toe
  • 19. State Space Representation    In the 8-puzzle, 8 different numbered tiles are fitted into 9 spaces on a grid One space is left blank so that tiles can be moved around to form different patterns The goal is to find a series of moves of tiles into the blank space that places the board in a goal configuration:
  • 20. State Space Representation  A goal in configuration in the 8-puzzle
  • 21. State Space Representation  The Traveling salesperson problem   Suppose a salesperson has five cities to visit and then must return home The goal of the problem is to find the shortest path for the salesperson to travel
  • 22. State Space Representation  An instance of the traveling salesperson problem with some greedy concept
  • 24. State Space Representation   As previous slide suggests, the complexity of exhaustive search in the traveling salesperson problem is (N-1)! It is a NP problem
  • 25. Outline   Strategies for state space search Depth-First and Breadth-First Search
  • 26. Strategies for state space search  A state may be searched in two directions:   From the given data of a problem instance toward a foal or From a goal to the data
  • 27. Strategies for state space search   In data driven search, also called forward chaining, the problem solver begins with the given facts of the problem and set of legal moves for changing state This process continues until (we hope!!) it generates a path that satisfies the goal condition
  • 28. Strategies for state space search     An alternative approach (Goal Driven) is start with the goal that we want to solve See what rules can generate this goal and determine what conditions must be true to use them These conditions become the new goals Working backward through successive subgoals until (we hope again!) it work back to
  • 29. Strategies for state space search  For example: Consider the problem of confirming or denying the statement “I am a descendant of Thomas Jefferson”  Some facts:   He was born about 250 years ago Assume 25 years per generation
  • 30. Strategies for state space search    As each person has 2 parents, if we search back (goal driven) starting from “I”, the search space would be 2^10 If we assume an average of only 3 children per family, the search space for search forward (data driven) would be 3^10 Therefore, the decision to choose between data- and goal- driven search is based on the structure of the problem
  • 31. Outline   Strategies for state space search Depth-First and Breadth-First Search
  • 32. BFS and DFS   In addition to specifying a search direction (data-driven or goal-driven), a search algorithm must determine the order in which states are examined in the graph Two possibilities:   Depth-first search Breadth-first search
  • 33. BFS and DFS   In DFS, when a state is examined, all of its children and their descendants are examined before any of its siblings Breadth-first search explores the space in a level-by-level fashion
  • 35. BFS and DFS   DFS results: ABEKSLTFMCGNHOPUDIQJR BFS results: ABCDEFGHIJKLMNOPQRSTU
  • 38. BFS and DFS  Properties of BFS    Because it always examines all nodes at level n before proceeding to level n+1, BFS always finds the shortest path to a goal In a problem have a simple solution, the solution will be found Unfortunately, if the states have a high average number of children, it may use all the memory before it find a solution
  • 39. BFS and DFS  Properties of DFS   If it is known that the solution path will be long, DFS will not spend time searching a large number of “shallow” states in the graph However, DFS may “lost” deep in a graph, missing short paths to a goal, or even stuck in an infinite loop
  • 40. BFS and DFS   A nice compromise on these trade-offs is to use a depth bound on DFS New slide shows a DFS with a depth bound of 5
  • 42. BFS and DFS   DFS with iterative deepening performs a DFS search of the space with a depth bound of 1, If it fails to find a goal, it performs another DFS with depth bound of 2
  • 43. BFS and DFS    Unfortunately, all the search strategies discussed in this chapter may be shown to have worst-case exponential time complexity This is true for all uniformed search algorithms Any other search algorithms???