06.03.2013 Views

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

q<br />

tr1 tr2<br />

p1 p2 …………… pn<br />

Fig. 21.11: A closed connection.<br />

A generic form of closed pattern thus is given by placei, transitionj,<br />

placek, transitionr, placei. Formally, if we denote<br />

a place by ‘a’,<br />

the arc from a place to a transition by ‘b’,<br />

the transition by ‘c’ <strong>and</strong><br />

the arc from a transition to a place by ‘d’,<br />

then we could represent the closed connection of fig. 21.11 by (abcdadcb)<br />

(abcdadcb)….(abcdadcb) where a sub-string in each pair of parenthesis<br />

describes a closed connection in the pattern. It may, however, be added that a<br />

certain order is implied here, when counting the closed connections.<br />

Definition 21.2: Given two special strings α = abcd <strong>and</strong> β= adcb, the<br />

resulting pattern,<br />

i) (αβ) n , n>0 corresponds to redundant or subsumed rules,<br />

ii) α n , n>0 corresponds to circular rules, <strong>and</strong><br />

iii) (α 2 β 2 ) n , n > 0 corresponds to conflicting rules,<br />

where αβ denotes concatenation of α <strong>and</strong> β <strong>and</strong> x n denotes concatenation of<br />

x with itself n times.<br />

We now present a grammar for syntactic recognition of the different<br />

patterns. Let G = (Vn, Vt, P, S) where the grammar G has four tuples; Vn = a<br />

set of non-terminals, Vt = a set of terminals, P = a set of production/re-write<br />

rules, S = a starting symbol. The following definitions of the grammar are<br />

useful for recognizing four distinct types of patterns.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!