SlideShare a Scribd company logo
1 of 38
Searching Techniques
Dr. C.V. Suresh Babu
(CentreforKnowledgeTransfer)
institute
• Problem solving
• Problem formulation
• Search Techniques for Artificial Intelligence
• Classification of AI searching Strategies
• What is Search strategy ?
• Defining a Search Problem
• State Space Graph versus Search Trees
• Graph vs. Tree
• Problem Solving by Search
(CentreforKnowledgeTransfer)
institute
 Problem formalization.
 Problem Space (state, state space ,search
tree, search node, goal, action and
successor function )
 Uninformed Search :Depth First Search
(DFS), Breadth First Search (BFS), Depth
First Iterative Deeping Search (DFIDS).
 Heuristic Search: Best First Search, Hill
Climbing, Constraint Satisfaction
(CentreforKnowledgeTransfer)
institute
Problem solving
We want:
 To automatically solve a problem.
We need:
 A representation of the problem.
 Algorithms that use some strategy to solve the problem defined in that
representation.
Searching technique
Using artificial intelligence
(using intelligence similar to human intelligence or using Intelligent Agents )
Formalization
(CentreforKnowledgeTransfer)
institute
Problem Formulation
Goal formulation
 Based on the current situation and the agent’s performance
measure, is the first step in problem solving.
 Goal is a set of states:
 The agent’s task is to find out which sequence of actions will get it
to a goal state.
 Problem formulation :
 is the process of deciding what sorts of actions and states to
consider, given a goal .
(CentreforKnowledgeTransfer)
institute
Search Techniques for Artificial Intelligence
 Searching strategies is a central topic in Artificial Intelligence.
 This part of the course will show why search is such an important
topic, present a general approach to representing problems to do
with search.
 Introduce several search algorithms, and demonstrate how to
implement these algorithms in Prolog.
 Problem solving strategies
 Representing problem solution.
 Basic search strategies.
 Informed search strategies.
 Uninformed search strategies .
Search in AI.
 Automated reasoning
 Theorem proving
 Game playing
 Navigation
(CentreforKnowledgeTransfer)
institute
Classification of AI
searching Strategies
Searching
Strategies in AI
Iterative
Deepening
Depth-
first (DFS)
Depth-
Limited
(DLS)
Un-informed
(Blind Search)
Breadth-
First (BFS)
Cost-
First (CFS)
Informed
(Heuristic Search)
Hill
Climbing
Constraint
Satisfaction
Best-First
Search (BFS)
A* Search
A very large number of AI problems are formulated as search problems.
(CentreforKnowledgeTransfer)
institute
What is Search strategy ?
Search
Search is the systematic examination of states to find path from the
start/root state to the goal state.
 Search usually results from a lack of knowledge.
 Search explores knowledge alternatives to arrive at the best
answer.
 Search algorithm output is a solution, ie, a path from the initial state
to a state that satisfies the goal test.
(CentreforKnowledgeTransfer)
institute
Defining a Search Problem
A well-defined problem can be described by
 State space S : all possible configurations(situations) of the domain of
interest .
All states reachable from initial by any sequence of actions.
 Is a graph whose nodes are the set of all states, and whose links are actions
that transform one state into another.
Each state is an abstract representation of the environment.
The state space is discrete.
 An initial (start) state: ∈ S
 Usually the current state .
 Sometimes one or several hypothetical states (“what if …”)
 Goal states G ⊂ S :
The set of end states –Often defined by a goal test rather than enumerating a
set of states.
s0
(CentreforKnowledgeTransfer)
institute
Defining a Search Problem
A well-defined problem can be described by
Operators (Action) A :
 The actions available–often defined in terms of a mapping from a state to its
successor.
 Is something that the agent can choose to do.
Search tree :
 (A graph with no undirected loops) in which the root node is the start state
and the set of children for each node consists of the states reachable by
taking any action.
Search node :
 Is a node in the search tree.
Goal :
Is a state that the agent (solution) is trying to reach.
(CentreforKnowledgeTransfer)
institute
Defining a Search Problem: A well-defined problem can be described by
 Path :
 A sequence of states and operators.
 Sequence through state space.
 Path cost:
