SlideShare a Scribd company logo
1 of 55
Download to read offline
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
We lose ourselves in books, we find ourselves
there too.
Kristin Martz
Artificial
Intelligence
1
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Course Summary
Artificial Intelligence (AI) is a field that has a long history
but is still constantly and actively growing and changing. In
this course, you’ll learn the basics of modern AI as well as
some of the representative applications of AI. Along the
way, we also hope to excite you about the numerous
applications and huge possibilities in the field of AI, which
continues to expand human capability beyond our
imagination.
2
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Introduction to AI
Humankind has given itself the scientific name homo sapiens—man
the wise—because our mental capacities are so important to our
everyday lives and our sense of self. The field of artificial
intelligence, or AI, attempts to understand intelligent entities. Thus,
one reason to study it is to learn more about ourselves. But unlike
philosophy and psychology, which are also concerned with
intelligence, AI strives to build intelligent entities as well as
understand them. Another reason to study AI is that these constructed
intelligent entities are interesting and useful in their own right. AI has
produced many significant and impressive products even at this early
stage in its development. Although no one can predict the future in
detail, it is clear that computers with human-level intelligence (or
better) would have a huge impact on our everyday lives and on the
future course of civilization.
3
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Brain
The an actual human brain:
1. Not solid, its soft and squishy.
2. Similar to soft gelatin.
3. The typical brain is about 2% of a body weight.
4. Its consumes 20% of the total energy produced by the body.
5. During early pregnancy neurons develop at the rate 250,000
neurons per minute.
6. There are approximately 100 billion neurons in the adult human
brain.
7. Each neuron connects with approximately 40,000 synapses.
4
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
8. There are as many as 10,000 specific types of neurons in the brain
9. Your brain can process information as fast as 432 kph (268 mph),
that's faster than formula 1 race cars which top out at 386 kph
(240 mph).
10. It can also generate about 12-25 watts of electricity, which is
enough to power a low wattage LED light.
11. Our brains are getting smaller and smaller, over the past 10-
20,000 years the size of the average human brain has shrunk by
the size of a tennis ball.
# The University of Utah
5
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Turing Test
The Turing Test, proposed by Alan Turing (Turing, 1950), was
designed to provide a satisfactory operational definition of
intelligence. Turing defined intelligent behavior as the ability to
achieve human-level performance in all cognitive tasks, sufficient to
fool an interrogator. Roughly speaking, the test he proposed is that the
computer should be interrogated by a human via a teletype, and
passes the test if the interrogator cannot tell if there is a computer or a
human at the other end.
6
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Turing Test
The computer would need to possess the following capabilities:
1. natural language processing to enable it to communicate
successfully in English (or some other human language);
2. knowledge representation to store information provided before
or during the interrogation;
3. automated reasoning to use the stored information to answer
questions and to draw new conclusions;
4. machine learning to adapt to new circumstances and to detect
and extrapolate patterns.
7
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Turing Test
Turing's test deliberately avoided direct physical interaction between
the interrogator and the computer, because physical simulation of a
person is unnecessary for intelligence. However, the so-called total
Turing Test includes a video signal so that the interrogator can test the
subject's perceptual abilities, as well as the opportunity for the
interrogator to pass physical objects ``through the hatch.'' To pass the
total Turing Test, the computer will need:
• Computer vision to perceive objects.
• Robotics to move them about.
8
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Structures and Strategies for State
Space Search
1. Graph Theory.
2. The State Space Representing of Problems.
3. Strategies for State Space Search.
9
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Graph Theory
A graph is a set of labeled nodes or states that are connected
by arcs. labels are used to differentiate nodes. In a state space
graph, the nodes represent different states of a problem to be
solved.
The arcs of a graph can have direction associated which
introduces a direct graph, also arcs can be labeled so that
similar nodes can be differentiated.
A rooted graph is a graph with one initial node connected to
the other nodes.
A tree is a graph were each node is connected to the other by
one unique arc, hence, there is no cycling in a tree.
10
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Graph Theory
The question here is who is liz’s parent?
Parent(X,liz);
Ans= tom.
11
lara tom
bob liz
ann pat
jin
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Graph Theory
12
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Graph Theory
13
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Examples
14
Initial State
Goal
An example of a graph
where H is a initial state
and the E is a Goal.
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Initial State
Q) What’s the solution path to the goal?
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
8 Puzzle Examples
Initial State Goal
321
48
567
321
46
578
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
8 Puzzle Examples
Initial State
Goal
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
8 Puzzle Examples
Initial State Goal
321
48
567
321
476
58
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
8 Puzzle Examples
Initial State Goal
31
428
567
31
468
257
Home Work..?
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Travelling Salesman Problem
The travelling salesman problem (TSP) asks the
following question: Given a list of cities and the distances
between each pair of cities, what is the shortest possible
route that visits each city exactly once and returns to the
origin city? It is an NP-hard problem in combinatorial
optimization, important in operations research and
theoretical computer science.
20
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Travelling Salesman Problem
21
An instance of the traveling salesperson problem.
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Travelling Salesman Problem
Search of the traveling salesperson problem. Each arc is marked with
the total weight of all paths from the start node (A) to its endpoint.
22
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
The State Space Representing of Problems
• The state space is a graph representation of a problem, where
the nodes of a graph represent partial solutions in the problem
space, and the arcs are steps taken in the problem solving
process.
• The root of the graph represents the initial state of a problem.
The graph must identify one or more goal nodes, where the
solution to the problem in hand is found.
• State space search characterizes problem solving as the process
of finding a solution path from the start state to a goal.
23
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
State Space Search
A state space is represented by [N,A,S,GD]. where
-N is the set of nodes or states in a graph.
-A is the set of arcs or links between the nodes.
-S is a nonempty subset of N, represents the start node.
-GD is a nonempty subset of N, represents the goal nodes.
Note: A solution path is the path taken to reach a goal.
24
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Strategies for State Space Search
1. Uninformed Search Strategies:
i. Depth first search (DFS)
ii. Breadth first search (BFS)
iii. Iterative deepening search
2. Informed Search Strategies (Heuristic Search):
i. Hill climbing, Simulated Annealing, Tabu search
ii. Best first search
iii. Greedy search
iv. A* search
25
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Strategies for State Space Search
1. Uninformed Search Strategies:
• A problem determines the graph and the goal but not which path to select
from the frontier. This is the job of a search strategy. A search strategy
specifies which paths are selected from the frontier. Different strategies
are obtained by modifying how the selection of paths in the frontier is
implemented.
2. Informed Search Strategies (Heuristic Search):
26
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Depth first search (DFS)
The first strategy is depth-first search. In depth-first search, the
frontier acts like a last-in first-out stack. The elements are added to
the stack one at a time. The one selected and taken off the frontier at
any time is the last element that was added.
Implementing the frontier as a stack results in paths being pursued in
a depth-first manner - searching one path to its completion before
trying an alternative path. This method is said to
involve backtracking: The algorithm selects a first alternative at each
node, and it backtracks to the next alternative when it has pursued all
of the paths from the first selection. Some paths may be infinite when
the graph has cycles or infinitely many nodes, in which case a depth-
first search may never stop.
27
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Depth first search (DFS)
28
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Depth first search (DFS)
29
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Depth first search (DFS)
30
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Depth first search (DFS)
31
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Breadth first search (BFS)
In breadth-first search the frontier is implemented as a FIFO (first-in, first-
out) queue. Thus, the path that is selected from the frontier is the one that
was added earliest. This approach implies that the paths from the start node
are generated in order of the number of arcs in the path. One of the paths
with the fewest arcs is selected at each stage.
Breadth-first search is useful when:
1. Space is not a problem.
2. You want to find the solution containing the fewest arcs.
3. Few solutions may exist, and at least one has a short path length; and
4. Infinite paths may exist, because it explores all of the search space, even
with infinite paths.
- It is a poor method when all solutions have a long path length or there is
some heuristic knowledge available. It is not used very often because of
its space complexity.
32
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Breadth first search (BFS)
33
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Breadth first search (BFS)
34
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Breadth first search (BFS)
35
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Breadth first search (BFS)
36
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Breadth first search (BFS)
37
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Iterative Deepening search
In computer science, iterative deepening search or more
specifically iterative deepening depth-first search[1] (IDS
or IDDFS) is a state space/graph search strategy in which a
depth-limited version of depth-first search is run repeatedly
with increasing depth limits until the goal is found. IDDFS
is equivalent to breadth-first search, but uses much less
memory; on each iteration, it visits the nodes in the search
tree in the same order as depth-first search, but the
cumulative order in which nodes are first visited is
effectively breadth-first.
38
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Iterative Deepening search
39
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Iterative deepening search
40
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Iterative Deepening search
41
Depth limit 0#
A1
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Iterative Deepening search
42
Depth limit 1#
A1
BFCD2
FCD3
CD4
D5
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Iterative Deepening search
43
Depth limit 1#
A1
BFCD2
EFCD3
FCD4
JGCD5
GCD – G is Goal
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Backtracking Graph
SL =State List (Path from State to the top).
NSL =New State List (All Opened states without DE).
DE =Dead Ends (States that is dead).
CS =Current State.
44
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 45
Quiz: DFS, BFS, IDS, Min Cost: Goal is P, M, M, M
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 46
Quiz:
DFS, BFS, IDS, Min Cost: Goal is P, M, M, M
Sol:
DFS: A B E I L M K P
BFS: A B C H E F G K I J N M
IDS: A C G M
Min Cost: A C F J N M
A C G N M
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
47
Example1: Backtracking search of a hypothetical state space.
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
A trace of backtrack on the graph DFS
48
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
A trace of backtrack on the graph BFS
49
DENSLSLCSi
[ ][A][A]A0
[A][BCD][BA]B1
[BA][CDEF][CBA]C2
[CBA][DEFG][DCBA]D3
[DCBA][EFG][EDCBA]E4
[EDCBA][FGHI][FEDCBA]F5
[FEDCBA][GHIJ][GFEDCBA]G6
[GFEDCBA][HIJ][HGFEDCBA]H7
[HGFEDCBA][IJ][IHGFEDCBA]I8
[IHGFEDCBA][J][JIHGFEDCBA]J9
[JIHGFEDCBA][ ][ ][ ]10
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
A trace of backtrack on the graph IDS
50
DENSLSLCSi
[ ][A][A]A0
[ ][ABCD][BA]B1
[ ][ABCDEF][CA]C2
[ ][ABCDEFG][DA]D3
[D][ABCEFG][EBA]E4
[D][ABCEFGHI][FBA]F5
[D][ABCEFGHIJ][GCA]G6
[GD][ABCEFHIJ][HEBA]H7
[HGD][ABCEFIJ][IEBA]I8
[HGDIE][ABCFJ][JFBA]J9
[JIHGFEDCBA][ ][ ][ ]10
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
51
Example2: Graph for depth-first search examples.
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
52
Example2: Graph for depth-first search examples.
Open [A]; Close [].
Open [BA]; Close [].
Open [EBA]; Close [].
Open [KEBA]; Close [].
Open [SKEBA]; Close [].
Open [LEBA]; Close [SK].
Open [TLEBA]; Close [SK].
Open [FBA]; Close [SKTLE].
Open [MFBA]; Close [SKTLE].
Open [CA]; Close [SKTLEMFB]. …
and so on until either U is founded or Open is [ ].
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
53
Q1) Graph for breadth-first search examples?
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
Back Tracking Graph
54
Example2: Graph for breadth-first search examples.
Renas R. Rekany Artificial Intelligence Nawroz University
Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016
THE END
Reference:
1. Artificial Intelligence Structure and Strategies for
Complex Problem Solving. 4th edition George F. Luger
Addison Wesley.
55

