Prolog Programming Concepts and Queries for AI Exam Two

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/95

encourage image

There are no tags or description

Looks like no tags are added yet.

96 Terms

1
New cards

Stochastic methods are often used in ___________

theorem proving

knowledge retrieval

logical inference

planning under uncertainty

episodic reasoning

2
New cards

[Prolog] Consider the following query. It will have ___ answer(s).?- member(X,[1,2,3,4]), Y = X*X, Y

0

1

2

3 -

4

3
New cards

Write a Prolog program (append/3) where two lists (A and B) are appended to the third list (C) in 'append(A, B, C)'.

append([X|Y],Z,[X|W]) :- append(Y,Z,W).append([],X,X).

append([X|Y],Z,[X|W]) :- append(Y,Z,W).append(X,[],[]).

append([X|Y],Z,[X|W]) :- append(X,Z,W).append([],X,X).

append([X|Y],Z,[X|W]) :- append(Y,Z,W).append([],[],X).

append([X|Y],[X|Z],[X|W]) :- append(Y,Z,W).append([],X,X).

append([X|Y],Z,[X|W]) :- append(Y,Z,W).append([],X,X).

4
New cards

What would be the result of the query below?

mystery(A,B) :- mystery(A,[],B).

mystery([X|Y],Z,W) :- mystery(Y,[X|Z],W).

mystery([],X,X).

?- mystery([1,2,3], A).

A = [1,2,3].

A = [ ].

A = [1].

A = [2,3].

A = [3,2,1].

A = [3,2,1]. -

5
New cards

[Prolog] Consider the following mystery/3 predicate.

mystery(X,[X|R],R).

mystery(X,[F|R],[F|S]) :- mystery(X,R,S).

What is the result L of the following query:

?- mystery(1,[1,2,3], L).

L=1

L=2

L=3

L=[2,3] -

L=[1,1,2,3]

L=[1]

L=[2,3] -

6
New cards

Prolog] What would it be the result of the following prolog query?

?- [a, b, c] = [X | Y].

X=a, Y=b.

X=a, Y=c.

X=a, Y=[b, c]

X=[a, b], Y=[c]

Not unifiable

X=a, Y=[b, c] -

7
New cards

[Prolog] Write a prolog program for member/2 where member(X, Y) checks whether X is an element of a list Y.

member(X,[X]).member(X,[Y|R]) :- member(X,R).

member(X,X).member(X,[Y|R]) :- member(X,R).

member(X,[_]).member(X,[Y|R]) :- member(Y,R).

member(X,[X|R]).member(X,[Y|R]) :- member(X,[R]).

member(X,[X|R]).member(X,[Y|R]) :- member(X,R).

member(X,[X|R]).

member(X,[Y|R]) :- member(X,[R]). -

8
New cards

[Prolog] What is the predicate ___ for the following query and its result?

?- ___(2,loves(richard, sarah), X).

X = sarah

arg/3

assert/1

atom/1

clause/2

call/1

findall/3

functor/3

ground/1

op/3

retract/1

var/1

=, \=

==, \==

arg/3

9
New cards

[Prolog] What would it be the result of the following prolog query?

?- p(X, f(Y), a) = p(a, f(a), Y).

X=a, Y=f(a).

X=f(a), Y=a.

X=f(a), Y=f(a).

X=a, Y=a.

Not unifiable

X=a, Y=a.

10
New cards

[Prolog] Using append/3, what would be the definition for prefix of a list?

prefix(P,L) :- append(P,_,L).

prefix(P,L) :- append(P,S,L).

prefix(P,L) :- member(P,S), append(P,S,L).

prefix(P,_) :- append(P,S,_).

prefix(L,P) :- append(P,_,L).

prefix(P,L) :- append(P,_,L). -

11
New cards

[Prolog] What is the result of the following query?

?- P=..[parent,jack,mary].

P = parent(jack,mary)

P = parent

P = [jack, mary]

P = [parent, jack, mary]

P = parent[jack, mary]

P = parent(jack,mary)

12
New cards

[Prolog] Consider the following program (all 5 facts):

p(1,3,5). p(2,4,1). p(3,5,2). p(4,3,1). p(5,2,4).

What is the result of the following query for Bag?

