+ All Categories
Home > Education > Slides for ACSD'05 conference

Slides for ACSD'05 conference

Date post: 20-Jun-2015
Category:
Upload: alin-stefanescu
View: 274 times
Download: 1 times
Share this document with a friend
Description:
Slides presented at the ACSD'05 conference by Alin Stefanescu
Popular Tags:
34
Complexity Results for Checking Distributed Implementability Keijo Heljanko 1 Alin S ¸tef˘ anescu 2 speaking 1 Helsinki University of Technology 2 University of Stuttgart 7–June–2005
Transcript
Page 1: Slides for ACSD'05 conference

Complexity Results for Checking DistributedImplementability

Keijo Heljanko1 Alin Stefanescu2

speaking

1Helsinki University of Technology

2University of Stuttgart

7–June–2005

Page 2: Slides for ACSD'05 conference

Implementability: The Sequential Case

Specification

Page 3: Slides for ACSD'05 conference

Implementability: The Sequential Case

Specification

+

One Agent

Page 4: Slides for ACSD'05 conference

Implementability: The Sequential Case

Specification

+

One Agent

?⇒

Implementation

Page 5: Slides for ACSD'05 conference

Implementability: The Distributed Case

Specification

Page 6: Slides for ACSD'05 conference

Implementability: The Distributed Case

Specification

+

Team ofCommunicating Agents

Page 7: Slides for ACSD'05 conference

Implementability: The Distributed Case

Specification

+

Team ofCommunicating Agents

?⇒

Distributed Implementation

Page 8: Slides for ACSD'05 conference

The Problem

+

Transition System Distribution

?⇒

Distributed Transition System

Distributed Implementability Problem

Instance: a labeled transition system TS anda distribution ∆ of actions over a set of agents

Question: Is there a distributed transition system over ∆whose global state space is equivalent to TS?

equivalent : graph-isomorphic / trace-equivalent / bisimilar

Page 9: Slides for ACSD'05 conference

Building a House...

0 1

2 3

floor

floor

wall wall

roof

Page 10: Slides for ACSD'05 conference

Building a House...

0 1

2 3

floor

floor

wall wall

roof

+

roof

floor

Agent 1

roof

wall

Agent 2

Distribution of {floor,wall,roof} over {1,2}:

• Σlocal (1)={roof,floor}, Σlocal (2)={roof,wall}

• dom(roof)={1,2}, dom(floor)={1}, dom(wall)={2}

Page 11: Slides for ACSD'05 conference

Building a House...

0 1

2 3

floor

floor

wall wall

roof

+

roof

floor

Agent 1

roof

wall

Agent 2

Page 12: Slides for ACSD'05 conference

Building a House...

0 1

2 3

floor

floor

wall wall

roof

+

roof

floor

Agent 1

roof

wall

Agent 2

0 1roof

floor

Agent 1

Page 13: Slides for ACSD'05 conference

Building a House...

0 1

2 3

floor

floor

wall wall

roof

+

roof

floor

Agent 1

roof

wall

Agent 2

0 1roof

floor

Agent 1

0 1

roof

wall

Agent 2

Page 14: Slides for ACSD'05 conference

Synchronous Products of Transition Systems

A synchronous product of transition systems consists of a set oflocal transition systems synchronizing on common actions.

An action is executed if only if all local transition systems from itsdomain are able to execute that action.

0 1roof

floor‖ 0 1

roof

wall

0,0 1,0

0,1 1,1

floor

floor

wall wall

roof

Page 15: Slides for ACSD'05 conference

Building a House...

0 1

2 3

floor

floor

wall wall

roof

+

roof

floor

Agent 1

roof

wall

Agent 2

0 1roof

floor

Agent 1

0 1

roof

wall

Agent 2

The specification is implementable!

Page 16: Slides for ACSD'05 conference

Building a House... Not Always Possible!

0 1

2 3

floor

floor

wall wall

roof

+

roof

floor

Agent 1

roof

wall

Agent 2

0 1roof

floor

Agent 1

0 1

roof

wall

Agent 2

wall

floor

When the edge (1,wall,3) is deleted,

the specification is no longer implementable!

Page 17: Slides for ACSD'05 conference

Asynchronous Automata

Asynchronous automata [Zielonka87] generalize the synchronousproducts allowing more communication during synchronization.

An action is executed only for chosen tuples of local states of itsdomain.

1 →floor 2

0 →wall 1