A number associated with any path.
Measures the quality of the path.
Sum of costs of individual actions along the path.
Usually the smaller, the better.
 Solution of a search problem:
 Is a path from to some ∈ G.
Optimal solution:
Any path with minimum cost.
 Goal test :
 Test to determine if at goal state.
s0
Sg
(CentreforKnowledgeTransfer)
institute
State Space Graph versus Search Trees
State Space Graph
 Graph of states with arrows pointing to successors.
 State graph shows the possible states of a system.
 A state is a node in which a system can be at any given time.
 May contain a loop.
State Space Graph
(CentreforKnowledgeTransfer)
institute
Defining a Search Problem
State Space Tree
 Tree is a special case of a graph.
 The topmost node in a tree is called the root node; at root node all operations on the tree begin.
 Each NODE in in the search tree is an entire PATH in the problem graph.
 Represent a plan (sequence of actions) which results in the node’s state .
State Space Tree
(CentreforKnowledgeTransfer)
institute
Defining a Search Problem
(CentreforKnowledgeTransfer)
institute
Graph vs. Tree
(CentreforKnowledgeTransfer)
institute
(CentreforKnowledgeTransfer)
institute
Problem Solving by Search
 An important aspect of intelligence is goal-based problem solving.
 The solution of many problems can be described by finding a
sequence of actions that lead to a desirable goal.
 Each action changes the state and the aim is to find the sequence of
actions and states that lead from the initial (start) state to a final (goal)
state.
(CentreforKnowledgeTransfer)
institute
Example (1) : Vacuum Cleaner world state space graph
States? Discrete: dirt and robot location
Initial state? Any
Actions? Left, right, suck
Goal test? No dirt at all locations
Path cost? 1 per action
Solution Optimal sequence of operations(actions)
(CentreforKnowledgeTransfer)
institute
Example (1) : Vacuum Cleaner world state space
 Observable, start in #5.
Solution? [Right , Suck]
 Observable, start in #2.
Solution? [Suck , Left , Suck]
 Observable, start in #6.
Solution? [Suck , Left]
 Observable, start in #1.
Solution? [Suck , Right , Suck]
 Unobservable, start in {1,2,3,4,5,6,7,8}
Solution? [Right , Suck , Left , Suck]
(CentreforKnowledgeTransfer)
institute
Example (1) :
Vacuum Cleaner
world state space
graph
(CentreforKnowledgeTransfer)
institute
Example (1) :
Vacuum Cleaner
world state space
tree
L R
S
S
8
3 ,7
7
4 ,8
L
3 ,7
7
S
1 ,3,5,7
S
5 ,7
R
6,8
S
8
4 ,6,8
4 ,8
S
4 ,8
3 ,7
7
S
L
S
5,7
R
S
6 ,8
8
2,4,6 ,8
1,3,5,7 4,5 ,7,8
S
L
R
L
S
R
5 ,7
R
6,8
S
2,4,6 ,8
S
L
4 ,8
1 ,3,5,7
S
S
5,7
R
6 ,8
8
R
Any State
(CentreforKnowledgeTransfer)
institute
Example(2): The 8-puzzle Problem
state space
Initial State: any configuration Goal State : tiles in a specific order
States? Locations of tiles
Initial State? Given
Actions? Move blank left, right, up, down
Goal test? Goal state (given)
Path cost? 1 per move
Solution: Optimal sequence of operators
(CentreforKnowledgeTransfer)
institute
(CentreforKnowledgeTransfer)
institute
Example(2): The 8-puzzle Problem
State space tree
Up
Left Down Right
U
L R D L R U D
(CentreforKnowledgeTransfer)
institute
Example (3) :Route Planning: Dongla Khartoum
 On holiday in Khartoum; currently in Dongla.