?- findall(Z,p(X,Y,Z),Bag).

Bag = 5

Bag = [p(1,3,5), p(2,4,1), p(3,5,2), p(4,3,1), p(5,2,4)]

Bag = [[1,3,5], [2,4,1], [3,5,2], [4,3,1], [5,2,4]]

Bag = [5, 1, 2, 1, 4]

Bag = [1, 2, 4, 5]

Bag = []

Bag = [5, 1, 2, 1, 4]

13
New cards

[Prolog] What is the result of the following query?

?- parent(a,X) = .. L.

L = []

L = [parent, a, _X001]

L = 2

L = [parent(a,X)]

L = [parent]

L = [parent, a, _X001] -

14
New cards

[Prolog] Which of the following selections is correct? This ____ is to delete or remove a fact or rule (clause):

args/3

assert/1

atom/1

clause/2

call/1

findall/3

functor/3

ground/1

op/3

retract/1

var/1

=, \=

==, \==

retract/1

15
New cards

[Prolog-4] As discussed in the class. Select the correct definition of prefix/2 (assuming append/3 provided).

prefix(P, L) :- append(P, _, L).

prefix(P, _, L) :- append(P, _, L).

prefix(L, P) :- append(P, _, L).

prefix(P, L) :- append(L, _, P).

prefix(P, L) :- append(_, P, L).

prefix(P, L) :- append(P, _, L).

16
New cards

Prolog] What is the following mystery/2 about (using member/2)? mystery([X|Y],M,[X|Z]) :- member(X,M), mystery(Y,M,Z).

mystery([X|Y],M,Z) :- \+ member(X,M), mystery(Y,M,Z).

mystery([],M,[]).

append

member tail-recursive

merge-sort

intersection -

set-difference

subset

union

17
New cards

(Entailment - True/False)Note: a ⊨ b. This reads "a entails b". M(X) is a model of X.a ⊨ b if M(a) contains M(b).

false

18
New cards

"(A ⇔ B) ∧ (¬A ∨ B)" is ____

valid

unsatisiable

satisfiable -

undecidable

semidecidable

unsolvable

19
New cards

Select an equivalent statement for each statement below.

¬∃x p(x) A

¬∀x p(x) C

∃x p(x) B

∀x q(x) D

match with

A. ∃x ¬p(x)

B. ∃y p(y)

C. ∀x ¬p(x)

D. ∀y q(y)

20
New cards

(True ⊨ False) is ___.

false

21
New cards

Consider a vocabulary with only four propositions, A, B, C, and D. How many models are there for the following sentence?

12

22
New cards

"(A ⇔ B) ⇔ C" is ___.

valid

unsatisfiable

satisfiable -

undecidable

semidecidable

unsolvable

23
New cards

For any α, False ⊨ α

true

24
New cards

(A ∨ B) ∧ (¬C ∨ ¬D ∨ E) ⊨ (A ∨ B) ∧ (¬D ∨ E) is ___.

valid

unsatisfiable

satisfiable

undecidable -

semidecidable

unsolvable

25
New cards

A ⇔ B ⊨ A ∨ B is ____.

false

26
New cards

α ⊨ β if and only if the sentence (α ⇒ β) is valid.

true

27
New cards

The following step in conversion from (1) FOL to (2) Clausal form is to ___.

[1] ∀x [Animal(F(x)) ∧ ¬ Loves(x, F(x))] ∨ Loves(G(x), x)

[2] [Animal(F(x)) ∧ ¬ Loves(x, F(x))] ∨ Loves(G(x), x)

Eliminate Implications

Move negation inward

Standardize the variable

Skolemize

Drop Universal Quantifier-

Drop Existential Quantifier

Distribute ∨ over ∧

Distribute ∧ over ∨

Propositionalize

Substitute

Unify

28
New cards

The following step in conversion from (1) FOL to (2) Clausal form is to ___.

[1] ∀x [∀y Animal(y) ⇒ Loves(x, y)] ⇒ [∃y Loves(y, x)]

[2] ∀x [¬ ∀y ¬ Animal(y) ∨ Loves(x, y)] ∨ [∃y Loves(y, x)]

Eliminate Implications -

Move negation inward

Standardize the variable

Skolemize

Drop Universal Quantifier