More Related Content

What's hot

9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problemsJyotsna Suryadevara
 
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
 
Knowledge Engineering in FOL.
Knowledge Engineering in FOL.Knowledge Engineering in FOL.
Knowledge Engineering in FOL.Megha Sharma
 
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
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
3 problem-solving-
3 problem-solving-3 problem-solving-
3 problem-solving-Mhd Sb
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsNuruzzaman Milon
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representationSajan Sahu
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AIVishal Singh
 

What's hot (20)

9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
 
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
 
Knowledge Engineering in FOL.
Knowledge Engineering in FOL.Knowledge Engineering in FOL.
Knowledge Engineering in FOL.
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
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...
 
First order logic
First order logicFirst order logic
First order logic
 
Ai 8 puzzle problem
Ai 8 puzzle problemAi 8 puzzle problem
Ai 8 puzzle problem
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
 
3 problem-solving-
3 problem-solving-3 problem-solving-
3 problem-solving-
 
AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
 
AI_Unit I notes .pdf
AI_Unit I notes .pdfAI_Unit I notes .pdf
AI_Unit I notes .pdf
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
AI: Learning in AI
AI: Learning in AI AI: Learning in AI
AI: Learning in AI
 
AI_Session 25 classical planning.pptx
AI_Session 25 classical planning.pptxAI_Session 25 classical planning.pptx
AI_Session 25 classical planning.pptx
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 