(CentreforKnowledgeTransfer)
institute
Example (3) :Route Planning: Dongla Khartoum
States? Various cities
Initial State? Dongla
Actions? Drive between cities or choose next city
Goal test? Be in Khartoum
Path cost? Distance in km
Solution: Sequence of cities, e. g. Dongla, Karima
, Abu-hammed, Khartoum.
(CentreforKnowledgeTransfer)
institute
Karima
Dongla
Old-Dongla
Karmma
Wadi-Halfa Marawi Korti
Abu-Hammed
Khartoum
Sodri Qoz-Abu-Dulu
Khartoum
118
75
140
71 80 97
211
101
97
146
Qoz-Abu-Dulu
Um-Badir
Khartoum
Abu-Urug
Um-Badir
Sodri
Marawi Qoz-Abu-Dulu
Khartoum
Qoz-Abu-Dulu
Khartoum
111
70
75
120
120
138
101
146 118
101
97
101
(CentreforKnowledgeTransfer)
institute
Example (4): Robotic assembly
• states?: real-valued coordinates of robot joint angles
parts of the object to be assembled
• initial state?: rest configuration
• actions?: continuous motions of robot joints
• goal test?: complete assembly
• path cost?: time to execute
(CentreforKnowledgeTransfer)
institute
Uninformed search
 Uninformed Search (also called blind search) is a search that has
no information about its domain.
Use only the information available in the problem definition.
Generates the search tree without using any domain specific
knowledge.
The only thing that a blind search can do is distinguish a non-goal
state from a goal state.
Brute-force algorithms search, through the search space, all
possible candidates for the solution checking whether each
candidate satisfies the problem's statement.
(CentreforKnowledgeTransfer)
institute
Uninformed search
Breadth-first search (BFS)
Depth-first search (DFS)
Uniform-cost search
Depth-limited search
Iterative deepening search
(CentreforKnowledgeTransfer)
institute
Informed Search
Informed Search algorithms use heuristic functions, that
are specific to the problem, apply them to guide the search
through the search space to try to reduce the amount of
time spent in searching.
(CentreforKnowledgeTransfer)
institute
Breadth-first search (BFS)
A Search strategy, in which the highest layer of a decision tree is searched
completely before proceeding to the next layer is called Breadth-first search
(BFS).
When a state is examined, all of its siblings are examined before any
of its children.
The space is searched level-by-level, proceeding all the way across
one level before doing down to the next level.
In this strategy, no viable solution is omitted and therefore guarantee
that optimal solution is found.
This strategy is often not feasible when the search space is large.
BFS explores nodes nearest to the root before exploring nodes that
are father or further away.
(CentreforKnowledgeTransfer)
institute
Breadth-first search (BFS)
(CentreforKnowledgeTransfer)
institute
Breadth-first search (BFS)
Node are explored in the order :
A B C D E F G H I J K L M N O P Q
■ After searching A, then B, then C, the search proceeds with D,E, F, G, . . . . . . . . .
■ The goal node J will be found before the goal node N.
(CentreforKnowledgeTransfer)
institute
Depth-first search (DFS)
 A search strategy that extends the current path as far as possible before backtracking to
the last choice point and trying the next alternative path is called Depth-first search
(DFS).
 When a state is examined, all of its children and their descendants are examined
before any of its siblings.
 DFS goes deeper in to the search space when ever this is possible only when no
further descendants of a state can found.
 This strategy does not guarantee that the optimal solution has been found.
 In this strategy, search reaches a satisfactory solution more rapidly than breadth first,
an advantage when the search space is large.
(CentreforKnowledgeTransfer)
institute
Depth-first search (DFS)
The Breadth-first search (BFS) and depth-first search (DFS)
are the foundation for all other search techniques.
(CentreforKnowledgeTransfer)
institute
Depth-first search (DFS)
Node are explored in the order :
A B D E H L M N I O P C F G J K Q
■ After searching node A, then B, then D, the search backtracks and tries another
path from node B .
■ The goal node N will be found before the goal node J.
(CentreforKnowledgeTransfer)
institute
DFS vs BFS Algorithm
(CentreforKnowledgeTransfer)
institute

More Related Content

What's hot

Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEKhushboo Pal
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligencegrinu
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligencesandeep54552
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithmMegha Sharma
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemMohammad Imam Hossain
 
Propositional logic
Propositional logicPropositional logic
Propositional logicRushdi Shams
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AIVishal Singh
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AIvikas dhakane
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in aivikas dhakane
 
