Solutions Midterm 2004. 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.

Slides:



Advertisements
Similar presentations
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture– 4, 5, 6: A* properties 9 th,10 th and 12 th January,
Advertisements

October 1, 2012Introduction to Artificial Intelligence Lecture 8: Search in State Spaces II 1 A General Backtracking Algorithm Let us say that we can formulate.
1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Heuristic State Space Seach Henry Kautz. Assignment.
Problem Solving by Searching
Review: Search problem formulation
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
Artificial Intelligence
Data Flow Analysis Compiler Design Nov. 8, 2005.
Data Flow Analysis Compiler Design Nov. 8, 2005.
State-Space Searches.
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Mathematics Review and Asymptotic Notation
Informed search algorithms
Theory and Applications
Midterm Review Prateek Tandon, John Dickerson. Basic Uninformed Search (Summary) b = branching factor d = depth of shallowest goal state m = depth of.
Problem Solving by Searching Search Methods : informed (Heuristic) search.
1.  Provides the ability to access individual assertions. e.g. in Predicate calculus we may say: P denotes “It rained on Tuesday” but in predicate calculus.
1 Shanghai Jiao Tong University Informed Search and Exploration.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
Informed Search Strategies Lecture # 8 & 9. Outline 2 Best-first search Greedy best-first search A * search Heuristics.
For Monday Read chapter 4, section 1 No homework..
Review: Tree search Initialize the frontier using the starting state While the frontier is not empty – Choose a frontier node to expand according to search.
Calculating Risk of Cost Using Monte Carlo Simulation with Fuzzy Parameters in Civil Engineering Michał Bętkowski Andrzej Pownuk Silesian University of.
Theory and Applications
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
CSC3203: AI for Games Informed search (1) Patrick Olivier
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 3 - Search.
Informed Search and Heuristics Chapter 3.5~7. Outline Best-first search Greedy best-first search A * search Heuristics.
Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most desirable unexpanded node Implementation:
1/6/20161 CS 3343: Analysis of Algorithms Lecture 2: Asymptotic Notations.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Fuzzy Sets and Logic Sarah Spence Adams Discrete Mathematics.
CHAPTER 2 SEARCH HEURISTIC. QUESTION ???? What is Artificial Intelligence? The study of systems that act rationally What does rational mean? Given its.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
BITS Pilani Pilani Campus Data Structure and Algorithms Design Dr. Maheswari Karthikeyan Lecture1.
Definition and Technologies Knowledge Representation.
For Monday Read chapter 4 exercise 1 No homework.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Review: Tree search Initialize the frontier using the starting state
CS223: Software Engineering
The function of knowledge representation scheme is
Department of Computer Science
Heuristic Search Introduction to Artificial Intelligence
Handouts Software Testing and Quality Assurance Theory and Practice Chapter 6 Domain Testing
Abstraction Transformation & Heuristics
Artificial Intelligence Problem solving by searching CSC 361
The A* Algorithm Héctor Muñoz-Avila.
Discussion on Greedy Search and A*
Discussion on Greedy Search and A*
CS 4100 Artificial Intelligence
EA C461 – Artificial Intelligence
Informed search algorithms
Informed search algorithms
Artificial Intelligence (CS 370D)
Artificial Intelligence
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
CSE (c) S. Tanimoto, 2001 Search-Introduction
HW 1: Warmup Missionaries and Cannibals
HW 1: Warmup Missionaries and Cannibals
Artificial Intelligence
CS 416 Artificial Intelligence
Informed Search.
Presentation transcript:

Solutions Midterm 2004

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 is actually known when the algorithm is performed –h(n) is an estimate of the costs to a terminal node from n.

Search Heuristics (2) The function h(n) is optimistic if it never overestimates the real optimal costs, i.e. 0  h(n)  h*(n), where h*(n) are the optimal costs from n to a terminal node. One can obtain optimistic estimates by allowing illegal actions. This can be done in different ways, e.g. by –Dropping a precondition of the action –Inserting a new edge in the graph.

h(e) start goal f e s a t g b c d 4 Example Search

a s e f(a) = 7f(e) = 9 b c d f g t f(b) = 8 f(f) = 11 f(g) = 11 f(c) = 10 f(d) = The right path is optimal Order of nodes: a, b, e, c, f, g

