Artificial Intelligence (CS 370D)

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Greedy Algorithms (Chap. 16)
Properties of breadth-first search Complete? Yes (if b is finite) Time? 1+b+b 2 +b 3 +… +b d + b(b d -1) = O(b d+1 ) Space? O(b d+1 ) (keeps every node.
CS 206 Introduction to Computer Science II 11 / 07 / 2008 Instructor: Michael Eckmann.
Artificial Intelligence (CS 461D)
Regula-Falsi Method. Type of Algorithm (Equation Solver) The Regula-Falsi Method (sometimes called the False Position Method) is a method used to find.
Solutions Midterm Search Heuristics (1) f(n) = g(n) +h(n) Explanation: –g(n) measures the cost of the optimal path from the start node to n that.
1 Huffman Codes. 2 Introduction Huffman codes are a very effective technique for compressing data; savings of 20% to 90% are typical, depending on the.
CS482/682 Artificial Intelligence Lecture 7: Genetic Algorithms and Constraint Satisfaction Problems 15 September 2009 Instructor: Kostas Bekris Computer.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Problem Spaces and Search Fall 2008 Jingsong.
Recursion Chapter 7.
Math for CSTutorial 5-61 Tutorial 5 Function Optimization. Line Search. Taylor Series for R n Steepest Descent.
CS 206 Introduction to Computer Science II 10 / 16 / 2009 Instructor: Michael Eckmann.
Greedy Algorithms Huffman Coding
P247. Figure 9-1 p248 Figure 9-2 p251 p251 Figure 9-3 p253.
CS 206 Introduction to Computer Science II 02 / 25 / 2009 Instructor: Michael Eckmann.
INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information.
Robotics by: Bayader Aloliwi Lujain Alkhalifa Yara Alnghimshi Princess Nora Bint Abdulrahman University College of.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
1 Computer Group Engineering Department University of Science and Culture S. H. Davarpanah
computer
Structures and Strategies For Space State Search
Artificial Intelligence LECTURE 4 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA.
Computer Science: A Structured Programming Approach Using C Trees Trees are used extensively in computer science to represent algebraic formulas;
Discrete Structures and The Three-Fold Introduction to Computer Science Doug Baldwin Department of Computer Science SUNY Geneseo.
CS 536 – Ahmed Elgammal CS 536: Machine Learning Fall 2005 Ahmed Elgammal Dept of Computer Science Rutgers University.
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Intermediate Value Theorem Vince Varju. Definition The Intermediate Value Theorem states that if a function f is a continuous function on [a,b] then there.
CS340d: Operating Systems
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
1Computer Sciences Department. 2 Advanced Design and Analysis Techniques TUTORIAL 7.
AND/OR graphs  Some problems are best represented as achieving subgoals, some of which achieved simultaneously and independently (AND)  Up to now, only.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Positioning and Spatial Evaluation
Electrical Engineering
Solution of Nonlinear Equations (Root finding Problems
Artificial Intelligence (CS 370D)
Variable Geometry Truss Design and Evolution
Combinations COURSE 3 LESSON 11-3
Artificial Intelligence (CS 370D)
BACK SOLUTION:
. - t !!l t. - 1f1f J - /\/\ - ' I __.
Topics discussed in this section:
Unweighted Shortest Path Neil Tang 3/11/2010
المملكة العربية السعودية وحدة التوجيه والإرشاد الطلابي
Rolle’s Theorem.
CSE 4705 Artificial Intelligence
Frameworks & Templates
Artificial Intelligence (CS 370D)
CS 4100 Artificial Intelligence
Single Source Shortest Paths Bellman-Ford Algorithm
Week 4 Jan 29th 2016.
.. '.. ' 'i.., \. J'.....,....., ,., ,,.. '"'". ' · · f.. -··-·· '.,.. \...,., '.··.. ! f.f.
This picture is created by using artificial intelligence based hybrid genetic algorithm. (C) 2014 Alfonsas Misevicius.
Artificial Intelligence
Efficient Subgraph Similarity All-Matching
Search Exercise Search Tree? Solution (Breadth First Search)?
CS621: Artificial Intelligence
Applications of Differentiation 3.
Discrete Mathematics CS 2610
Introduction: Why Study Algorithms?
Chap 4: Searching Techniques
Maximum and Minimum Values
Array operations Dr. T. Kokilavani Assistant Professor
Artificial Intelligence
Blocks and streams of Princess Nourah bint AbdulRahman University dental sciences curriculum Note: These five years of dental sciences are preceded by.
Lecture 4 What are Codes? (Section 1.2)
Algorithms Lecture # 26 Dr. Sohail Aslam.
Presentation transcript:

Artificial Intelligence (CS 370D) Princess Noura bint Abdulrahman University College of Computer and Information Sciences Artificial Intelligence (CS 370D) Informed Search Algorithms ( examples) L. Maram ALShablan

Examples Greedy Algorithm A* Algorithm L. Maram ALShablan

Example 1: Implement the greedy algorithm on the following figure, then write the its solution path. Solution path: Start ACGOAL Path cost : 8 L. Maram ALShablan

Example 1: Implement A* algorithm on the following figure, then write the its solution path. Start A F(A)=2+3=5 B C F(B)=3+2=5 F(C)=6+1=7 F(C)=4+1=5 C Goal F(Goal)=6+0=6 Solution path: Start ABCGOAL L. Maram ALShablan Path cost : 6

Example 2: Implement the greedy algorithm on the following figure, then write the its solution path. Solution path: A  C  D  E  G 1 3 2 1 Path cost : 7 Greedy is not suitable  Not optimal L. Maram ALShablan

Example 2: Implement the A Example 2: Implement the A* algorithm on the following figure, then write the its solution path. A F(A)=0+2=2 C B F(B)=2+4=6 F(C)=1+2=3 D F(D)=3+1=4 D F(D)=4+1=5 Solution path: ABDEG F E F(E)=6+1=7 F(F)=5+1=6 F E F(E)=5+1=6 F(F)=4+1=5 Path cost : 6 G F(G)=7+0=7 G F(G)=8+0=8 G F(G)=6+0=6 G F(G)=7+0=7 L. Maram ALShablan