Drop Existential Quantifier

Distribute ∨ over ∧

Distribute ∧ over ∨

Propositionalize

Substitute

Unify

29
New cards

The following step in conversion from (1) FOL to (2) Clausal form is to ___.

[1] ∀x [∃ y Animal(y) ∧ ¬ Loves(x, y)] ∨ [∃y Loves(y, x)]

[2] ∀x [∃ y Animal(y) ∧ ¬ Loves(x, y)] ∨ [∃z Loves(z, x)]

Eliminate Implications

Move negation inward

Standardize the variable-

Skolemize

Drop Universal Quantifier

Drop Existential Quantifier

Distribute ∨ over ∧

Distribute ∧ over ∨

Propositionalize

Substitute

Unify

30
New cards

The following step in conversion from (1) FOL to (2) Clausal form is to ___.

[1] ∀x [¬ ∀y ¬ Animal(y) ∨ Loves(x, y)] ∨ [∃y Loves(y, x)]

[2] ∀x [∃ y Animal(y) ∧ ¬ Loves(x, y)] ∨ [∃y Loves(y, x)]

Eliminate Implications

Move negation inward-

Standardize the variable

Skolemize

Drop Universal Quantifier

Drop Existential Quantifier

Distribute ∨ over ∧

Distribute ∧ over ∨

Propositionalize

Substitute

Unify

31
New cards

[AI07-09] If we resolve (A ∨ B) with (A ∨ ¬B), we obtain (A ∨ A), which is reduced to just A. The removal of multiple copies of literals is called ____.

factoring-

unit resolution

modulating

demodulating

monotonic

32
New cards

[AI07] The prospects for logic-based AI were advanced significantly by ______ (1965) development of resolution, a complete procedure for first-order inference

Alain Colmerauer

David and Putman

Cordell Green

Gottlob Frege

Kurt Gödel

Jacques Herbrand

Alfred Horn

J. Jaffar

John McCarthy

Marvin Minsky

Emil Post and Ludwig Wittgenstein

J. A. Robinson-

Terry Winograd

Patrick Winston

Gregory Yob

Thoralf Skolem

33
New cards

Every ____ clause can be written as an implication whose premise is a conjunction of positive literals and whose conclusion is a single positive literal.

definite-

lifted

propositionalized

grounded

CNF

DNF

positive

Horn

34
New cards

Forward chaining with Horn clauses is ____ as every entailed atomic sentence will be derived.

complete-

sound

valid

resolved

monotonic

consistent

unified

35
New cards

The question of entailment for first-order logic is _____. That is, algorithms exist that say yes to every entailed sentence, but no algorithm exists that also says no to every nonentailed sentence.

complete

sound

valid

invalid

monotonic

semidecidable-

undecidable

36
New cards

An inference algorithm that derives "only" entailed sentences is called ____.

Complete

Sound-

Correct

Coherent

Inherent

37
New cards

_____ is a form of data-driven reasoning, started with the known data. Select the best choice.

backward chaining

forward chaining-

bidirectional chaining

complete reasoning

sound reasoning

consistent proof

proof process

38
New cards

This form of clause (a disjunction of literals of which at most one is positive) and logic by ___ is the theoretical basis of logic programming language (e.g., Prolog).

Alain Colmerauer

David and Putman

Cordell Green

Gottlob Frege

Kurt Gödel

Jacques Herbrand

Alfred Horn-

J. Jaffar

John McCarthy

Marvin Minsky

Emil Post and Ludwig Wittgenstein

J. A. Robinson

Terry Winograd

Patrick Winston

Gregory Yob

Thoralf Skolem

39
New cards

Which one of the following statements is NOT correct?

α is valid iff ¬α is unsatisfiable.

α is satisfiable iff ¬α is not valid.

α |= β if and only if the sentence (α ∧ ¬β) is unsatisfiable.

α |= β if and only if M(α) ⊆ M(β) where M( ) is the set of all models of ( ).

α |= β if and only if α is satisfiable when β is satisfiable.-

40
New cards

The following ____ rule is one of the seven inference rules for propositional logic. Select the best choice as discussed in the class.

(alpha entails beta, alpha)/betat

Modus Ponens-

And-Elimination

And-Introduction

