Representation Language - Artificial Intelligence - Past Exam, Exams of Artificial Intelligence

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

2012/2013

Uploaded on 03/24/2013

bakula
bakula 🇮🇳

4.4

(5)

35 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cork Institute of Technology
Page 1 of 4
Bachelor of Science (Honours) in Software Development - Award
(NFQ Level 8)
Autumn 2006
Artificial Intelligence
(Time: 3 Hours)
Answer any FOUR questions
(All questions carry equal marks).
Examiners: Dr. M. Ó Cinnéide
Mr. M. Donnelly
Mr. P. Rothwell
1. (a) Using the following program and query as an example write a general
description of Prolog in terms of its syntax, list handling, and the use of
recursion. Include a brief description of the effect of this program.
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]
pf3
pf4

Partial preview of the text

Download Representation Language - Artificial Intelligence - Past Exam and more Exams Artificial Intelligence in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Science (Honours) in Software Development - Award

(NFQ Level 8)

Autumn 2006

Artificial Intelligence

(Time: 3 Hours)

Answer any FOUR questions (All questions carry equal marks).

Examiners: Dr. M. Ó Cinnéide Mr. M. Donnelly Mr. P. Rothwell

  1. (a) Using the following program and query as an example write a general description of Prolog in terms of its syntax, list handling, and the use of recursion. Include a brief description of the effect of this program.

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]

  1. (a) Briefly define a knowledge representation language. [3 marks] List and explain the four important properties of a good representational formalism. [4 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]

  1. (a) With the aid of pseudocode, fully explain the A* search algorithm. [9 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]

  1. (a) Hubert Dreyfus criticises attempts to represent common-sense knowledge using a formal propositional knowledge representation language. Briefly characterise what is meant by a “formal propositional knowledge representation language .” [3 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]