Similar to AI simple search strategies

Learning express visual writing 136p
Learning express visual writing   136pLearning express visual writing   136p
Learning express visual writing 136pmrwindy_3282
 
Bridging literacy and digital media
Bridging literacy and digital mediaBridging literacy and digital media
Bridging literacy and digital mediabradfountain
 
An-Exploration-of-scientific-literature-using-Natural-Language-Processing
An-Exploration-of-scientific-literature-using-Natural-Language-ProcessingAn-Exploration-of-scientific-literature-using-Natural-Language-Processing
An-Exploration-of-scientific-literature-using-Natural-Language-ProcessingTheodore J. LaGrow
 
Intelligent information extraction based on artificial neural network
Intelligent information extraction based on artificial neural networkIntelligent information extraction based on artificial neural network
Intelligent information extraction based on artificial neural networkijfcstjournal
 
Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...
Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...
Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...Ana Luísa Pinho
 
The 4th New Science
The 4th New ScienceThe 4th New Science
The 4th New Sciencegrplunkett
 
Harvesting collective intelligence.
Harvesting collective intelligence. Harvesting collective intelligence.
Harvesting collective intelligence. Alberto Cottica
 
nlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdfnlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdfshakeelAsghar6
 
Natural Language Processing in AI
Natural Language Processing in AINatural Language Processing in AI
Natural Language Processing in AISaurav Shrestha
 
