• Nie Znaleziono Wyników

(1)1) Consider the following formula, where P,Q,R are propositional variables

N/A
N/A
Protected

Academic year: 2021

Share "(1)1) Consider the following formula, where P,Q,R are propositional variables"

Copied!
1
0
0

Pełen tekst

(1)

1)

Consider the following formula, where P,Q,R are propositional variables:

[ ( P  Q )   R ]  [ ( R  P )   Q ]

Rewrite it in the CNF form (1 point) and answer to the following questions:

Is the answer to the SAT problem for this formula YES or NO (1 point)?

(2)

2)

Consider the expert system based on the following rules:

IF the engine is getting gas AND the engine turns over

THEN the problem is spark plugs IF the engine does not turn over AND the lights do not come on

THEN the problem is battery or cables IF the engine does not turn over AND the lights come on

THEN the problem is the starter motor IF there is gas in the fuel tank AND there is gas in the carburator

THEN the engine is getting gas

Rewrite these rules as clauses (2 points), using the following interpretation of propositional variables:

F1 : the engine is getting gas F2 : the engine turns over F3 : the lights come on

F4 : there is gas in the fuel tank F5 : there is gas in the carburator P1 : the problem is spark plugs P2 : the problem is battery P3 : the problem is cables

P4 : the problem is the starter motor

Construct the resolution tree showing that if there is gas in the fuel tank and the carburator, and we know that there are no problems with battery, cables, as well as the starter motor, then there must be the problem with spark plugs (2 points).

(3)

3)

Consider the following optimization problem concerning undirected graphs G=(V,E), where V denotes the set of nodes and EVV denoted the set of undirected edges linking the nodes.

Problem: Given G=(V,E), find the minimal dominating set, that is the smallest subset XV such that any node xX is linked by an edge eE with some yX.

Design the greedy algorithm for solving the above problem (1 point).

Explain (step by step) the performance of your algorithm (1 point) using the following example of the graph G=(V,E) :

where

V = {v1,v2,v3,v4,v5,v6,v7,v8,v9}

and

E = {(v1,v4),(v1,v5),(v2,v3),(v2,v5),(v2,v6),(v3,v6), (v4,v5),(v4,v7),(v6,v7),(v6,v9),(v7,v8),(v8,v9)}

Explain how the SAT problem can be reduced to the minimal dominating set problem (3 points).

v1 v2

v4

v7 v8 v9

v6 v5

v3

Cytaty

Powiązane dokumenty

We say that a bipartite algebra R of the form (1.1) is of infinite prin- jective type if the category prin(R) is of infinite representation type, that is, there exists an

It is well known that any complete metric space is isomet- ric with a subset of a Banach space, and any hyperconvex space is a non- expansive retract of any space in which it

Therefore, Theorem 4.3 may be generalized to all line graphs of multigraphs which possess maximal matchable subsets of vertices – for example, the line graphs of multigraphs

The theorem im- plies that if there exist counterexamples to the conjecture in C 2 then those of the lowest degree among them fail to satisfy our assumption on the set {f m = 0} (it

E r d ˝o s, Some of my recent problems in Combinatorial Number Theory, Geometry and Combinatorics, in: Graph Theory, Combinatorics and Applications, Proceedings of the

Stark [3] in which a set of theta functions was proved to be a basis for the space of modular forms of weight 1/2 over Q, which will be referred to as the rational case.. Their

By means of a connected sum on the pair: (X, the Z m -manifold), along two points of ψ −1 (0), we can change the manifold so that the monodromy along a connected component of ψ −1

These arguments arose as the result of taking a fresh look at the subject of root theory independent of its background of coincidence theory and finding that some technical