AI search techniques
AI search techniquesAI search techniques
AI search techniquesOmar Isaid
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmvikas dhakane
 

What's hot (20)

Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
 
Planning
PlanningPlanning
Planning
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithm
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in ai
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
AI search techniques
AI search techniquesAI search techniques
AI search techniques
 
Ai 8 puzzle problem
Ai 8 puzzle problemAi 8 puzzle problem
Ai 8 puzzle problem
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
 

Similar to Artificial Intelligence Searching Techniques

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
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithmsMinakshi Atre
 
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
 
CptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial IntelligenceCptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial Intelligencebutest
 
Artificial intelligence(04)
Artificial intelligence(04)Artificial intelligence(04)
Artificial intelligence(04)Nazir Ahmed
 
Lecture is related to the topic of Artificial intelligence
Lecture is related to the topic of Artificial intelligenceLecture is related to the topic of Artificial intelligence
Lecture is related to the topic of Artificial intelligencemohsinwaseer1
 
Jarrar: Un-informed Search
Jarrar: Un-informed SearchJarrar: Un-informed Search
Jarrar: Un-informed SearchMustafa Jarrar
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxkitsenthilkumarcse
 
Searching algorithm in AI.pptx
Searching algorithm in AI.pptxSearching algorithm in AI.pptx
Searching algorithm in AI.pptxExaminationGits
 
State Space Search Strategies in Artificial Intelligence (AI)
State Space Search Strategies in Artificial Intelligence (AI)State Space Search Strategies in Artificial Intelligence (AI)
State Space Search Strategies in Artificial Intelligence (AI)RSAISHANKAR
 
Amit ppt
Amit pptAmit ppt
Amit pptamitp26
 