AI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptxAI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptxwekineheshete
 
ODSC London 2018
ODSC London 2018ODSC London 2018
ODSC London 2018Kfir Bar
 
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...Jinho Choi
 
Towards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchTowards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchSagar Sen
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Mustafa Jarrar
 
Lecture 1 Slides -Introduction to algorithms.pdf
Lecture 1 Slides -Introduction to algorithms.pdfLecture 1 Slides -Introduction to algorithms.pdf
Lecture 1 Slides -Introduction to algorithms.pdfRanvinuHewage
 
2nd Spinoza workshop: Looking at the Long Tail - introductory slides
2nd Spinoza workshop: Looking at the Long Tail - introductory slides2nd Spinoza workshop: Looking at the Long Tail - introductory slides
2nd Spinoza workshop: Looking at the Long Tail - introductory slidesFilip Ilievski
 
Normal Considered Harmful
Normal Considered HarmfulNormal Considered Harmful
Normal Considered Harmfulgreenwop
 

Similar to AI simple search strategies (20)

AI local search
AI local searchAI local search
AI local search
 
Learning express visual writing 136p
Learning express visual writing   136pLearning express visual writing   136p
Learning express visual writing 136p
 
Bridging literacy and digital media
Bridging literacy and digital mediaBridging literacy and digital media
Bridging literacy and digital media
 
