• Aucun résultat trouvé

Complete subgraphs of bipartite graphs and applications to trace languages

N/A
N/A
Protected

Academic year: 2022

Partager "Complete subgraphs of bipartite graphs and applications to trace languages"

Copied!
10
0
0

Texte intégral

(1)

I NFORMATIQUE THÉORIQUE ET APPLICATIONS

G. G UAIANA A. R ESTIVO S. S ALEMI

Complete subgraphs of bipartite graphs and applications to trace languages

Informatique théorique et applications, tome 24, no4 (1990), p. 409-417

<http://www.numdam.org/item?id=ITA_1990__24_4_409_0>

© AFCET, 1990, tous droits réservés.

L’accès aux archives de la revue « Informatique théorique et applications » im- plique l’accord avec les conditions générales d’utilisation (http://www.numdam.

org/conditions). Toute utilisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit contenir la présente mention de copyright.

Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques

http://www.numdam.org/

(2)

Informatique théorique et Applications/Theoretical Informaties and Applications (vol. 24, n° 4, 1990, p. 409 à 417)

COMPLETE SUBGRAPHS OF BIPARTITE GRAPHS

AMD APPLICATIONS TO TRACE LANGUAGES (*)

by G. GUAIANA O , A. RESTIVO (*) and S. SALEMI C) Communicated by J. E. P I N

Abstract. - Motivated by a concurrency problem, a lattice describing a certain concurrent behaviour is constructed, whose éléments are complete subgraphs of a bipartite graph. As an application of this construction, one dérives, extending a resuit of Cori and Perrin, an explicit computation for the product of trace languages.

Résumé. - On construit un treillis associé au comportement de processus concurrents. Les éléments de ce treillis sont les sous graphes bipartis complets d'un graphe biparti. Une application de cette construction est la détermination effective de l'automate reconnaissant le produit de deux langages de traces reconnaissables; cette construction précise un résultat de R. Cori et D. Perrin.

1. INTRODUCTION

Let us consider a process which is composed by an arbitrary séquence of actions from a given set A "followed" by an arbitrary séquence of actions from a given set B. The séquences of actions from A (resp. from B) are described by the words of the free monoid A* (resp. B*). The "sériai"

behaviour of this system is then described by the words of the set A* B* and can be represented as follows

A B

(*) Received September 1988, revised in April 1989.

(*) Dipartimento di Matematica e Applicazioni, Universita' di Palermo, via Archirafï, 34, 90123 Palermo, Italy.

Informatique théorique et Applications/Theoretical Informaties and Applications 0988-3754/90/04 409 09/S2.90/© AFCET-Gauthier-Villars

(3)

4 1 0 G. GUAÏANA, A. RESTIVO, S. SALEMI

Let us now suppose that some actions from A are independent from some actions from B. The fact that the actions a e A and b e B are independent (or concurrent) means that the results on the System of the séquences ab and ba are the same: we say that a and b commute. We then define a symmetrie relation A <= Ax B, called the concurrency relation, and consider the congru- ence of the free monoid S*, where yL = A\JBJ generated by the set of pairs {ab, ba) with {a, b)eA. We dénote by MÇL, A) the quotient of £* by this congruence: it is called the free partially commutative monoid [3] generated by £ with respect to the concurrency relation À. Subsets of M(X, À) may be identifîed with subsets of E* closed with respect to this congruence relation.

If X is a subset of S*, its closure by this relation is denoted by [X]A or simply by [X].

In this formalism the concurrent behaviour of the System can be described by the set [A* B*], in the sensé that any word of this set is equivalent (produces the same resuit on the System) to a sériai behaviour, L e. a word of A*B*.

In this paper we give a lattice-theoretic characterization of this concurrent behaviour. We represent the concurrency relation À by a bipartite graph and we construct a lattice whose éléments are the maximal complete subgraphs of the bipartite graph. This lattice provides three related descriptions of the concurrent behaviour:

(1) A "partial order semantic" of the concurrent behaviour.

(2) An automaton recognizing [A* B*],

(3) An explicit regular expression for the set [A* B*],

In the second part of the paper an application of this construction is derived which gives a simple algorithm for the product of two trace languages.

In particular a new proof and a generalization of a resuit of Cori and Perrin [5] is obtained.

2. THE LATTICE OF THE CONCURRENT BEHAVIOUR

The concurrency relation A <= A x B can be represented by a bipartite graph (A, B, A), i.e, a graph whose point set can be partitioned into two subsets A and B such that every line of the graph joins A with B.