Or-Introduction

Double-Negation Elimination

Unit Resolution

Resolution (Transitivity of Inference Rule).

41
New cards

The restricted form of ____ is the basis of logic programming (e.g., Prolog). Select the best choice.

generalized modus ponens

lifted

standardized

variable-free

CNF

DNF

positive

Horn-

42
New cards

M(α) to mean the set of all models of α. The formal definition of entailment is this: α |= β if and only if, ____.

α ⊆ β.

M ( α ) ∈ M ( β ).

M ( α ) ⊆ M ( β ).

M ( β ) ⊆ M ( α ).-

M ( α ) ⇒ M ( β ).

43
New cards

This process by ____ is the process of removing existential quantifiers by elimination.

Alain Colmerauer

David and Putman

Cordell Green

Gottlob Frege

Kurt Gödel

Jacques Herbrand

Alfred Horn

J. Jaffar

John McCarthy

Marvin Minsky

Emil Post and Ludwig Wittgenstein

J. A. Robinson

Terry Winograd

Patrick Winston

Gregory Yob

Thoralf Skolem-

44
New cards

DPLL algorithm uses the fact that the sentence (A ∨ B) ∧ (A ∨ C) is true if A is true, regardless of the values of B and C. Similarly, a sentence is false if any clause is false, which occurs when each of its literals is false. Again, this can occur long before the model is complete. This strategy is an example of ____.

Clever indexing

Component analysis

Early termination-

Intelligent backtracking

Random restarts

Unit clause heuristic

Variable and value ordering

45
New cards

First-order inference via propositionalization is ____. That is, any entailed sentence can be proved.

complete-

sound

valid

invalid

monotonic

semidecidable

undecidable

46
New cards

Truth tables as a method of testing validity or unsatisfiability in propositional logic were introduced independently by_______.

Alain Colmerauer

David and Putman

Cordell Green

Gottlob Frege

Kurt Gödel-

Jacques Herbrand

Alfred Horn

J. Jaffar

John McCarthy

Marvin Minsky

Emil Post and Ludwig Wittgenstein

J. A. Robinson

Terry Winograd

Patrick Winston

Gregory Yob

Thoralf Skolem

47
New cards

[Prob] Bayesian reasoning is ___________

abductive;

deductive;

diagnostic;

deterministic;

concept-based

diagnostic

48
New cards

Consider the following table as we discussed in the class.Let X be P(cavity | toothache), where αbe the normalization constant and X = αP(cavity, toothache). Then α = __________.

P(toothache | cavity)

1/P(cavity, toochache)

1/ P(cavity, toothache, catch)

[ P(cavity, toothache, catch) + P(¬cavity, toothache, catch) ]

1/[ P(cavity, toothache | catch) + P(cavity, toothache | ¬catch) ]

1/P(cavity, toochache)

49
New cards

[Prob] Probability axioms are considered useful for rational-agent because ________.

they help the agent predict outcomes of possibility

they help the agent search the search space

they help the agent prove theorems;

they help the agent make inferences;

they help the agent plan the plan space

they help the agent predict outcomes of possibility

50
New cards

Consider the wumpus world as shown below.The Known facts are: { not Pit[1,1], not Pit[1,2], not Pit[2,1] }, and the presence of breeze (denoted as b) in cells: b = { b[1,2], b[2,1] }.The Query is for the probability of Pit in each frontier cell of { [1,3], [2,2], [3,1] }, and especially to compute what is the probability of Pit in the cell [1,3], that is, P(Pit[1,3]).What is the normalization constant for this case to compute P(Pit13|known,b)?Select the best answer as discussed in the class.

1/(2x(0.2)3 + 3x(0.8)3)

1/(3x(0.2)3 + 2x(0.8)3)

1/((0.2)3 + 3x(0.2)x(0.8)2 + 0.2x(0.8)2)

1/((0.2)3 + 3x(0.2)2x0.8 + 0.2x(0.8)2)

1/((0.2)3 + 2x(0.2)2x0.8 + 2x(0.2)x(0.8)2 + (0.8)3)

1/((0.2)3 + 3x(0.2)2x0.8 + 0.2x(0.8)2)

51
New cards