(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
 
Search-Beyond-Classical-no-exercise-answers.pdf
Search-Beyond-Classical-no-exercise-answers.pdfSearch-Beyond-Classical-no-exercise-answers.pdf
Search-Beyond-Classical-no-exercise-answers.pdfMrRRThirrunavukkaras
 

Similar to Artificial Intelligence Searching Techniques (20)

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
 
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
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithms
 
AI: AI & problem solving
AI: AI & problem solvingAI: AI & problem solving
AI: AI & problem solving
 
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
 
Lec#2
Lec#2Lec#2
Lec#2
 
CptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial IntelligenceCptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial Intelligence
 
Lecture 3 Problem Solving.pptx
Lecture 3 Problem Solving.pptxLecture 3 Problem Solving.pptx
Lecture 3 Problem Solving.pptx
 
AI_Lecture2.pptx
AI_Lecture2.pptxAI_Lecture2.pptx
AI_Lecture2.pptx
 
Artificial intelligence(04)
Artificial intelligence(04)Artificial intelligence(04)
Artificial intelligence(04)
 
Lecture is related to the topic of Artificial intelligence
Lecture is related to the topic of Artificial intelligenceLecture is related to the topic of Artificial intelligence
Lecture is related to the topic of Artificial intelligence
 
Jarrar: Un-informed Search
Jarrar: Un-informed SearchJarrar: Un-informed Search
Jarrar: Un-informed Search
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
 
Searching algorithm in AI.pptx
Searching algorithm in AI.pptxSearching algorithm in AI.pptx
Searching algorithm in AI.pptx
 
State Space Search Strategies in Artificial Intelligence (AI)
State Space Search Strategies in Artificial Intelligence (AI)State Space Search Strategies in Artificial Intelligence (AI)
State Space Search Strategies in Artificial Intelligence (AI)
 
state-spaces29Sep06.ppt
state-spaces29Sep06.pptstate-spaces29Sep06.ppt
state-spaces29Sep06.ppt
 
Amit ppt
Amit pptAmit ppt
Amit ppt
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
 
Search-Beyond-Classical-no-exercise-answers.pdf
Search-Beyond-Classical-no-exercise-answers.pdfSearch-Beyond-Classical-no-exercise-answers.pdf
Search-Beyond-Classical-no-exercise-answers.pdf
 
l2.pptx
l2.pptxl2.pptx
l2.pptx
 

More from Dr. C.V. Suresh Babu (20)

Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
 
Association rules
Association rulesAssociation rules
Association rules
 
Clustering
ClusteringClustering
Clustering
 
Classification
ClassificationClassification
Classification
 
Blue property assumptions.
Blue property assumptions.Blue property assumptions.
Blue property assumptions.
 
Introduction to regression
Introduction to regressionIntroduction to regression
Introduction to regression
 
DART
DARTDART
DART
 
Mycin
MycinMycin
Mycin
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Bayes network
Bayes networkBayes network
Bayes network
 
Bayes' theorem
Bayes' theoremBayes' theorem
Bayes' theorem
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Rule based system
Rule based systemRule based system
Rule based system
 
Formal Logic in AI
Formal Logic in AIFormal Logic in AI
Formal Logic in AI
 
Production based system
Production based systemProduction based system
Production based system
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
Diagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AIDiagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AI
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
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
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging 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...Alan Dix
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 

Recently uploaded (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
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 ...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
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...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 

Artificial Intelligence Searching Techniques

  • 1. Searching Techniques Dr. C.V. Suresh Babu (CentreforKnowledgeTransfer) institute
  • 2. • Problem solving • Problem formulation • Search Techniques for Artificial Intelligence • Classification of AI searching Strategies • What is Search strategy ? • Defining a Search Problem • State Space Graph versus Search Trees • Graph vs. Tree • Problem Solving by Search (CentreforKnowledgeTransfer) institute
  • 3.  Problem formalization.  Problem Space (state, state space ,search tree, search node, goal, action and successor function )  Uninformed Search :Depth First Search (DFS), Breadth First Search (BFS), Depth First Iterative Deeping Search (DFIDS).  Heuristic Search: Best First Search, Hill Climbing, Constraint Satisfaction (CentreforKnowledgeTransfer) institute
  • 4. Problem solving We want:  To automatically solve a problem. We need:  A representation of the problem.  Algorithms that use some strategy to solve the problem defined in that representation. Searching technique Using artificial intelligence (using intelligence similar to human intelligence or using Intelligent Agents ) Formalization (CentreforKnowledgeTransfer) institute
  • 5. Problem Formulation Goal formulation  Based on the current situation and the agent’s performance measure, is the first step in problem solving.  Goal is a set of states:  The agent’s task is to find out which sequence of actions will get it to a goal state.  Problem formulation :  is the process of deciding what sorts of actions and states to consider, given a goal . (CentreforKnowledgeTransfer) institute
  • 6. Search Techniques for Artificial Intelligence  Searching strategies is a central topic in Artificial Intelligence.  This part of the course will show why search is such an important topic, present a general approach to representing problems to do with search.  Introduce several search algorithms, and demonstrate how to implement these algorithms in Prolog.  Problem solving strategies  Representing problem solution.  Basic search strategies.  Informed search strategies.  Uninformed search strategies . Search in AI.  Automated reasoning  Theorem proving  Game playing  Navigation (CentreforKnowledgeTransfer) institute
  • 7. Classification of AI searching Strategies Searching Strategies in AI Iterative Deepening Depth- first (DFS) Depth- Limited (DLS) Un-informed (Blind Search) Breadth- First (BFS) Cost- First (CFS) Informed (Heuristic Search) Hill Climbing Constraint Satisfaction Best-First Search (BFS) A* Search A very large number of AI problems are formulated as search problems. (CentreforKnowledgeTransfer) institute
  • 8. What is Search strategy ? Search Search is the systematic examination of states to find path from the start/root state to the goal state.  Search usually results from a lack of knowledge.  Search explores knowledge alternatives to arrive at the best answer.  Search algorithm output is a solution, ie, a path from the initial state to a state that satisfies the goal test. (CentreforKnowledgeTransfer) institute
  • 9. Defining a Search Problem A well-defined problem can be described by  State space S : all possible configurations(situations) of the domain of interest . All states reachable from initial by any sequence of actions.  Is a graph whose nodes are the set of all states, and whose links are actions that transform one state into another. Each state is an abstract representation of the environment. The state space is discrete.  An initial (start) state: ∈ S  Usually the current state .  Sometimes one or several hypothetical states (“what if …”)  Goal states G ⊂ S : The set of end states –Often defined by a goal test rather than enumerating a set of states. s0 (CentreforKnowledgeTransfer) institute
  • 10. Defining a Search Problem A well-defined problem can be described by Operators (Action) A :  The actions available–often defined in terms of a mapping from a state to its successor.  Is something that the agent can choose to do. Search tree :  (A graph with no undirected loops) in which the root node is the start state and the set of children for each node consists of the states reachable by taking any action. Search node :  Is a node in the search tree. Goal : Is a state that the agent (solution) is trying to reach. (CentreforKnowledgeTransfer) institute
  • 11. Defining a Search Problem: A well-defined problem can be described by  Path :  A sequence of states and operators.  Sequence through state space.  Path cost: A number associated with any path. Measures the quality of the path. Sum of costs of individual actions along the path. Usually the smaller, the better.  Solution of a search problem:  Is a path from to some ∈ G. Optimal solution: Any path with minimum cost.  Goal test :  Test to determine if at goal state. s0 Sg (CentreforKnowledgeTransfer) institute
  • 12. State Space Graph versus Search Trees State Space Graph  Graph of states with arrows pointing to successors.  State graph shows the possible states of a system.  A state is a node in which a system can be at any given time.  May contain a loop. State Space Graph (CentreforKnowledgeTransfer) institute
  • 13. Defining a Search Problem State Space Tree  Tree is a special case of a graph.  The topmost node in a tree is called the root node; at root node all operations on the tree begin.  Each NODE in in the search tree is an entire PATH in the problem graph.  Represent a plan (sequence of actions) which results in the node’s state . State Space Tree (CentreforKnowledgeTransfer) institute
  • 14. Defining a Search Problem (CentreforKnowledgeTransfer) institute
  • 17. Problem Solving by Search  An important aspect of intelligence is goal-based problem solving.  The solution of many problems can be described by finding a sequence of actions that lead to a desirable goal.  Each action changes the state and the aim is to find the sequence of actions and states that lead from the initial (start) state to a final (goal) state. (CentreforKnowledgeTransfer) institute
  • 18. Example (1) : Vacuum Cleaner world state space graph States? Discrete: dirt and robot location Initial state? Any Actions? Left, right, suck Goal test? No dirt at all locations Path cost? 1 per action Solution Optimal sequence of operations(actions) (CentreforKnowledgeTransfer) institute
  • 19. Example (1) : Vacuum Cleaner world state space  Observable, start in #5. Solution? [Right , Suck]  Observable, start in #2. Solution? [Suck , Left , Suck]  Observable, start in #6. Solution? [Suck , Left]  Observable, start in #1. Solution? [Suck , Right , Suck]  Unobservable, start in {1,2,3,4,5,6,7,8} Solution? [Right , Suck , Left , Suck] (CentreforKnowledgeTransfer) institute
  • 20. Example (1) : Vacuum Cleaner world state space graph (CentreforKnowledgeTransfer) institute
  • 21. Example (1) : Vacuum Cleaner world state space tree L R S S 8 3 ,7 7 4 ,8 L 3 ,7 7 S 1 ,3,5,7 S 5 ,7 R 6,8 S 8 4 ,6,8 4 ,8 S 4 ,8 3 ,7 7 S L S 5,7 R S 6 ,8 8 2,4,6 ,8 1,3,5,7 4,5 ,7,8 S L R L S R 5 ,7 R 6,8 S 2,4,6 ,8 S L 4 ,8 1 ,3,5,7 S S 5,7 R 6 ,8 8 R Any State (CentreforKnowledgeTransfer) institute
  • 22. Example(2): The 8-puzzle Problem state space Initial State: any configuration Goal State : tiles in a specific order States? Locations of tiles Initial State? Given Actions? Move blank left, right, up, down Goal test? Goal state (given) Path cost? 1 per move Solution: Optimal sequence of operators (CentreforKnowledgeTransfer) institute
  • 24. Example(2): The 8-puzzle Problem State space tree Up Left Down Right U L R D L R U D (CentreforKnowledgeTransfer) institute
  • 25. Example (3) :Route Planning: Dongla Khartoum  On holiday in Khartoum; currently in Dongla. (CentreforKnowledgeTransfer) institute
  • 26. Example (3) :Route Planning: Dongla Khartoum States? Various cities Initial State? Dongla Actions? Drive between cities or choose next city Goal test? Be in Khartoum Path cost? Distance in km Solution: Sequence of cities, e. g. Dongla, Karima , Abu-hammed, Khartoum. (CentreforKnowledgeTransfer) institute
  • 27. Karima Dongla Old-Dongla Karmma Wadi-Halfa Marawi Korti Abu-Hammed Khartoum Sodri Qoz-Abu-Dulu Khartoum 118 75 140 71 80 97 211 101 97 146 Qoz-Abu-Dulu Um-Badir Khartoum Abu-Urug Um-Badir Sodri Marawi Qoz-Abu-Dulu Khartoum Qoz-Abu-Dulu Khartoum 111 70 75 120 120 138 101 146 118 101 97 101 (CentreforKnowledgeTransfer) institute
  • 28. Example (4): Robotic assembly • states?: real-valued coordinates of robot joint angles parts of the object to be assembled • initial state?: rest configuration • actions?: continuous motions of robot joints • goal test?: complete assembly • path cost?: time to execute (CentreforKnowledgeTransfer) institute
  • 29. Uninformed search  Uninformed Search (also called blind search) is a search that has no information about its domain. Use only the information available in the problem definition. Generates the search tree without using any domain specific knowledge. The only thing that a blind search can do is distinguish a non-goal state from a goal state. Brute-force algorithms search, through the search space, all possible candidates for the solution checking whether each candidate satisfies the problem's statement. (CentreforKnowledgeTransfer) institute
  • 30. Uninformed search Breadth-first search (BFS) Depth-first search (DFS) Uniform-cost search Depth-limited search Iterative deepening search (CentreforKnowledgeTransfer) institute
  • 31. Informed Search Informed Search algorithms use heuristic functions, that are specific to the problem, apply them to guide the search through the search space to try to reduce the amount of time spent in searching. (CentreforKnowledgeTransfer) institute
  • 32. Breadth-first search (BFS) A Search strategy, in which the highest layer of a decision tree is searched completely before proceeding to the next layer is called Breadth-first search (BFS). When a state is examined, all of its siblings are examined before any of its children. The space is searched level-by-level, proceeding all the way across one level before doing down to the next level. In this strategy, no viable solution is omitted and therefore guarantee that optimal solution is found. This strategy is often not feasible when the search space is large. BFS explores nodes nearest to the root before exploring nodes that are father or further away. (CentreforKnowledgeTransfer) institute
  • 34. Breadth-first search (BFS) Node are explored in the order : A B C D E F G H I J K L M N O P Q ■ After searching A, then B, then C, the search proceeds with D,E, F, G, . . . . . . . . . ■ The goal node J will be found before the goal node N. (CentreforKnowledgeTransfer) institute
  • 35. Depth-first search (DFS)  A search strategy that extends the current path as far as possible before backtracking to the last choice point and trying the next alternative path is called Depth-first search (DFS).  When a state is examined, all of its children and their descendants are examined before any of its siblings.  DFS goes deeper in to the search space when ever this is possible only when no further descendants of a state can found.  This strategy does not guarantee that the optimal solution has been found.  In this strategy, search reaches a satisfactory solution more rapidly than breadth first, an advantage when the search space is large. (CentreforKnowledgeTransfer) institute
  • 36. Depth-first search (DFS) The Breadth-first search (BFS) and depth-first search (DFS) are the foundation for all other search techniques. (CentreforKnowledgeTransfer) institute
  • 37. Depth-first search (DFS) Node are explored in the order : A B D E H L M N I O P C F G J K Q ■ After searching node A, then B, then D, the search backtracks and tries another path from node B . ■ The goal node N will be found before the goal node J. (CentreforKnowledgeTransfer) institute
  • 38. DFS vs BFS Algorithm (CentreforKnowledgeTransfer) institute