Route/Path Planning Materi Kuliah IF3051 – Strategi Algoritma

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Warm up Translate following expression a. three less than x. b. Product of a number and 4 2. a. -24+(-13) b. 34 – 42 3.a. -3/7 + 2/3 b. 2/3.
Lecture 02 – Part B Problem Solving by Searching Search Methods :
Artificial Intelligent
Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Additional Topics ARTIFICIAL INTELLIGENCE
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
ZMQS ZMQS
Micro Focus Research 1 As far as youre aware, how does your organization plan to drive business growth over the next three years? (Respondents' first choices)
Richmond House, Liverpool (1) 26 th January 2004.
Chapter 4: Informed Heuristic Search
Informed Search CS 171/271 (Chapter 4)
Review: Search problem formulation
Notes Dijstra’s Algorithm Corrected syllabus.
Mental Math Math Team Skills Test 20-Question Sample.
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
© S Haughton more than 3?
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
1 Directed Depth First Search Adjacency Lists A: F G B: A H C: A D D: C F E: C D G F: E: G: : H: B: I: H: F A B C G D E H I.
Squares and Square Root WALK. Solve each problem REVIEW:
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Welcome to Phillip Island Golf Club. Clubhouse Main Entrance.
Chapter 5 Test Review Sections 5-1 through 5-4.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
Informed search algorithms This lecture topic Chapter Next lecture topic Chapter (Please read lecture topic material before and after each.
Artificial Intelligence Solving problems by searching
We will resume in: 25 Minutes.
Static Equilibrium; Elasticity and Fracture
Figure Essential Cell Biology (© Garland Science 2010)
1 Unit 1 Kinematics Chapter 1 Day
How Cells Obtain Energy from Food
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 14, 2012.
Solving Problem by Searching
Artificial Intelligence (CS 461D)
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Artificial Intelligence Lecture
A* Search Introduction to AI. What is an A* Search? A greedy search method minimizes the cost to the goal by using an heuristic function, h(n). It works.
Artificial Intelligence Chapter 3: Solving Problems by Searching
CS 188: Artificial Intelligence Spring 2006 Lecture 2: Queue-Based Search 8/31/2006 Dan Klein – UC Berkeley Many slides over the course adapted from either.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Search Tamara Berg CS 560 Artificial Intelligence Many slides throughout the course adapted from Dan Klein, Stuart Russell, Andrew Moore, Svetlana Lazebnik,
Advanced Artificial Intelligence Lecture 2: Search.
Route/Path Planning Materi Kuliah IF3051 – Strategi Algoritma Teknik Informatika – ITB Oleh: Masayu Leylia Khodra.
Pengantar Kecerdasan Buatan
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Artificial Intelligence (CS 370D)
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Artificial Intelligence
Chap 4: Searching Techniques
Artificial Intelligence
Artificial Intelligence: Theory and Practice Ch. 3. Search
Presentation transcript:

Route/Path Planning Materi Kuliah IF3051 – Strategi Algoritma Teknik Informatika – ITB Oleh: Masayu Leylia Khodra

Referensi Materi kuliah IF3054 Inteligensi Buatan Teknik Informatika ITB, Course Website: http://kuliah.itb.ac.id  STEI  Teknik Informatika  IF3054 Stuart J Russell & Peter Norvig, Artificial Intelligence: A Modern Approach, 3rd Edition, Prentice-Hall International, Inc, 2010, Textbook Site: http://aima.cs.berkeley.edu/ (2nd edition) Free online course materials | MIT OpenCourseWare Website: Site: http://ocw.mit.edu/courses/electrical-engineering- and-computer-science/ IF3051/MLK/071112

Route Planning IF3051/MLK/071112

Search Source: Russell’s book O F S Z A R B P D M T L C 118 T S O Z R P F B C L M D 111 75 71 151 99 97 120 146 138 101 211 70 140 80 S: set of cities i.s: A (Arad) g.s: B (Bucharest) Goal test: s = B ? Path cost: time ~ distance IF3051/MLK/071112

Uninformed Search IF3051/MLK/071112

Breadth-First Search (BFS) Treat agenda as a queue (FIFO) O 71 S F Z 151 99 211 75 A 140 80 R B 97 P 120 101 118 Simpul-E Simpul Hidup A ZA,SA,TA ZA SA,TA,OAZ SA TA,OAZ,OAS,FAS,RAS TA OAZ,OAS,FAS,RAS,LAT OAZ OAS,FAS,RAS,LAT OAS FAS,RAS,LAT FAS RAS,LAT,BASF RAS LAT,BASF,DASR,CASR,PASR LAT BASF,DASR,CASR,PASR,MATL BASF Solusi ketemu D 75 138 M 146 T 70 111 L C Path: A S  F  B, Path-cost = 450 IF3051/MLK/071112

Depth-First Search (DFS) Treat agenda as a stack (LIFO) O 71 S F Z 151 99 211 75 A 140 80 R B 97 P 120 101 118 D 75 M 146 138 T 70 111 L Simpul-E Simpul Hidup A ZA,SA,TA ZA OAZ, SA,TA OAZ SAZO,SA,TA SAZO FAZOS, RAZOS,SA,TA FAZOS BAZOSF, RAZOS,SA,TA BAZOSF Solusi ketemu C Path: A Z  O  S  F  B Path-cost = 607 IF3051/MLK/071112

IDS O A 118 T S Z R P F B C L M D 111 75 71 151 99 97 120 146 138 101 211 70 140 80 Depth=0: A: cutoff Depth=1: A  ZA,SA,TA  ZA: cutoff, SA: cutoff, TA: cutoff Depth=2: A  ZA,SA,TA  OAZ, SA,TA  OAZ : cutoff  FAS, RAS,TA  FAS : cutoff  RAS : cutoff  LAT  LAT : cutoff Depth=3: A  ZA,SA,TA  OAZ, SA,TA  SAZO,SA,TA  SAZO: cutoff  FAS, RAS,TA  BASF, RAS,TA  BASF Stop: B=goal, path: A S  F  B, path-cost = 450 IF3051/MLK/071112

Uniform Cost Search (UCS) Simpul-E Simpul Hidup A ZA-75, TA-118, SA-140 ZA-75 TA-118, SA-140,OAZ-146 TA-118 SA-140,OAZ-146,LAT-229 SA-140 OAZ-146,RAS-220, LAT-229,FAS-239,OAS-291 OAZ-146 RAS-220, LAT-229, FAS-239,OAS-291 RAS-220 LAT-229, FAS-239,OAS-291, PASR-317,DASR-340,CASR-366 LAT-229 FAS-239,OAS-291,MATL-299, PASR-317,DASR-340,CASR-366 FAS-239 OAS-291,MATL-299, PASR-317,DASR-340,CASR-366, BASF-450 OAS-291 MATL-299, PASR-317,DASR-340,CASR-366, BASF-450 MATL-299 PASR-317,DASR-340,DATLM-364,CASR-366, BASF-450 PASR-317 DASR-340,DATLM-364,CASR-366, BASRP-418, CASRP-455, BASF-450 DASR-340 DATLM-364,CASR-366, BASRP-418, CASRP-455, BASF-450 DATLM-364 CASR-366, BASRP-418, CASRP-455, BASF-450 CASR-366 BASRP-418, CASRP-455, BASF-450 BASRP-418 Solusi ketemu BFS & IDS find path with fewest steps If steps ≠ cost, this is not relevant (to optimal solution) How can we find the shortest path (measured by sum of distances along path)? O A 118 T S Z R P F B C L M D 111 75 71 151 99 97 120 146 138 101 211 70 140 80 Path: A S  R  P  B Path-cost = 418 IF3051/MLK/071112

Informed Search IF3051/MLK/071112

Best-first search Romania with step costs in km g(n) = cost so far to reach n h(n) = estimated cost from n to goal f(n) = estimated total cost of path through n to goal Best-first search Idea: use an evaluation function f(n) for each node greedy best-first search: f(n) = h(n) A* search: f(n) = g(n) + h(n) e.g., hSLD(n) = straight-line distance from n to Bucharest Romania with step costs in km IF3051/MLK/071112

Greedy best-first search example IF3051/MLK/071112

Greedy best-first search example IF3051/MLK/071112

Greedy best-first search example IF3051/MLK/071112

Greedy best-first search example IF3051/MLK/071112

A* search example IF3051/MLK/071112

A* search example IF3051/MLK/071112

A* search example IF3051/MLK/071112

A* search example IF3051/MLK/071112

A* search example IF3051/MLK/071112

A* search example IF3051/MLK/071112

THANK YOU