Typical Errors There where no real errors. It was only important that the descriptions were precise.

Predicate Logic: Problem

Representation in Predicate Logic Language elements: –Constant: Bill –Variable: x (can be any variable) –Function: Father_of(.) –Predicates: Rich(.), Son_of(.,.) Formalization: –Rich(Father_of(Bill)) –  x(Rich(x)   y(Son_of(y, x)  Rich(y))) –  x(Rich(Father_of(x))  Rich(x)) –Rich(Bill)

Logical Consequences Rich(Bill) is NOT a logical consequence of Rich(Father_of(Bill)) and  x(Rich(x)   y(Son_of(y, x)  Rich(y))) because there is no relation between father and son explicitly mentioned. However, Rich(Bill) is a logical consequence of Rich(Father_of(Bill)) and  x(Rich(Father_of(x))  Rich(x)) [Reason: Instantiate the x to Bill and get Rich(Father_of(Bill))  Rich(Bill) and then use Rich(Father_of(Bill))]

Typical Errors There were some pitfalls: Son_of is a relation and father_of is a function Someone refers to an arbitrary person, therefore it is a universal and not an existential quantifier Logical consequences must employ knoweldge that is not formulated

The Planning Problem PickUpBlock(x,y,z) *prec..: Clear(x) Handempty(z) effects: +Holding(x,z) +Clear(y) -On(x,y) -Handempty(z) PutDownBlock(x,y,z) prec..: Clear(y) Holding(x,z) effects: +On(x,y) +Handempty(z) -Holding(x,z) -Clear(y)

PickUpBlock(x,y,z) *prec..: Clear(x) Handempty(z) effects: +Holding(x,z) +Clear(y) -On(x,y) -Handempty(z) PutdownBlock(x,y,z) prec..: Clear(y) Holding(x,z) effects: +On(x,y) +Handempty(z) -Holding(x,z) -Clear(y) All preconditions satisfied, can be used The upper two lines are incomplete, preconditions need to be satisfied for Pickup and Putdown

Final plan:

Typical Errors In general this was well understood Some students used a plan that was not very efficient

Values of Information Most important is the information about the bus. In order to save the hotel you have to be at C at 6pm on a day where the bus is going. If you know at which days the bus is going you can save in the worst case 6 overnight stays, i.e. 180$. Train from B to C: If the train goes at 1pm then you will always catch a bus at 6pm but if the train goes at 7.30 you will miss such a bus. Therefore with this information you may save one overnight stay if you take the earlier flight, ie. you save 10 $. The direct flight is most expensive. Optimal plan: Phone about the bus schedule and phone about the train. Take, if possible, the morning flight from A to B and then train and bus or fly in the afternoon one day earlier.

Typical Errors Some students did not mention the actions thar get information. It also occurred that the single flight was con sidered as optimal.

Fuzzy Sets and Control A fuzzy membership function maps the elements of a universe U to the unit interval: µ : U  [0,1] Linguistic variables and rules a expressions in natural language. A linguistic variable refers to a property and a liguistic rule refers to a rule. Both are interpreted in terms of membership functions and manipulations of membership functions.

Fuzzy Control Imagine we have a fuzzy system to control the setting of a valve according to specific temperatures. The two fuzzy control rules are: –Rule 2: IF temperature = medium THEN cooling valve = almost open. –Rule 1: IF temperature = low THEN cooling valve = half open. Suggest and explain membership functions to implement these rules and draw them into the following diagrams.

 (T) T [ o C]  (v) v [%] Rule 1:  (T) T [ o C]  (v) v [%] Rule 2: IF temperature = low THEN cooling valve = half open. IF temperature = medium THEN cooling valve = almost open.

 (T) T [ o C]  (v) v [%] Rule 1:  (T) T [ o C]  (v) v [%] Rule 2: IF temperature = low THEN cooling valve = half open. IF temperature = medium THEN cooling valve = almost open.

% 100%

Typical Errors One error type was that some students did not care about the membership functions.E.g. “Low temperature” membership goes down if the temperature increases.

Summary In principle, there was no serious misunderstanding. There errors were about equally distributed over the questions. They were most of time due to a lack of preciseness.