Documente Academic
Documente Profesional
Documente Cultură
Introducere
B 0 =B
( x1 , x2 ) B deducem x1,x2 B.
Daca A = (A, A), este o -algebra Peano peste M si B Initial{A)
astfel incat M B, atunci notand prin B restrictia lui A la B obtinem o
-algegra partiala B = (B, B ) si inchiderea lui M in B este B.
Fie S o multime finite. O relatie binara peste S este o submultime p SxS,
iar daca p1 2SxS si p2 2S*S definim:
p1 o p2 = {(x,y) 25xS| z S : (x,z) p1, {z,y) p2} Definim apoi
prod:dom(prod) -> 2SxS astfel:
dom(prod) - {( p1,p2) 2Sx5 x 2S*S\( p1 o p2 }
prod( p1,p2) = p1 o p2
prod (T 0 )
Demonstratia 1 To Cl s (T0) Cum S prod avem Cl prod (T0) este
inchisa sub s.
Dar To Cl S (T0) si C S l (T0) este cm mai mica multime inchisa sub S
3. Fie k = Card(S) si t = 2 k , n t
2
astfel incit XnXn+1
2
Sunt 2 k relatii binare peste S, astfel rezulta 3 Ultima parte este obtinuta
dom( T) = {T x T) dom( S )
(T , T ) Env (T0 )
D n 1 = { H (u,v) H n 1 \ H n | u, v dom( f n )
dom(f n 1 ) = dom(f n ) D n 1
f n 1 f n ( x ) daca x dom( f n )
f n 1 T ( f n (u ), f n (v)) daca x= H (u , v ) Dn 1
2. f n f n 1
3. f n : dom( f n ) T
f * ( x ) f 0 ( x ) daca x L0
f * ( x ) f k ( x) daca x D K
de -atgebre.
Teorema 1 Daca G = (S,L0.T0, f 0) este un graf etichetat si (T, T )
Env(T0), atunci G* = (G,L*,T, T ,f*) este graful etichetat stratifiat peste G.
Urmatoarea propozifie arata ca straturile lui G * sunt exact multimile Dn-
Consideram relatiile:
1 {( x1 , x 2 ), ( x 2 , x1 )}
2 {( x1 , x 3 ), ( x 2 , x 3 )}
T Cl prod (T0 )
T prod
D1 ( a, b) (a, a )
D0 a b C
p1 p2 p3
T ( 1 , p1 ) p3
T ( 1 , p 2 ) p 2
T ( 1 , p 3 ) p 3
T ( 3 , p1 ) p1
T ( 3 , p2 ) p2
T ( 3 , p3 ) p3
Dn 1 ( p3 ) n ( D( p1 ), D( p1 )) n ( D( p 3 ), D ( p3 ))
Dn 1 ( p 2 ) n ( D ( p1 ), D ( p 2 )) n ( D( p3 ), D ( p 2 ))
Dn 1 ( p1 ) n ( D( p1 ), D ( p 3 )) n ( D( p 3 ), D ( p1 ))
intr-un graf etichetat in a labeled graph G = (S,L0,T0,fQ). Consideram cel mai mic set the least
set STR(d) satisfying the following conditions: care sa indeplineasca urmatoarele conditii:
daca if ([aril...1Xfc],6i) € STR{d) and si ([.xfc,,.. ,a:r], 6a) e STR(d), where unde
l < i < f c < r < n + l, then atunci ([a:<,....a:r],[bi,6a]} £ STR(d)
The maximal length elements Elementele de lungime maximala din of STRid), namely si
anume, the elements of the form elementele de forma ([a:,,.. .txn+l],c) G STR(d), arc called
structured paths over d se numesc drumuri structurate peste d. We consider the projection of
Fie proiectia lui STR(d) sub a doua axa under the second axis:
STRi{d) = {ft | 3a r (a,P) £ STR(d)}
Consider for example the path Sa luam spre exemplu drumul:
* d=([xux3,xaix4\,[a,b,a])
in an arbitrary labeled graph. intr-un graf etichetat arbitrar . Avem We have
Thus, two structured paths arc obtained: asadar se obtin doua drumuri structurate:
Let d be a path as in Fie d un drum ca in (4).._We define the mapping Definim functia ft :
STR2(d) —■ B
Where unde B is defined ineste definit in (2), as follows dupa cum urmeaza: ■■ • h(x) =
x for x € LQ
..A(M).= <7(ft(u),M«))
For^ the case given inPentru ?cazul dat in (5) we obtain, for example,obtinem spre exemplu
h([a,b]) =o(a,b), K\a,[b ta]])=a(aMb,"))-
The structured path Drumul structurat df e STR(d) is named este numit
i accepted structured path over drum structurat acceptat peste Q if
dacad a = v[x\,... ,a;n+1],cj and si h(c) £ L.
In order to benefit by the properties of Pentru a beneficia de proprietatile lui
L as a subset of a Peauo algebra, it is convenient to denote a structured pathca
un subset al unei algebra Peauo, este convenabil sa se denote un drum
structurat de by d, = ([xu..., xn+i],h(c)) instead of in loc de ds = ([xi,...,J:n+i],c).
This notation simplifies also the decision concerning the acceptability of a
structured path. Aceasta notare de asemenea simplifica decizia in privinta
acceptarii unui drum structurat.
We denote byNotam cu ASP(Q) the set of all accepted structured, paths over
setul tuturor structurilor acceptate peste Q.
The following notations will be used in what follows.Urmatoarele notatii vor
fi folosite in cele ce urmeaza. If Daca t is a labeled tree este un pom etichetat,
atunci radacina then root(t) denotes the node which is the root of denumeste
nodul care este radacina lui t and label(s) denotes the label of the node iar
eticheta (s) denota eticheta nodului s. For every node Pentru fiecare nod s,
label{s) will be an element of va fi un element din S x L x S. For Pentru i
< j we denote by notam cu CONJ^wt) the concatenation of the symbols
concatenarea simbolurilor.
If Daca si,...,s n are the leaves of the labeled tree sunt frunzele copacului
etichetat t from left to right in this order and de la stanga la dreapta in aceasta
ordine si label(si) = wi,...,label{s n ) = wn then atunci CONfL^wt) is the fron-
tier este frontiera ol t and it is denoted by si este denotat de front(t).
Let us consider a structured path
Sa luam un drum structurat:
• every node fiecare nod .s of din t, which is not a leaf care nu este o frunza ,1
has two direct descendants are doi descendenti directi: the left descendant
descendentul din stanga si and the right descendant si descendentul din
dreapta gr. If Daca labd(s) ~ (x,r,y) then the following conditions arc fulfilled
atunci urmatoarele conditii sunt indeplinite : there are exista u,v e h(STR 2(d))
and si z e 5 such that astfel incat Ja6eJ(B() = (ai,u,r), labd($T) = (z,v,y)
and si
We say that Spunem ca i(d s) is a tree over este un copac peste B. The element
Elementul fe{c) is the label of este eticheta radacinii {t{ds)) and obviously si
evident h{c) e B.
If f is a tree over Daca f este un copac peste B then we say that atunci spunem
ca t is an accepted tree for este un copac acceptat pentru Q if daca label
eticheta(root(t)) e L. We denote by Notam cu AT(ff) the set of all accepted
trees for setul tuturor copacilor acceptati pentru Q.
In order to exemplify these concepts we consider the stratified graph Pentru a
exemplifica aceste concepte luam in considerare graful stratificat Q from
Example din Exemplul 1. For the pathPentru drumul d = ([a;i,ia,a;5(.'EG],
[n],a3,tto]) there arc only two structured paths exista doar doua drumuri
structurate:
The elements Elementele t(dj) and si f(d;) arc dr sunt dr?? si respectiv
Figura 3 and Figure 3 respectively, where unde:
Both Atat t(d\) and cat si t(d*) are trees over sunt copaci peste B. More-
over,Mai mult t(d\) e ^rtff) and si *(<£) e ^r(ff) because pentru ca
f(ff(ai,a3),O6) £ L, (T(ai,a(ffl 3ltt6)) e L. In fact, an accepted tree is obtained
only from an accepted structured path. De fapt, un copac acceptat este obtinut
doar dintr-un drum structurat acceptat.
L bd ( [ ] ( ? ? ? ? ?
6 ASP{Q), Let Fie bed, ([xi,...,a: n+i],<7(ii,U3)) 6 ASP{Q),
where unde n > 2. From Din trfm, U2) 6 £ and si L e Initial(L^) we deduce
that deducem ca i>i e L and si u 2 € L. We have also Avem de asemenea
ausig t(ds) is a binary tree, there is two direct descendants of este un copac
binar, exista doi descendenti directi din root(t(ds)). We denote by Notam cu t4
the subtree corresponding to the left descendant and by subcopacul
corespunzator descendentului din stanga si cu tr the subtree defined by the right
descendant of subcopacul definit de descendentul din dreapta al lui root(t(ds)).
Obviously, there is one and only one Evident exista unul si numai unul i 6
{2,...,n.} such that astfel incat
front(U) = CON}-I(xt,at,xt+i
ind(ds) = \v1\ + l
T, = (Ob,7,D,V)
Where unde:
• Ob is a finite set of objects such that este un set finit de obiecte astfel incat
Card(Ob) = Card{S)
where unde i = inii([.r,,... ,i n+ i],u(i)i, !*)) and si i(i;j) = [x,,. ..,z s\.
Applying this definition for the path Aplicand aceasta definitie pentru
drumul rf., = ([xi.,xs,xs,x<i],<T(iT(ai,aH),afi)) considered in the last part of the
previous section we obtain luat in considerare in ultima parte a sectiunii
precedente: . V] = a(ai,a3):v2 = o6; |«i| = 2; \v2\ = 1 . ind(d,) = 3 • The value of the
mapping Valoarea functiei eval^ for pentru d»:
evals(d9) - euaiu([a;i,rca,a;5],
sel.oo) = (ewoii:([a;i,a:a],oO
([]) (((
)6{
Because a stratified graph Pentru ca un graf stratificat Ls an abstract structureo
structura abstracta, an inference process un process de inferenta and its conclusion
si concluzia sa sunt definite corespunzator unei anumite interpretari. are defined
with respect to some interpretation. These concepts are stated in the following
definition. Aceste concepte sunt afirmate in urmatoarea definitie.
Definitia 3 Consider a stratified graphFie un graf stratificat Q = (Go,L,T,u,f)
over peste Go = (5,L 0 ,To,/o) and unde E = {Ob,i,D,V) an interpretation for o
interpretare pentru Q. A pair O pereche (x,y) € S x S is called se numeste
interrogation. For a given interrogation Pentru o interogatie data (x,y) we
designate by notam cu ASP(x,y) the set of all accepted structured paths from
setul tuturor drumurilor structurate acceptate de la x to la y in Q. The answer
mapping is the mapping Functia raspuns este functia?//
Ana : S x S —■ Y U {no}
defined
as
itASP[x,y) = 0 jh:(d) \d€ASP(x,y)}
(7)
The m/erence process generated by Procesul de m/erence generat de <f s g
ASP(G) is the computation performed to obtain este calculul realizat pentru a
obtine eval^{d s) by (6). Elementul evalxid*) is the conclusion of the
corresponding process este concluzia procesului corespunzator.
Doua drumuri structurate acceptate pentru acelasi drum sunt folosite astfel incit
doua concluzii sunt obtinute
i ( x1 ) A0 , i ( x2 ) B0 , i ( x3 ) E0 , i ( x4 ) F0 , i ( x5 ) C0 , i ( x6 ) D0
prin punctele X 1 ,..., X r . Based on this convention, pa1 poate fii exprimata prin
pl 4
Figura 1
Figura 2 Figura 3
figura 3
([ x1 , x2 , x5 , x6 ], ( ( a1 , a3 ), a6 )) obtinem
eval 2 ([ x1 , x 2 , x5 , x6 ], ( ( a1 , a3 ), a6 ))
eval 2 ([ x1 , x 2 , x5 ], ( a1 , a3 )) * eval 2 ([ x5 , x6 ], a6 )
(eval 2 ([ x1 , x2 ], a1 ) * eval 2 ([ x2 , x5 ], a3 )) * *eval 2 ([ x5 , x6 ], a6 )
( p a1 (i ( x1 ), i ( x2 )) * pa13 (i ( x 2 ), i ( x5 ))) * p a16 (i ( x5 ), i ( x6 ))
( p a1 ( A0 , B0 ) * pa13 ( B0 , C0 )) * pa16 (C 0 , D0 )
pl 4 ( I , M , N , I ) * p a6 (C0 , D0 )
pl10 ( M .Q, K , R, I , T , L, P, N , M )
d 2 ([ x1 , x 2 , x5 , x6 ], ( a1 , (a3 , a6 )))