An-Exploration-of-scientific-literature-using-Natural-Language-Processing
An-Exploration-of-scientific-literature-using-Natural-Language-ProcessingAn-Exploration-of-scientific-literature-using-Natural-Language-Processing
An-Exploration-of-scientific-literature-using-Natural-Language-Processing
 
Intelligent information extraction based on artificial neural network
Intelligent information extraction based on artificial neural networkIntelligent information extraction based on artificial neural network
Intelligent information extraction based on artificial neural network
 
Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...
Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...
Individual Brain Charting, a high-resolution fMRI dataset for cognitive mappi...
 
L1
L1L1
L1
 
The 4th New Science
The 4th New ScienceThe 4th New Science
The 4th New Science
 
Harvesting collective intelligence.
Harvesting collective intelligence. Harvesting collective intelligence.
Harvesting collective intelligence.
 
nlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdfnlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdf
 
Natural Language Processing in AI
Natural Language Processing in AINatural Language Processing in AI
Natural Language Processing in AI
 
AI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptxAI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptx
 
ODSC London 2018
ODSC London 2018ODSC London 2018
ODSC London 2018
 
Year 1 AI.ppt
Year 1 AI.pptYear 1 AI.ppt
Year 1 AI.ppt
 
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
 
Towards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchTowards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific Research
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing
 
Lecture 1 Slides -Introduction to algorithms.pdf
Lecture 1 Slides -Introduction to algorithms.pdfLecture 1 Slides -Introduction to algorithms.pdf
Lecture 1 Slides -Introduction to algorithms.pdf
 
2nd Spinoza workshop: Looking at the Long Tail - introductory slides
2nd Spinoza workshop: Looking at the Long Tail - introductory slides2nd Spinoza workshop: Looking at the Long Tail - introductory slides
2nd Spinoza workshop: Looking at the Long Tail - introductory slides
 
Normal Considered Harmful
Normal Considered HarmfulNormal Considered Harmful
Normal Considered Harmful
 

More from Renas Rekany

More from Renas Rekany (20)

decision making
decision makingdecision making
decision making
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural Network
 
AI heuristic search
AI heuristic searchAI heuristic search
AI heuristic search
 
C# p9
C# p9C# p9
C# p9
 
C# p8
C# p8C# p8
C# p8
 
C# p7
C# p7C# p7
C# p7
 
C# p6
C# p6C# p6
C# p6
 
C# p5
C# p5C# p5
C# p5
 
C# p4
C# p4C# p4
C# p4
 
C# p3
C# p3C# p3
C# p3
 
C# p2
C# p2C# p2
C# p2
 
C# p1
C# p1C# p1
C# p1
 
C# with Renas
C# with RenasC# with Renas
C# with Renas
 
Object oriented programming inheritance
Object oriented programming inheritanceObject oriented programming inheritance
Object oriented programming inheritance
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Renas Rajab Asaad
Renas Rajab Asaad Renas Rajab Asaad
Renas Rajab Asaad
 
Renas Rajab Asaad
Renas Rajab AsaadRenas Rajab Asaad
Renas Rajab Asaad
 
Renas Rajab Asaad
Renas Rajab Asaad Renas Rajab Asaad
Renas Rajab Asaad
 
Renas Rajab Asaad
Renas Rajab Asaad Renas Rajab Asaad
Renas Rajab Asaad
 
Kurdish computer skills lec1, Renas R. Rekany
Kurdish computer skills lec1, Renas R. RekanyKurdish computer skills lec1, Renas R. Rekany
Kurdish computer skills lec1, Renas R. Rekany
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