(0, 0) →roof (1, 1)

(0, 1) →roof (2, 2)

0, 0

0, 1 2, 2

1, 1 2, 1

wall

roof

roof

floor

Page 18: Slides for ACSD'05 conference

Asynchronous Automata

Asynchronous automata [Zielonka87] generalize the synchronousproducts allowing more communication during synchronization.

An action is executed only for chosen tuples of local states of itsdomain.

1 →floor 2

0 →wall 1

(0, 0) →roof (1, 1)

(0, 1) →roof (2, 2)

0, 0

0, 1 2, 2

1, 1 2, 1

wall

roof

roof

floor

Not implementable as a synchronous product! (cf. wall roof floor)

Page 19: Slides for ACSD'05 conference

Formally...

A synchronous product of transition systems SP over adistribution (Σ, Proc, ∆) consists of

a set of local state spaces (Qp)p∈Proc and

a set of local transitions relations (→p)p∈Proc with→p ⊆ Qp × Σlocal (p) × Qp.

The global state space of SP consists of the global statesQ ⊆

p∈Proc Qp reachable from a set of initial global states I by

(qp)p∈Proca

−→(q′p)p∈Proc ⇔

{

qpa

−→p q′p for all p ∈ dom(a)

qp = q′p for all p 6∈ dom(a)

Page 20: Slides for ACSD'05 conference

Formally...

An asynchronous automaton AA over a distribution (Σ, Proc, ∆)consists of

a set of local state spaces (Qp)p∈Proc and

a set of local transition relations (→a)a∈Σ with→a ⊆

p∈dom(a) Qp ×∏

p∈dom(a) Qp

The global state space of AA consists of the global statesQ ⊆

p∈Proc Qp reachable from a set of initial global states I by

(qp)p∈Proca

−→(q′p)p∈Proc ⇔

{

(qp)p∈dom(a) →a (q′p)p∈dom(a) and

qp = q′p for all p 6∈ dom(a).

Page 21: Slides for ACSD'05 conference

Contribution

The distributed implementability problem was studied for a varietyof models. E.g. Petri nets, communicating finite state machines,synchronous products, asynchronous automata.

The computational complexity of many variants is known.[BadouelBernardinelloDarondeau95,97] etc.

For synchronous products and asynchronous automata, decisionprocedures were given, leading easily to upper bounds.[Morin98,99], [CastellaniMukundThiagarajan99], [Mukund02]

Our contribution was to fill some of the missing (lower) bounds.

Page 22: Slides for ACSD'05 conference

Implementability modulo Isomorphism

Decision procedures for implementability modulo isomorphism for:

deterministic specifications [Morin98] and

nondeterministic specifications[CastellaniMukundThiagarajan99]

(inspired by the theory of regions [EhrenfeuchtRozenberg90])

The problem then solvable in

deterministic polynomial time for deterministic specifications

nondeterministic polynomial time for nondeterministicspecifications

Lower bound for the nondeterministic case was left open

Page 23: Slides for ACSD'05 conference

Implementability modulo Isomorphism

For both synchronous products and asynchronous automata holds:

Theorem

The implementability problem modulo isomorphism for

nondeterministic specifications is NP-complete.

Proof idea:

The problem is in NP:follows immediately from the characterization from [CMT99]

The problem is NP-hard:by reduction from propositional satisfiability SAT(the proof is rather technical)

The result holds even for acyclic specifications!

Page 24: Slides for ACSD'05 conference

Implementability modulo Trace Equivalence (SP)

To decide whether a specification TS is trace-equivalent to asynchronous product with one initial global state do [CMT99]:

project TS on the local alphabets Σlocal (p)

synchronize the projections on common actions

if the synchronization is trace-equivalent to the initial TS ,answer ‘yes’, otherwise ‘no’

Theorem [SHRS96]

Checking trace-equivalence of two synchronous products isPSPACE-complete.

Page 25: Slides for ACSD'05 conference

Implementability modulo Trace Equivalence (SP)

Theorem

The implementability problem modulo trace equivalence for

synchronous products with one initial state is PSPACE-complete.

Proof idea:

The problem is in PSPACE:follows immediately from the previous theorem from [SHRS96]

The problem is PSPACE-hard:by reduction from nonreachability problem in synchronousproducts (proved PSPACE-hard in [SHRS96])

The result holds even for deterministic specifications!

For multiple initial states we have only a PSPACE-hardness result

Page 26: Slides for ACSD'05 conference

Implementability modulo Trace Equivalence (AA)

Two actions a, b are independent iff dom(a) ∩ dom(b) = ∅

To decide whether a specification TS is trace-equivalent to anasynchronous automaton, check if Trace(TS) is closed undercommutation of adjacent independent actions [Zielonka87]

Theorem

The implementability problem modulo trace equivalence forasynchronous automata is PSPACE-complete.Moreover, it is decidable in deterministic polynomial time fordeterministic specifications.

Proof: easy adaptation to the prefix-closure case of techniquesfrom [Muscholl94,PeledWilkeWolper98]

Page 27: Slides for ACSD'05 conference

Complexity Bounds Overview

Synchronous products (with one global initial state)Specification (TS) Isomorphism Trace Equivalence

Nondeterministic NP-complete

Deterministic P [Mor98]PSPACE-complete

Asynchronous automata (with multiple global initial states)Specification (TS) Isomorphism Trace Equivalence

Nondeterministic NP-complete PSPACE-completeDeterministic P [Mor98] P

Page 28: Slides for ACSD'05 conference

Complexity Bounds Overview (Bisimulation)

Synchronous products (with one global initial state)Specification (TS) Isomorphism Trace Equivalence Bisim. (determ. impl.)

Nondeterministic NP-complete

Deterministic P [Mor98]PSPACE-complete PSPACE-complete

Asynchronous automata (with multiple global initial states)Specification (TS) Isomorphism Trace Equivalence Bisim. (determ. impl.)

Nondeterministic NP-complete PSPACE-complete

Deterministic P [Mor98] PP

Page 29: Slides for ACSD'05 conference

Complexity Bounds Overview (Acyclicity)

Synchronous products (with one global initial state)Specification (TS) Isomorphism Trace Equivalence Bisim. (determ. impl.)

Nondeterministic NP-complete

Deterministic P [Mor98]PSPACE-complete PSPACE-complete

Acyclic & Nondet. NP-complete

Acyclic & Determ. P [Mor98]coNP-complete coNP-complete

Asynchronous automata (with multiple global initial states)Specification (TS) Isomorphism Trace Equivalence Bisim. (determ. impl.)

Nondeterministic NP-complete PSPACE-complete

Deterministic P [Mor98] PP

Acyclic & Nondet. NP-complete coNP-complete

Acyclic & Determ. P [Mor98] PP

Page 30: Slides for ACSD'05 conference

Final Remarks

We studied the complexity of the implementability for synchronousproducts (SP) and asynchronous automata (AA)

The complexities are similar, with an advantage of AA over SP fordeterministic specifications.Moreover, more models will be implementable as AA than as SP.

However, the size of SP is linear in the size of the specification,while a state space explosion may occur for AA(cf. the superexponential bound of Zielonka’s construction)

Page 31: Slides for ACSD'05 conference

Appendix

Page 32: Slides for ACSD'05 conference

Characterization of Async. Automata modulo Isomorphism

Theorem (Morin99)

Let (Σ, Proc, ∆) be a distribution and TS = (Q, Σ,→, I ) be a

transition system. Then, TS is isomorphic to an asynchronous

automaton over ∆ if and only if for each p ∈ Proc there exists an

equivalence relation ≡p ⊆ Q × Q with:

AA1: If q1a

−→ q2, then q1 ≡Proc\dom(a) q2.

AA2: If q1 ≡Proc q2, then q1 = q2.

AA3: If q1a

−→ q′1 and q1 ≡dom(a) q2, then there exists q′

2

such that q2a

−→ q′2 and q′

1 ≡dom(a) q′2.

Page 33: Slides for ACSD'05 conference

Heuristic for smaller state space

Zielonka’s procedure outputsvery large asynchronous automata

Usually smaller asynchronous automata accepting the samelanguage exist

Heuristic idea [StefanescuEsparzaMuscholl03]Unfold the initial transition system guided by Zielonka’sconstruction and test if intermediary automata are alreadyasynchronous:

Initial aut. Intermediary aut. Final (asynchronous) aut.

test if asynchronous!

Page 34: Slides for ACSD'05 conference

Synthesis Flow – the whole truth

Specification

Global behavior and distribution

TEST

Is the specification distributable?

Heuristics

Try to transform the specification

so as to become distributable

Synthesis

The core engine

Distributed implementation

Desired format

yes

no

if possible


Recommended