


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this exam paper are: Non-Deterministic Finite, State Automaton, Alphabet, Prolog Program, Sequence, Representation Language, Knowledge Representation, Good Representational, Semantic Networks, Representation
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



(NFQ Level 8)
Answer any FOUR questions (All questions carry equal marks).
Examiners: Dr. M. Ó Cinnéide Mr. M. Donnelly Mr. P. Rothwell
prog(X, X ,[X]). prog(X, Y, L):- X > Y, prog(Y, X, L). prog(X, Y, [X | L]):- X1 is X + 1, prog(X1, Y, L).
?- prog(1, 10, L). [10 marks]
(b) The following Prolog code defines a non-deterministic finite state automaton whose alphabet is {a,b} and where the initial state is s1.
final(s2). trans(s1,b,s3). trans(s1,b,s2). trans(s1,a,s4). trans(s1,a,s1). trans(s2,a,s1). trans(s2,a,s4). trans(s4,a,s3). silent(s1,s4). silent(s4,s2).
Define the predicate accept(S, String) [where S = starting state and String = a list containing the input string] which could be used to decide if String is accepted by the automaton defined above. [4 marks]
Show and explain how your code would deal with the following queries. ?- accept(s1, [b,a,a,a,b]). ?- accept(s1, [X,Y,Z]). [4 marks]
(c) Write a Prolog program to attempt to build a list L that contains three 1s, three 2s, and three 3s in a sequence so that for all digits n = 1, 2, 3 there are exactly n digits between successive n’s. Give a brief explanation of your program. [7 marks] [Total: 25 marks]
(b) Briefly characterise the ‘semantic networks’ representation scheme. Explain why loosely defined inference links in semantic networks led to problems. Briefly characterise frame-based representation schemes. [12 marks]
(c) “Agent-based system include problem solvers that are situated, autonomous, flexible, and social agents.” Briefly explain each of the underlined words. [6 marks] [Total: 25 marks]
(b) Show and explain a trace the operation of the A* algorithm on the following problem: A traveller must find the shortest path from city A to city F. The following graph describes the territory. Each node is a city and each arc a road joining cities. The straight line distances are shown beside each node. Use these straight line distances as the heuristic values. The actual distances are shown (highlighted) as labels on the arcs. Make sure to show how the algorithm you described in part (a) achieves the results you show in part (b).
[8 marks] (c) Briefly discuss each of the following with reference to the A* algorithm: admissible heuristics, efficiency, optimality, and the source and role of heuristics_._ [8 marks]
(b) The Frame Problem is seen as a serious impasse for logic-based knowledge representation. Fully explain the frame problem using examples. [8 marks]
(c) Hubert Dreyfus criticises attempts to represent common-sense knowledge using a formal propositional knowledge representation language. Describe and explain the argument he gives in support of his criticism. [10 marks] There is an alternative way of attempting to represent common-sense knowledge. Briefly discuss this alternative. [4 marks] [Total: 25 marks]