AI simple search strategies

  • 1. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 We lose ourselves in books, we find ourselves there too. Kristin Martz Artificial Intelligence 1
  • 2. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Course Summary Artificial Intelligence (AI) is a field that has a long history but is still constantly and actively growing and changing. In this course, you’ll learn the basics of modern AI as well as some of the representative applications of AI. Along the way, we also hope to excite you about the numerous applications and huge possibilities in the field of AI, which continues to expand human capability beyond our imagination. 2
  • 3. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Introduction to AI Humankind has given itself the scientific name homo sapiens—man the wise—because our mental capacities are so important to our everyday lives and our sense of self. The field of artificial intelligence, or AI, attempts to understand intelligent entities. Thus, one reason to study it is to learn more about ourselves. But unlike philosophy and psychology, which are also concerned with intelligence, AI strives to build intelligent entities as well as understand them. Another reason to study AI is that these constructed intelligent entities are interesting and useful in their own right. AI has produced many significant and impressive products even at this early stage in its development. Although no one can predict the future in detail, it is clear that computers with human-level intelligence (or better) would have a huge impact on our everyday lives and on the future course of civilization. 3
  • 4. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Brain The an actual human brain: 1. Not solid, its soft and squishy. 2. Similar to soft gelatin. 3. The typical brain is about 2% of a body weight. 4. Its consumes 20% of the total energy produced by the body. 5. During early pregnancy neurons develop at the rate 250,000 neurons per minute. 6. There are approximately 100 billion neurons in the adult human brain. 7. Each neuron connects with approximately 40,000 synapses. 4
  • 5. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 8. There are as many as 10,000 specific types of neurons in the brain 9. Your brain can process information as fast as 432 kph (268 mph), that's faster than formula 1 race cars which top out at 386 kph (240 mph). 10. It can also generate about 12-25 watts of electricity, which is enough to power a low wattage LED light. 11. Our brains are getting smaller and smaller, over the past 10- 20,000 years the size of the average human brain has shrunk by the size of a tennis ball. # The University of Utah 5
  • 6. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Turing Test The Turing Test, proposed by Alan Turing (Turing, 1950), was designed to provide a satisfactory operational definition of intelligence. Turing defined intelligent behavior as the ability to achieve human-level performance in all cognitive tasks, sufficient to fool an interrogator. Roughly speaking, the test he proposed is that the computer should be interrogated by a human via a teletype, and passes the test if the interrogator cannot tell if there is a computer or a human at the other end. 6
  • 7. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Turing Test The computer would need to possess the following capabilities: 1. natural language processing to enable it to communicate successfully in English (or some other human language); 2. knowledge representation to store information provided before or during the interrogation; 3. automated reasoning to use the stored information to answer questions and to draw new conclusions; 4. machine learning to adapt to new circumstances and to detect and extrapolate patterns. 7
  • 8. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Turing Test Turing's test deliberately avoided direct physical interaction between the interrogator and the computer, because physical simulation of a person is unnecessary for intelligence. However, the so-called total Turing Test includes a video signal so that the interrogator can test the subject's perceptual abilities, as well as the opportunity for the interrogator to pass physical objects ``through the hatch.'' To pass the total Turing Test, the computer will need: • Computer vision to perceive objects. • Robotics to move them about. 8
  • 9. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Structures and Strategies for State Space Search 1. Graph Theory. 2. The State Space Representing of Problems. 3. Strategies for State Space Search. 9
  • 10. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Graph Theory A graph is a set of labeled nodes or states that are connected by arcs. labels are used to differentiate nodes. In a state space graph, the nodes represent different states of a problem to be solved. The arcs of a graph can have direction associated which introduces a direct graph, also arcs can be labeled so that similar nodes can be differentiated. A rooted graph is a graph with one initial node connected to the other nodes. A tree is a graph were each node is connected to the other by one unique arc, hence, there is no cycling in a tree. 10
  • 11. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Graph Theory The question here is who is liz’s parent? Parent(X,liz); Ans= tom. 11 lara tom bob liz ann pat jin
  • 12. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Graph Theory 12
  • 13. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Graph Theory 13
  • 14. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Examples 14 Initial State Goal An example of a graph where H is a initial state and the E is a Goal.
  • 15. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Initial State Q) What’s the solution path to the goal?
  • 16. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 8 Puzzle Examples Initial State Goal 321 48 567 321 46 578
  • 17. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 8 Puzzle Examples Initial State Goal
  • 18. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 8 Puzzle Examples Initial State Goal 321 48 567 321 476 58
  • 19. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 8 Puzzle Examples Initial State Goal 31 428 567 31 468 257 Home Work..?
  • 20. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Travelling Salesman Problem The travelling salesman problem (TSP) asks the following question: Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city? It is an NP-hard problem in combinatorial optimization, important in operations research and theoretical computer science. 20
  • 21. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Travelling Salesman Problem 21 An instance of the traveling salesperson problem.
  • 22. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Travelling Salesman Problem Search of the traveling salesperson problem. Each arc is marked with the total weight of all paths from the start node (A) to its endpoint. 22
  • 23. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 The State Space Representing of Problems • The state space is a graph representation of a problem, where the nodes of a graph represent partial solutions in the problem space, and the arcs are steps taken in the problem solving process. • The root of the graph represents the initial state of a problem. The graph must identify one or more goal nodes, where the solution to the problem in hand is found. • State space search characterizes problem solving as the process of finding a solution path from the start state to a goal. 23
  • 24. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 State Space Search A state space is represented by [N,A,S,GD]. where -N is the set of nodes or states in a graph. -A is the set of arcs or links between the nodes. -S is a nonempty subset of N, represents the start node. -GD is a nonempty subset of N, represents the goal nodes. Note: A solution path is the path taken to reach a goal. 24
  • 25. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Strategies for State Space Search 1. Uninformed Search Strategies: i. Depth first search (DFS) ii. Breadth first search (BFS) iii. Iterative deepening search 2. Informed Search Strategies (Heuristic Search): i. Hill climbing, Simulated Annealing, Tabu search ii. Best first search iii. Greedy search iv. A* search 25
  • 26. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Strategies for State Space Search 1. Uninformed Search Strategies: • A problem determines the graph and the goal but not which path to select from the frontier. This is the job of a search strategy. A search strategy specifies which paths are selected from the frontier. Different strategies are obtained by modifying how the selection of paths in the frontier is implemented. 2. Informed Search Strategies (Heuristic Search): 26
  • 27. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Depth first search (DFS) The first strategy is depth-first search. In depth-first search, the frontier acts like a last-in first-out stack. The elements are added to the stack one at a time. The one selected and taken off the frontier at any time is the last element that was added. Implementing the frontier as a stack results in paths being pursued in a depth-first manner - searching one path to its completion before trying an alternative path. This method is said to involve backtracking: The algorithm selects a first alternative at each node, and it backtracks to the next alternative when it has pursued all of the paths from the first selection. Some paths may be infinite when the graph has cycles or infinitely many nodes, in which case a depth- first search may never stop. 27
  • 28. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Depth first search (DFS) 28
  • 29. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Depth first search (DFS) 29
  • 30. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Depth first search (DFS) 30
  • 31. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Depth first search (DFS) 31
  • 32. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Breadth first search (BFS) In breadth-first search the frontier is implemented as a FIFO (first-in, first- out) queue. Thus, the path that is selected from the frontier is the one that was added earliest. This approach implies that the paths from the start node are generated in order of the number of arcs in the path. One of the paths with the fewest arcs is selected at each stage. Breadth-first search is useful when: 1. Space is not a problem. 2. You want to find the solution containing the fewest arcs. 3. Few solutions may exist, and at least one has a short path length; and 4. Infinite paths may exist, because it explores all of the search space, even with infinite paths. - It is a poor method when all solutions have a long path length or there is some heuristic knowledge available. It is not used very often because of its space complexity. 32
  • 33. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Breadth first search (BFS) 33
  • 34. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Breadth first search (BFS) 34
  • 35. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Breadth first search (BFS) 35
  • 36. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Breadth first search (BFS) 36
  • 37. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Breadth first search (BFS) 37
  • 38. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Iterative Deepening search In computer science, iterative deepening search or more specifically iterative deepening depth-first search[1] (IDS or IDDFS) is a state space/graph search strategy in which a depth-limited version of depth-first search is run repeatedly with increasing depth limits until the goal is found. IDDFS is equivalent to breadth-first search, but uses much less memory; on each iteration, it visits the nodes in the search tree in the same order as depth-first search, but the cumulative order in which nodes are first visited is effectively breadth-first. 38
  • 39. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Iterative Deepening search 39
  • 40. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Iterative deepening search 40
  • 41. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Iterative Deepening search 41 Depth limit 0# A1
  • 42. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Iterative Deepening search 42 Depth limit 1# A1 BFCD2 FCD3 CD4 D5
  • 43. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Iterative Deepening search 43 Depth limit 1# A1 BFCD2 EFCD3 FCD4 JGCD5 GCD – G is Goal
  • 44. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Backtracking Graph SL =State List (Path from State to the top). NSL =New State List (All Opened states without DE). DE =Dead Ends (States that is dead). CS =Current State. 44
  • 45. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 45 Quiz: DFS, BFS, IDS, Min Cost: Goal is P, M, M, M
  • 46. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 46 Quiz: DFS, BFS, IDS, Min Cost: Goal is P, M, M, M Sol: DFS: A B E I L M K P BFS: A B C H E F G K I J N M IDS: A C G M Min Cost: A C F J N M A C G N M
  • 47. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph 47 Example1: Backtracking search of a hypothetical state space.
  • 48. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph A trace of backtrack on the graph DFS 48
  • 49. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph A trace of backtrack on the graph BFS 49 DENSLSLCSi [ ][A][A]A0 [A][BCD][BA]B1 [BA][CDEF][CBA]C2 [CBA][DEFG][DCBA]D3 [DCBA][EFG][EDCBA]E4 [EDCBA][FGHI][FEDCBA]F5 [FEDCBA][GHIJ][GFEDCBA]G6 [GFEDCBA][HIJ][HGFEDCBA]H7 [HGFEDCBA][IJ][IHGFEDCBA]I8 [IHGFEDCBA][J][JIHGFEDCBA]J9 [JIHGFEDCBA][ ][ ][ ]10
  • 50. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph A trace of backtrack on the graph IDS 50 DENSLSLCSi [ ][A][A]A0 [ ][ABCD][BA]B1 [ ][ABCDEF][CA]C2 [ ][ABCDEFG][DA]D3 [D][ABCEFG][EBA]E4 [D][ABCEFGHI][FBA]F5 [D][ABCEFGHIJ][GCA]G6 [GD][ABCEFHIJ][HEBA]H7 [HGD][ABCEFIJ][IEBA]I8 [HGDIE][ABCFJ][JFBA]J9 [JIHGFEDCBA][ ][ ][ ]10
  • 51. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph 51 Example2: Graph for depth-first search examples.
  • 52. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph 52 Example2: Graph for depth-first search examples. Open [A]; Close []. Open [BA]; Close []. Open [EBA]; Close []. Open [KEBA]; Close []. Open [SKEBA]; Close []. Open [LEBA]; Close [SK]. Open [TLEBA]; Close [SK]. Open [FBA]; Close [SKTLE]. Open [MFBA]; Close [SKTLE]. Open [CA]; Close [SKTLEMFB]. … and so on until either U is founded or Open is [ ].
  • 53. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph 53 Q1) Graph for breadth-first search examples?
  • 54. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 Back Tracking Graph 54 Example2: Graph for breadth-first search examples.
  • 55. Renas R. Rekany Artificial Intelligence Nawroz University Keep Reading as long as you breathComSci: Renas R. Rekany Oct2016 THE END Reference: 1. Artificial Intelligence Structure and Strategies for Complex Problem Solving. 4th edition George F. Luger Addison Wesley. 55