A subgraph (A', B', A') of (A, B, A) is complete (as a bipartite graph) if Af = AfyxBf with A' c= A and B' <= B. Remark that our définition includes also the case in which either A' or B' are empty. A complete subgraph of (A, B, A) is maximal if it is not a proper subgraph of any other complete

Informatique théorique et Applications/Theoretical Informaties and Applications

(4)

COMPLETE SUBGRAPHS AND TRACE LANGUAGES 4 1 1

subgraph. For instance, if for ail beB, (A, {b}, A x {£]) is not a subgraph of (A, B, A), then (A, 0, 0) (0 is the empty set) is a maximal complete subgraph of (A, B, A). Remark that a maximal complete subgraph (A\ B\ A' x B') is uniquely specified by the set E' = A' U B\

Example: Let A = [a, b, c, d}, B={e,f, g, h] and A given by the following bigraph:

The maximal complete subgraphs are given by the following subsets of

={a, b, e]

Let us dénote by 5r(A)={S1, Z2, . . ., 2„} the set of maximal complete subgraphs of (A, B, A). A partial order can be introduced in S (A) as follows:

Si^Sy if Z i n ^

By the définitions it follows that if

ZiHB^ZjOB t h e n ^ ^ j

T H E O R E M 1; The poset (S ( A ) , ^ ) is a lattice.

Proof. - For any Zre5(A) introducé the following notation

x

r

nA=i:

rA

, x

r

r)B=x

rB

.

vol. 24, n° 4, 1990

(5)

412 G. GUAIANA, A. RESTIVO, S. SALEMI

We first prove that, for any pair of éléments of S (A), there exists a least upper bound. Let us first remark that for any Z;, XjeS{A), the subgraph

is a complete subgraph of {A, B, A). However it is not in gênerai maximal.

It is then contained in a maximal complete subgraph £fce>S(A). We prove that Zfc is unique {te, there exists a unique maximal complete subgraph containing Atj) and that Zfc is the least upper bound of X; and S,-. By définition

and "jB ;

We first prove that 2,kA = yLiA O ZjA, Indeed if there exists a e A such that aeX kA and

then

and

are both complete subgraphs, which contradicts the hypothesis that E; and Zj. are maximal complete subgraphs. By the remark that any element Zre5(A) is uniquely specified by the intersection Xr O A, one dérives the unicity of Sfc. Since L^ ^ Sfc and S^ ^ Efc3 in order to prove that Zfc is the least upper bound, let us consider an element HpeS{A) such that LÉ ^ Sp and Sj <; Sp. These two inequalities imply that Sp j 4i S£i4nSJ-vl = Zfcj4. One then dérives that Zp ^ Lfc. In a symmetrie way one proves that there exists a greatest lower bound. This concludes the proof.

The lattice corresponding to previous example may be represented as follows

Informatique théorique et Applications/Theo retical Informaties and Applications

(6)

COMPLETE SUBGRAPHS AND TRACE LANGUAGES 413

The lattice S(A) provides a "partial order semantic" of the concurrent behaviour: the ordering relation represents the relation of time successiveness of séquence of actions in possible exécutions of the system. In particular E£ ^ Sj- means that an arbitrary séquence of actions from £• précèdes an arbitrary séquences of actions from S^ in a correct run of the system. For instance in the special case A= 0 , L e, there is a complete dependence between the actions of A and B, the lattice S(A) is the lattice with two éléments

and one obtains the "sériai" behaviour. On the contrary, in the case A = A*B, L e. all the éléments of A are independent from all the éléments of B, the lattice S(A) is the trivial lattice with only one element

A u B

and one obtains the maximal concurrency.

In order to give a language-theoretic formulation of these assertions let us introducé some notations.

