




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Assume the maze, depicted below, is given in which a robot has the task to move from an initial position (0,0) to the goal position (4,4). The available operators are north, south, east, and west that move the robot one field in the indicated direction. However, the robot cannot move through the walls that are depicted below; e.g. if the robot faces a wall in the north it cannot move north.
Assume A* is used for this particular problem (with g(s) measuring the number of moves from the starting position to the position s). a) Provide an evaluation function h(n) so that A* will find the optimal solution for the above search problem. [3] h(………………………..):= b) Now assume that the function you developed in a) is used to find a path to (4,4). Show (assuming that f(n):= g(n)+h(n) is used) how the search tree (that A* generates for the above problem) will look like after 4 expansions; provide the f-value for each node of the search tree. [5] c) Now provide a different state evaluation functions h’(s) that deceives A* in the sense that it terminates with a sub-optimal solution. Explain briefly why A* no longer finds the optimal solution, if h’(…) is used. [6] h’(………………..):=
Problem 2 continued c) Assume the following boolean variables are given L:= having lung cancer S:= being a smoker C:= having serious, chronic cough I:= being very intelligent Give the structure of a belief network that expresses the dependencies between those variables. Justify your structure! [6]
Genetic algorithms (also sometimes called evolutionary computing) can be viewed as search strategies. How are genetic algorithms different from classical search strategies such as backtracking, best-first search, and hill climbing?
a) We would like to predict the gender of a person based on two binary attributes: leg- cover (pants or skirts) and beard (beard or bare-faced). We assume we have a data set of 20000 individuals, 10000 of which are male and 10000 of which are female. 75% of the 10000 males are barefaced. Skirts are present on 50% of the females. All females are bare-faced and no male wears a skirt. i) Compute the information gain of using the attribute leg-cover for predicting gender! [4] ii) What is the information gain of using the attribute beard to predict gender? [4] iii) Based on yours answers to i) and ii) which attribute should be used as the root of a decision tree? [1]
a) What are the key characteristics of data-driven rule-based programming languages? How are the different from more traditional language such as C or C++? [5] b) Give the RETE-network for the following CLIPS-rule [1] (defrule Santa (R ?x 3 ?z) (P ?x ?y 2) (Q ?y 3) => ...) c) Assume that the working memory contains: f1:(P 2 2 2) f2:(P 2 3 2) f3:(Q 3 3) f4:(Q 7 3) f5:(Q 9 3) f6:(Q 2 3) f7:(Q 2 4) f8:(R 2 3 7) f9:(R 3 3 7). Indicate the tokens that are stored in each memory of the network. [2] c) Assume (P 3 2 2) is inserted into the working memory. Which computations have to be done, when the RETE algorithms is used?[3] d) Assume now (Q 9 3) is removed from the working memory of the updated network. Which computations have to be done, when the RETE-algorithm is used? [3] e) The RETE-algorithm is characterized to be a “incremental match algorithm”. What does this mean? [2]
Research and development of technologies that employ ontologies has increased recently. Give an example that illustrates how a particular application can benefit from ontology- based technologies!
a) What is the objective of inductive learning? [2] b) What is N-fold cross-validation? How does it work? [3]