Lecture 4 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.

Slides:



Advertisements
Similar presentations
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
Advertisements

Analysis of Algorithms
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
Structures and Strategies For Space State Search
CSC 423 ARTIFICIAL INTELLIGENCE
Lecture 3 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
The Implementation of Artificial Intelligence and Temporal Difference Learning Algorithms in a Computerized Chess Programme By James Mannion Computer Systems.
Lecture 3: Greedy Method Greedy Matching Coin Changing Minimum Spanning Tree Fractional Knapsack Dijkstra's Single-Source Shortest-Path.
Artificial Intelligence Lecture
HEURISTIC SEARCH ARTIFICIAL INTELLIGENCE 5th edition George F Luger
Lecture 7: Greedy Algorithms II Shang-Hua Teng. Greedy algorithms A greedy algorithm always makes the choice that looks best at the moment –My everyday.
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
CPSC 411, Fall 2008: Set 4 1 CPSC 411 Design and Analysis of Algorithms Set 4: Greedy Algorithms Prof. Jennifer Welch Fall 2008.
Lecture 3 Informed Search CSE 573 Artificial Intelligence I Henry Kautz Fall 2001.
The Knapsack Problem The classic Knapsack problem is typically put forth as: A thief breaks into a store and wants to fill his knapsack with as much value.
CPSC 322, Lecture 8Slide 1 Heuristic Search: BestFS and A * Computer Science cpsc322, Lecture 8 (Textbook Chpt 3.5) January, 21, 2009.
Structures and Strategies For Space State Search
Week 2: Greedy Algorithms
Dynamic Programming 0-1 Knapsack These notes are taken from the notes by Dr. Steve Goddard at
Lecture 7: Greedy Algorithms II
CPSC 411, Fall 2008: Set 4 1 CPSC 411 Design and Analysis of Algorithms Set 4: Greedy Algorithms Prof. Jennifer Welch Fall 2008.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Lecture 5 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Lecture 1 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
IT 60101: Lecture #201 Foundation of Computing Systems Lecture 20 Classic Optimization Problems.
1 State Space of a Problem Lecture 03 ITS033 – Programming & Algorithms Asst. Prof.
Building Control Algorithms For State Space Search.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Structures and Strategies For Space State Search
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Backtracking Opening Discussion zWhat did we talk about last class? zDo you have any questions about the assignments?
Artificial Intelligence Problem solving by searching.
G5BAIM Artificial Intelligence Methods Dr. Graham Kendall Course Introduction.
1 Algorithms CSCI 235, Fall 2015 Lecture 30 More Greedy Algorithms.
Greedy Algorithms BIL741: Advanced Analysis of Algorithms I (İleri Algoritma Çözümleme I)1.
Greedy Algorithms Interval Scheduling and Fractional Knapsack These slides are based on the Lecture Notes by David Mount for the course CMSC 451 at the.
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
HEURISTIC SEARCH 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games 4.4Complexity.
CS 361 – Chapter 10 “Greedy algorithms” It’s a strategy of solving some problems –Need to make a series of choices –Each choice is made to maximize current.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Data Structures and Algorithms (AT70.02) Comp. Sc. and Inf. Mgmt. Asian Institute of Technology Instructor: Prof. Sumanta Guha Slide Sources: CLRS “Intro.
Dynamic Programming … Continued
A greedy algorithm is an algorithm that follows the problem solving heuristic of making the locally optimal choice at each stage with the hope of finding.
Artificial Intelligence Solving problems by searching.
Dept. Computer Science, Korea Univ. Intelligent Information System Lab A I (Artificial Intelligence) Professor I. J. Chung.
Artificial Intelligence AIMA §5: Adversarial Search
Artificial Intelligence
CSCI 4310 Lecture 10: Local Search Algorithms
CSC317 Greedy algorithms; Two main properties:
AI Classnotes #5, John Shieh, 2012
By James Mannion Computer Systems Lab Period 3
CSC 361 Artificial Intelligence
Artificial Intelligence Problem solving by searching CSC 361
G5BAIM Artificial Intelligence Methods
The A* Algorithm Héctor Muñoz-Avila.
Algorithm Design Methods
Greedy Method     Greedy Matching     Coin Changing     Minimum Spanning Tree     Fractional Knapsack     Dijkstra's Single-Source Shortest-Path.
COMP 670.
CS4335 Design and Analysis of Algorithms/WANG Lusheng
EA C461 – Artificial Intelligence
Advanced Algorithms Analysis and Design
Artificial Intelligence
Data Structures and Algorithms (AT70. 02) Comp. Sc. and Inf. Mgmt
The results for Challenging Problem 1.
Artificial Intelligence
Algorithms CSCI 235, Spring 2019 Lecture 30 More Greedy Algorithms
Advance Algorithm Dynamic Programming
COMP 670.
Presentation transcript:

Lecture 4 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated by Ben Coppin, Narosa Publishers. Ref Books Artificial Intelligence- Structures & Strategies for Complex Problem Solving by George F. Luger, 4 th edition, Pearson Education. Artificial Intelligence A Modern Approach by Stuart Russell & Peter Norvig. Artificial Intelligence, Third Edition by Patrick Henry Winston

Informed vs Uninformed Methods A search method or heuristic is informed if it uses additional information about nodes that have not yet been explored to decide which nodes to examine next. If a method is not informed, it is uninformed, or blind. In other words, search methods that use heuristics are informed, and those that do not are blind.

Heuristic A heuristic evaluation function is a function that when applied to a node gives a value that represents a good estimate of the distance of the node from the goal. For two nodes m and n, and a heuristic function f, if f(m) < f(n), then it should be the case that m is more likely to be on an optimal path to the goal node than n. In other words, the lower the heuristic value of a node, the more likely it is that it is on an optimal path to a goal and the more sensible it is for a search method to examine that node.

Distance Details CitiesDistance from F A25 B8 C20 D6 E12 F0

The Knapsack (Fractional) Problem A man is packing items into his knapsack. He wants to take the most valuable items he can, but there is a limit on how much weight he can fit in his knapsack. Each item has a weight wi and is worth vi. He can only fit a total weight of Win his knapsack. The items that he wants to take are things that can be broken up and still retain their value (like flour or milk), and he is able to take fractions of items. Hence, the problem is called the fractional knapsack problem. In solving this problem, a greedy-search algorithm provides the best solution.

The Knapsack(0-1) Problem The 0-1 knapsack problem is the same as the fractional knapsack problem, except that he cannot take parts of items. Each item is thus something like a television set or a laptop computer, which must be taken whole. In solving this problem, a greedy-search approach does not work.

Example Our man has a knapsack that lets him carry a total of 100 pounds. His items are: – 1 gold brick worth $1800 and weighing 50 pounds – 1 platinum brick worth $1500 and weighing 30 pounds – 1 laptop computer worth $2000 and weighing 50 pounds Hence, we have three items, whose values of v and w are as follows: – v1 = 1800 w1 = 50 v1/w1 = 36 – v2 = 1500 w2 = 30 v2/w2 = 50 – v3 = 2000 w3 = 50 v3/w3 = 40 In this case, a greedy-search strategy would pick item 2 first, and then would take item 3, giving a total weight of 80 pounds, and a total value of $3500. In fact, the best solution is to take items 1 and 3 and to leave item 2 behind giving a total weight of 100 pounds and a total value of $3800.