Let C=(Xl5 E2, . . ., Sfc) be a maximal chain of S(A) and let L{Q dénote the following subset of £*:

THEOREM 2: The set [A* B*]~is obtained as the union of the sets L(Q with C ranging over all maximal chains of S(A).

Proof: Let us first remark that, if C= (Zl9 E2, . . ., Sfc) is a maximal chain, one has:

-'kB'

If K dénotes the union of the sets L (Q with C ranging over all maximal chains, we first prove the inclusion K g [A* B*].

If ueL(C) with C=(Zl 5 S2, . . ., Zk) a maximal chain, then

u = u\u2. . ,uk,

Let %A be the projection from the free monoid Z* into A*, nB the projection from Z* into B* and let ~ dénote the congruence of S* generated by À.

Since for any i, 2^ is a complete subgraph of (A, B, À), the words nA(ut) and

vol. 24, n° 4, 1990

(7)

4 1 4 G. GUAIANA, A. RESTIVO, S. SALEMI

nB (ut) commute. One has

u~nA (uj) nB (MJ) %A (M2) nB (u2). . . nA (uk) nB (uk).

By using previous chains of inclusions, one then dérives:

u~nA (MX) nA (u2). . .nA (uk) nB (wj nB (u2). . . nB (uk) e [A* B*].

This proves that K s [A* B*].

In order to prove the inclusion [A* B*] g K, since A* B* g L(C) for any maximal chain C, we have only to prove that [K\ = K. It suffices to show that for a e A, beB with (a, b)eA, for any w, t>eX* and for any maximal chain C, the following relations are verified:

(i) uabv e L (C) => ubav G Z, (C) for some maximal chain C';

(ii) ubaveL(C) =>uabveL(C') for some maximal chain C'.

In order to prove (i), suppose that uabve^X^t- - •£*• If there exists an index / (1 i^ii^k) such that

then, since Z£ is a complete subgraph of {A, B, A), the relation (i) is verified.

Otherwise, one has the following situation:

Since

and

one dérives that

is a complete subgraph of (A, B, A). It is then contained in a maximal complete subgraph HmeS(A). By the relations

one dérives that

Z, < Sm < Zj.

Informatique théorique et Applications/Theoretical Informaties and Applications

(8)

COMPLETE SUBGRAPHS AND TRACE LANGUAGES 415

There exists then in S(A) a maximal chain C' which begins with El s . . ., £is

ends with E;-, . . ., Efc and contains Em. C vérifies the condition ubaveL(C), since weE*. . .Xf, 6a e E*, veHJ.. .E£. This concludes the proof of (i). The proof of (ii) is simpler. Also here the only non trivial case is given by the following situation:

. . .E?, vsXJ. . .E*, èeZi B, ûeEJ i 4, i < ƒ Since EiB g Ej B (resp. 2j i 4 g Efj4), then beHjB (resp. fleZM). It follows that uabveL(C). This concludes the proof of the theorem.

Remark 1 : This theorem pro vides an explicit regular expression for the set [A* 5*] of words corresponding to correct runs of the System. For instance the maximal chains corresponding to previous example are: (El5 E2, E4, E6, E7), (El9 E2, E5, E7), (Sl s £3, S5? S7) and the regular expression representing the set [A* B*] is:

[A* B*] = {a + b + c + df

Remark 2: The lattice S (A) pro vides also a (nondeterministic) finite automaton (with s-moves) which recognizes the set [A* B*]. The éléments of S (A) correspond to the states of the automaton. The transitions of the automaton are defined as follows:

- If <? is the state corresponding to the element Ef of S (A), for any a eEi3

there is a transition from q back to q itself labelled by a.

— If E; ^ EjV there is an s-move from E; to E;-.

Ail states are start states and accepting states.

3. ON THE PRODUCT OF TRACE LANGUAGES

The problem in previous sections may be considered as a particular problem in trace theory. Trace theory was initiated by Mazurkiewicz [7] for describing the behaviour of concurrent Systems. Its relationships with free partially commutative monoids and the study of different families of trace languages have been investigated in several papers (cf. [1], [2], [4], [5], [8], [9], [10]).

We call trace an element of MÇL, A) and trace language any subset of MÇL, A). A trace language may be identified with a subset of E* closed with

vol. 24, n° 4, 1990

(9)

4 1 6 G. GUAIANA, A. RESTIVO, S. SALEMI

respect to the congruence induced by A. A trace language is recognizable (resp. context-free) if it is recognizable (resp. context-free) as a subset of S*.

Let A and B be two disjoint alphabets. Let Y* = A \J B and let A g A x B be a symmetrie relation. Let X be a language over the alphabet ^4 and let 7 be a language over the alphabet B. The shuffle X LU Y of the languages X and F i s defîned as follows:

.unvn\n > 0 , ux. . .uneX, vx. . .vne Y).

It is well known {cf. [6]) that the shuffle of two recognizable languages is recognizable and that the shuffle of a context-free language and a recognizable language is a context-free language. Next theorem pro vides an expression for the closure [XY] of the product XY with respect to the congruence induced byA.

THEOREM 3: [XY\ = [A* B*] fi ( A > Y).

Proof: The inclusion [XY] g [A* B*] H (X LU Y) is trivially verified. In order to prove the converse inclusion, let us consider an arbitrary element ue[A*B*]n(Xw.Y). ue[A*B*] with AC\B = 0, implies u~nA(u)%B{u).

UGXUJY and A D B = 0 implies nA(u)eX and nB(u)e Y. One dérives that ue[XY]. This concludes the proof.

Let us now consider a single alphabet A and a symmetrie relation A <= A x A, and two languages X, Y over A closed with respect to the congruence induced by A. Let B be another alphabet (disjoint from A) such that Card (^4) = Card (B) and let 0 : A -v B be a one-to-one mapping between A and B. G can be extended to an isomorphism of the free monoids A* and B*. Let Ao g A x B be a symmetrie relation defîned as follows:

(a,b)eA0 o (a, G - ^ e A .

Let S = i l J ^ and let a : S* -> A* be the alphabetic morphism defined as follows:

a if aeA -1^ ) if aeB.

The closure [XF|A of the product XY^A* with respect to A can be expressed by this formula:

One then dérives the folio wig corollary of theorem 3.

Informatique théorique et Applications/Theoretical Informaties and Applications

(10)

COMPLETE SUBGRAPHS AND TRACE LANGUAGES 4 1 7

COROLLARY: The product in M(L, A) of two recognizable trace languages is a recognizable trace language. The product of a recognizable trace language and a context-free trace language is a context-free trace language.

This corollary is an extention of a resuit of Cori and Perrin [5]. Moreover it provides an explicit and simpler computation for the product of two trace languages. Let us further remark that this computation can be partitioned into two independent parts: one part depending only on the concurrency relation À and the other part depending only on the languages. By this partition one can dérive interesting applications to the désigne of efficient algorithms for some special combinatorial problems on words over partially commutative alphabets.

REFERENCES

[1] IJ. J. AALBERSBERG and G. ROZENBERG, Trace Languages Deflned by Regular String Languages, RAIRO Informatique Théorique et Applications, Vol. 20, 1986, pp. 103-119.

[2] A. BERTONI, G. MAURI and N. SABATINI, Equivalence and Membership Problems for Regular Trace Languages, Lecture Notes in Computer Science, Vol. 140, 1982,

pp. 61-71.

[3] P. CARTIER and D . FOATA, Problèmes combinatoires de commutation et réarrange- ments, Lecture Notes in Mathematics, Vol. 85, 1981.

[4] R. CORI and Y. METIVIER, Recognizable Subsets of Some Partially Abelian Mono- ids, Theoretical Computer Science, Vol. 35, 1985, pp. 179-189.

[5] R. CORI and D. PERRIN, Automates et commutations partielles, RAIRO Informati- que Théorique, 19, 1985, pp. 21-32.

[6] J. E. HOPCROFT and J. D. ULLMAN, Introduction to Automata Theory, Languages and Computation, Addison-Wesley, 1979.

[7] A. MAZURKIEWICZ, Concurrent Program Schemes and Their Interprétations, DAIMI Rep. PB-78, Aarhus Univ., Aarhus, 1977.

[8] A. MAZURKIEWICZ, Traces, Histories, Graphs: Instances of a Process Monoid, Lecture Notes in Computer Science, Vol. 176, 1984, pp. 115-133.

[9] D. PERRIN, Words Over a Partially Commutative Alphabet, NATO ASI Séries F12, 1985, pp. 329-340.

[10] J. SAKAROVITCH, On Regular Trace Languages, Theoretical Computer Science, Vol. 52, 1987, pp. 59-75.

vol. 24, n° 4, 1990

Références

Documents relatifs

[r]

Ouvrez le lien donné sur Utube , munissez vous d’écouteurs et faites le travail proposé.. Donnez les renseignements sur les personnages (the characters), les endroits (the places),

Moreover Λ is composed of eigenvalues λ associated with finite dimensional vector eigenspaces.. We assume that A is

The final expression for the Noether charge must contain only terms linear in a and a † (it cannot mix states with different particle content) because, since it is a conserved

Notice that Y cannot contain both vertices of any pair st from Q (otherwise Conditions (i) and (ii) could no be together true: some color sequence must start at st and lead to some

The pragmatic turn, which will be at the center of my interest hère, claims that in order to understand this constitutive character of language and in order to critically evaluate

Singular integrals associated to the Laplacian on the affine group ax+b.. G. [H 1]):

We make some simple observations inspired by the example of rotation algebras to improve the result to any locally finite higher rank graph with finite set of objects, regardless