[Lecture12] Consider the following table as we discussed in the class.Let X be P(cavity | toothache), and αbe the normalization constant.Which one of the following is NOT correct?

X = αP(cavity, toothache)

X = α[ P(cavity, toothache, catch) + P(cavity, toothache, ¬catch) ]

X = α[

X = α[

α (0.12 + 0.08) = 1

X = α[

52
New cards

[Prob] An outcome that is from a set of uncertain possibilities characterizes a(n) ____________

variable

function

event

sequence

algorithm

event

53
New cards

There are two discrete random variables X and Y where X describes weather conditions, with the domain: X={sunny, rain, cloudy, snow}, and Y describes clothes to wear, with the domain: Y={t-shirt, long-sleeves, coat}. The distributions of X and Y are:X =

α (0.32+0.01+0.001) = 1

α (

α (

α (0.32+0.08+0.09+0.01) = 1

α (

α (0.32+0.08+0.09+0.01) = 1

54
New cards

According to the class discussion, a(n) ____ event is a complete specification of the state of the world about which the agent is uncertain. If the world is described by a set of random variables, a(n) _____ event is a particular assignment of values to the random variables.

atomic

bound

conditional

dependent

free

independent

random

Bayesian

prior

posterior

atomic

55
New cards

Logic is _______ in that adding new facts always expands a knowledge base.

modal

propositional

deontic

monotonic

nonmonotonic

monotonic

56
New cards

According to the class discussion.Consider two random variables s and m. Which one of the following is NOT correct?

P(s|m) = P(s, m) / p(m).

P(m, s) = P(m|s) x P(s).

P(s)=P(s|m) P(m) + P(s|¬m) P(¬m)

P(s|m) = P(s,m) / [P(m|s)P(m) + P(m|¬s)P(m)]

P(m|s) = P(s|m)P(m) / [P(s|m)P(m) + P(s|¬m)P(¬m)]

P(s|m) = P(s,m) / [P(m|s)P(m) + P(m|¬s)P(m)]

57
New cards

Stochastic methods are often used in ___________

theorem proving

knowledge retrieval

logical inference

planning under uncertainty

episodic reasoning

?

58
New cards

[Lecture12] According to the class discussion.Consider a Medical diagnosis for Meningitis which is a disease caused by the inflammation of the protective membranes covering the brain and spinal cord known as the meninges.A doctor knows that meningitis causes a stiff neck 50% of the time: P(s|m)=0.5. The doctor also knows some unconditional facts: the prior probability that the patient has meningitis is 1/50000. That is, P(m)=1/50000. The prior probability that any patient has a stiff neck is 1/20. That is, P(s)=1/20.What is P(m | s)?

[ 0.5 x (1/50000) ] / (1/20)

(1/20) x 0.5 / (1/50000)

[ (1/50000) / (1/20) x (0.5) ]

[ 0.5 x (1/50000) * (1/20)]

[ (1/50000) * 0.5 / 20 ]

[ 0.5 x (1/50000) ] / (1/20)

59
New cards

Probabilities of different event outcomes are a(n) ___________

event

probability distribution

expected value

sample space

compound event

probability distribution

60
New cards

Planning in a partially observable environment faces challenges due to ___________.

adversity

certainty

uncertainty

impossibility of prediction

constraint

uncertainty

61
New cards

According to the class discussion.Given three random variables X, Y and Z, with the product rule,P(a, b, c) = ________

P( a b ) P( b | c )

P( a b ) P(b | c) P(c)

P( a | b c ) P(b | c)

P( a | b ) P( b | c ) P( c )

P( a | b c ) P( b | c ) P( c )

P( a | b c ) P( b | c ) P( c )

62
New cards

According to the class discussion.Consider the following factoring equation and tables provided.What is the answer for entry (1) in Table f(ExAxJxM) (that is, the right-most table)?

(E1) x (F1)

(E1) x (F1) + (E2) x (F2)

(E1) x (F1) + (1 - (E2) x (1 - (F2))

(E1) x (F1) + (E2) x (F2) + (E1) x (F3) + (E2) x (F4)

(E1) x (F1) + (E2) x (F2) + [1 - (E1)] x (F3) + [1 - (E2)] x (F4)

(E1) x (F1) + (E2) x (F2)

63
New cards

As discussed on Bayesian network (BN) in the class.If we assume n Boolean variables for simplicity with max k parents for each node (where k is much smaller than n), then the amount of information needed to specify each conditional probability table will be at most m numbers as a constant, and the complete network can be specified by n*m numbers (linear in n). In contrast, the joint distribution contains 2**n (2 to the power of n) numbers.To make this concrete, suppose we have n = 30 nodes, each with five parents (k=5). Then the Bayesian network requires ___ numbers, but the full joint distribution requires over a billion.

5

30

30*5

30*(2**5)

(2**30)*5

(2**30)*(5**2)

(2**30)*(2**5)

30(2*5)

64
New cards

As discussed in the class, consider the following definition of Markov blanket and the figure shown below.Which one of the following choices is NOT in the Markov blanket of the node I?The Markov blanket of a variable A is the set consisting of the parents of A, the children of A, and the variables sharing a child with A.

C

E

H

K

L

M

M

65
New cards

As discussed on Bayesian network (BN) in the class.Which one of the following choices is NOT correct?

A Bayesian network is a directed graph.

Each node corresponds to a random variable.

A set of directed links or arrows in BN connects pairs of nodes.

If there is an arrow from node X to node Y in BN, X is said to be a parent of Y.

A Bayesian network is a directed acyclic graph.

Each node in BN has a CPT that quantifies the effect of the child-nodes of the node.

Each node in BN has a CPT that quantifies the effect of the child-nodes of the node.

66
New cards

According to the class discussion. Which one of the following is NOT correct?The Bayesian Network consists of or is: ________.

A set of random variables makes up the nodes of the network.

A set of directed links or arrows connects pairs of nodes.

A set of nodes which is annotated with quantitative probability information.

A graph which may have a cycle but with leaf node only.

A graph which is a directed acyclic graph (DAG).

A graph which may have a cycle but with leaf node only.

67
New cards

As discussed on Bayesian network (BN) in the class.In a polytree network, one would need to issue O(n) queries costing O(n) each, for a total of O(n*n) time. Consider clustering algorithms. Which one of the following choices is NOT correct?

Using clustering algorithms (join tree algorithms), the time can be reduced to O(n).

Clustering algorithms are not widely used in commercial systems for its overhead.

The basic idea of clustering is to join individual nodes resulting in a polytree network.

Essentially, the clustering algorithm is a form of constraint propagation.

Clustering algorithms still do not make the NP-hardness disappeared.

Clustering algorithms are not widely used in commercial systems for its overhead.

68
New cards

As discussed on Bayesian network (BN) in the class.When one considers that BN includes inference in propositional logic as a special case, inference in Bayesian networks is _____. Select the best answer.

constant

logarithmic

linear

polynomial

NP-hard

NP-hard

69
New cards

As discussed in the class, using chain-rule over the joint probability distribution over X={a, b, c}, then P(a, b, c) = _____.

P(ab | c) P(a | b) P(a)

P(a | bc) P(b | c) P(c)

P(a) P(b) P(c)

P(a) P(a | b) P(ab | c)

P(ab) P(ab | c) P(c)

P(a | bc) P(b | c) P(c)

70
New cards

As discussed in the class, consider the example of the joint probability distribution of (Toothache, Catch, Cavity) as shown below.Here Cavity separates Toothache and Catch because it is a cause to both of them with a naïve assumption: "Toothache and Catch" are [or believed to be] _____.

conditionally separable

conditionally dependent

conditionally independent

conditionally interdependent

conditionally naïve

conditionally independent

71
New cards

As discussed on Bayesian network (BN) in the class.In a locally structured system, each subcomponent interacts directly with only a bounded number of other components, regardless of the total number of components.Local structure is usually associated with ____ growth in complexity.

clustered

constrained

linear

exponential

polynomial

linear

72
New cards

According to the class discussion. Which one of the following is NOT correct?

The Bayesian network is an encoding of a collection of independence joint statements.

The Bayesian network is a polytree.

The Bayesian network is a directed acyclic graph.

In the Bayesian network there is just one path along the undirected graph arcs between any two nodes.

In the Bayesian network any node connected to a node Q will not be connected to any other node except through node Q.

The Bayesian network is an encoding of a collection of independence joint statements.

73
New cards

According to the class discussion.New burglar alarm is installed at home. It is fairly reliable at detecting a burglary, but it also responds on occasion to minor earthquakes. There are 2 neighbors: John and Mary, who have promised to call you at work when they hear the alarm.What is P(¬B, ¬E, ¬A, ¬J, ¬M)?

(0.001)×(0.002)×(0.001)×(0.05)×(0.01)

(1-0.001)×(1-0.002)×(0.001)×(0.05)×(0.01)

(0.001)×(0.002)×(1-0.001)×(0.05)×(0.01)

(1-0.001)×(1-0.002) ×(1-0.001) ×(1-0.05) ×(1-0.01)

1-(0.001)×(0.002)×(0.001)×(0.05)×(0.01)

(1-0.001)×(1-0.002) ×(1-0.001) ×(1-0.05) ×(1-0.01)

74
New cards

As discussed on Bayesian network (BN) in the class.With this family of ____ networks, there is at most one undirected path between any two nodes in the network.

cutset-dynamic

directed-acyclic

linear

multiply-connected

singly-connected

singly-connected

75
New cards

As discussed on Bayesian network (BN) in the class.For multiply connected networks variable elimination can have ____ time and space complexity in the worst case, even when the number of parents per node is bounded.

exponential

76
New cards

According to the class discussion.New burglar alarm is installed at home. It is fairly reliable at detecting a burglary, but it also responds on occasion to minor earthquakes. There are 2 neighbors: John and Mary, who have promised to call you at work when they hear the alarm.What is P( J ^ M ^ A ^ ¬B ^ ¬E)?

0.90 x 0.70

0.90 x 0.70 x 0.001

0.90 x 0.70 x 0.001x 0.001 x 0.002

0.90 x 0.70 x 0.001 x 0.999 x 0.998

0.90 x 0.70 x 0.001 x α (

0.90 x 0.70 x 0.001 x 0.999 x 0.998

77
New cards

According to the authors. Consider PDDL. Which one of the following choices is NOT correct?

An action A can be executed in state S if S entails the precondition of A.

S entails Q iff every positive literal in Q is in S and every negated literal in Q is not.

(A in ACTIONS(S)) if and only if PRECONDITION(A) entails S.

An action A is applicable in state S if the preconditions are satisfied by S.

When an action schema A contains variables, it may have multiple applicable instantiations.

(A in ACTIONS(S)) if and only if PRECONDITION(A) entails S.

78
New cards

According to the authors. The ______ heuristic drops all preconditions from action becomes applicable in every state, and any single goal fluent can be achieved in one step (if there is an applicable action—if not, the problem is impossible).

add more-edges

ignore delete-lists

ignore preconditions

relax preconditions

state abstraction

ignore preconditions

79
New cards

According to the authors. A planning graph with various heuristic methods can be used to give better heuristic "estimates" and can be used to search for a solution over the space formed by this method. One of the first and best-known planning graph algorithms is ____.

HeristicGraph

HierarchicalPlan

GraphPlan

SearchGraph

SearchPlan

SubgoalPlan

GraphPlan

80
New cards

According to the authors. With a planning graph, one can estimate the cost of achieving any goal literal G from a state S as the level at which the goal literal G first appears in planning graph constructed from initial state S. We call this the ______ of G.

heuristic cost

level cost

node cost

path cost

plan cost

real cost

subgoal cost

level cost

81
New cards

According to the authors. One issue in planning is deciding which actions are candidates to regress over. In the forward direction we chose actions that were (1) _____ —those actions that could be the next step in the plan. In backward search we want actions that are (2) _____ —those actions that could be the step in a plan leading up to the current goal state.

applicable, relevant

proximate, preferred

first in priority, first in proximity

first in action-queue, last in priority-queue

heavy-weighted, light-weighted

applicable, relevant

82
New cards

According to the authors. In general, backward search works only when we know how to regress from a state description to the predecessor state description. For example, it is hard to search backwards for a solution to the problem because there is no easy way to describe the states that are one move away from the goal. Happily, the PDDL representation was designed to make it easy to regress actions—if a domain can be expressed in PDDL, then we can do regression search on it. That is, the (1) ____ that were added by the action need not have been true before, and also the (2) ____ must have held before, or else the action could not have been executed.

causes, effects

effects, preconditions

fluents, actions

initial states, goal states

prior-states, post-states

effects, preconditions

83
New cards

According to the authors. Consider Planning as refinement of partially ordered plans. Which one of the choices is NOT correct?

Partially ordered plan is to represent plans as linearly ordered structures.

A plan is a set of actions and a set of constraints of the form "Before(a[i], a[j])" stating that one action occurs before another action.

Partially ordered plans are created by a search through the space of plans rather than through the state space.

Partial-order planning is also often used in domains where it is important for humans to understand the plans.

Operational plans for spacecraft and Mars rovers are generated by partial-order planners and are then checked by human operators before being uploaded to the vehicles for execution.

The plan refinement approach makes it easier for the humans to understand what the planning algorithms are doing and verify that they are correct.

84
New cards

According to the authors. Consider Planning Graph. To estimate the cost of a conjunction of goals, there are three simple approaches. The ____ heuristic finds the level at which all the literals in the conjunctive goal appear in Planning Graph without any pair of them being mutually exclusive.

level-sum

max-level

min-level

mutex-level

set-level

serial-cost

85
New cards

According to the authors. The subgoal independence assumption can be ______ when there are negative interactions between the subplans for each subgoal. For example, when an action in one subplan deletes a goal achieved by another.Select the best answer.

acceptable

effective

indivisible

incomplete

dependent

optimistic

pessimistic

subtasking

pessimistic

86
New cards

According to the authors. If an action A has V variables, then, in a domain with K unique names of objects, it takes the order of _____ time in the worst case to find the applicable ground actions.

K times V

K to the power of V

V to the power of K

e to the power of (K times V)

log (K to the power of V)

K to the power of V

87
New cards

According to the authors. Consider mutex condition in a planning graph. This is about one action negates effect of the other.

Competing needs

Inconsistent effect

Inconsistent support

Incoherent actions

Interference

88
New cards

According to the authors. Consider Planning. First-order logic lets us get around this limitation by replacing the notion of linear time with a notion of branching situations, using a representation called _____.

Action Calculus

Fluency Logic

Frame Algebra

First-Order Planning

Situation Calculus

Situation Calculus

89
New cards

According to the authors. Consider PDDL. The schema is a(n) ____ representation of the level of reasoning from propositional logic to a restricted subset of first-order logic.

abstract

concrete

grounded

lifted

negated

90
New cards

According to the authors. For an action to be relevant to a goal it obviously must contribute to the goal: at least one of the action's effects (either positive or negative) must unify with an element of the goal. What is less obvious is that the action must not have any effect (positive or negative) that ____ an element of the goal.

delegate

entails

negates

prevents

reifies

negates

91
New cards

According to the authors. A planning graph is a directed graph organized into levels: first a level S0 for the initial state, consisting of nodes representing each _____ that holds in S0; then a level A0 consisting of nodes for each ground action that might be applicable in S0; then alternating levels Si followed by Ai; until we reach a termination condition. Roughly speaking, Si contains all the literals that could hold at time i, depending on the actions executed at preceding time steps.

action

cause

effect

fluent

goal

level

subgoal

task

fluent

92
New cards

According to the authors. Consider PDDL. A set of ground (variable-free) actions can be represented by a single action _____.

class

fluent

plan

schema

script

transcript

schema

93
New cards

According to the authors. Consider PDDL. The schema consists of a(n) ____ of an action. Which one of the following choices is NOT correct?

name

effect

list of all variables

precondition

postcondition

94
New cards

According to the authors. Consider PDDL. Classical planning concentrates on problems where most actions leave most things ____.

activated

changed

dynamic

potential

unchanged

unchanged

95
New cards

According to the authors. Consider PDDL. Which one of the following choices is NOT correct?

An action A can be executed in state S if S entails the precondition of A.

The effect defines the result of executing the action.

The precondition and effect of an action are each conjunctions of literals.

The precondition defines the states in which the action can be executed.

The set of action schema provides the state of the system in planning.

96
New cards

According to the authors. The reason for the state, "not Poor," is NOT allowed in PDDL because _____.

its relationship is unary

it is negated

it is grounded

its argument is a constant

it is a fluent

it is negated