THE COST OF REPAIRS
Gabriele Puppis
LaBRI / CNRS based on joint works with
Michael Benedikt, Pierre Bourhis, Cristian Riveros, Slawek Staworko
THE COST OF REPAIRS Gabriele Puppis LaBRI / CNRS based on joint - - PowerPoint PPT Presentation
THE COST OF REPAIRS Gabriele Puppis LaBRI / CNRS based on joint works with Michael Benedikt, Pierre Bourhis, Cristian Riveros, Slawek Staworko What do you do when a computational object fails a specification? 5 Source 10000 X Target
Gabriele Puppis
LaBRI / CNRS based on joint works with
Michael Benedikt, Pierre Bourhis, Cristian Riveros, Slawek Staworko
Source
. . . Target
. . .
Source
. . . Target
. . .
s∈S min t∈T dist(s,t)
Source
. . . Target
. . .
s∈S min t∈T dist(s,t)
Source
. . . Target
. . .
s∈S min t∈T dist(s,t)
Bounded repairability of regular word languages
1) characterization 2) streaming setting 3) complexity
Bounded repairability of regular tree languages
1) curry encodings, stepwise automata, contexts 2) characterization 3) complexity
Given two languages S ⊆ Σ∗ and T ⊆ ∆∗ (represented by finite state automata) Decide whether max
s∈S min t∈T dist(s,t)
is finite.
Given two languages S ⊆ Σ∗ and T ⊆ ∆∗ (represented by finite state automata) Decide whether max
s∈S min t∈T dist(s,t)
is finite.
Source automaton
1 1 1
Target automaton
1 1 1 5
Source automaton
1 1 1
Target automaton
1 1 1 5
Source automaton
1 1 1
Target automaton
1 1 1 5
the strategy has unbounded cost.
Given some (trimmed) automata for S and T and the DAGs of strongly connected components... Source DAG Target DAG
Given some (trimmed) automata for S and T and the DAGs of strongly connected components... Source DAG Target DAG ...every chain of components in the source is covered by a chain of components in the target.
Given some (trimmed) automata for S and T and the DAGs of strongly connected components... Source DAG Target DAG ...every chain of components in the source is covered by a chain of components in the target.
All chains of source DAG are covered by chains of target DAG
3 1 2 1 2
1 2 1 2 1 2
All chains of source DAG are covered by chains of target DAG
3 1 2 1 2
1 2 1 2 1 2
All chains of source DAG are covered by chains of target DAG
3 1 2 1 2
1 2 1 2 1 2
All chains of source DAG are covered by chains of target DAG
3 1 2 1 2
1 2 1 2 1 2
the repair strategy is not streaming (i.e. implementable by a sequential transducer)
All chains of source DAG are covered by chains of target DAG
3 1 2 1 2
1 2 1 2 1 2
the repair strategy is not streaming (i.e. implementable by a sequential transducer)
NFA PTIME coNP PSPACE DFA P coNP PSPACE fixed CONST P PSPACE fixed DFA NFA
NFA PTIME coNP PSPACE DFA P coNP PSPACE fixed CONST P PSPACE fixed DFA NFA
NFA
≤ PSPACE ≥ P ≤ PSPACE ≥ P ≤ EXP ≥ PSPACE
DFA P P PSPACE fixed CONST P PSPACE fixed DFA NFA
Languages of words: insersions / deletions finite state automata components & traces coverability of chains Languages of unranked trees: insertions / deletions stepwise tree automata components & contexts coverability of synopsis trees
Source
Target
Source
Target
Source
Target
Source
Target
@ ... @ @
@ @
@
...
@ ... @ @
@ @
@
...
@ ... @ @
@ @
@
...
@ ... @ @
@ @
@
...
@ ... @ @
@ @
@
...
@ @ ... @
@
... @
@ @ ... @
@
... @
@ @ ... @
@
... @
@ @ ... @
@
... @
...
...
@ @ ... @
@
... @
...
...
?
@ ... @ @ ?
?
@ @ ? @
...
?
?
@ ... @ @ ?
? ?
?
@ @ ? @
...
?
?
?
@ ... @ @ ?
? ?
?
@ @ ? @
...
?
C
(accessibility of states and components are defined accordingly)
@ @ ... @
@
... @
...
...
@
?@a b@?
Given some (trimmed) stepwise automata for S and T, all synopsis trees of S are covered by synopsis trees of T Source synopsis tree
@ @
“covered by” Target synopsis tree
@ @
i.e. ...
Given some (trimmed) stepwise automata for S and T, all synopsis trees of S are covered by synopsis trees of T Source synopsis tree
@ @
“covered by” Target synopsis tree
@ @
i.e.
: cyclic components
cyclic components
Given some (trimmed) stepwise automata for S and T, all synopsis trees of S are covered by synopsis trees of T Source synopsis tree
@ @
“covered by” Target synopsis tree
@ @
i.e.
: cyclic components
cyclic components
respects post-order of components:
Given some (trimmed) stepwise automata for S and T, all synopsis trees of S are covered by synopsis trees of T Source synopsis tree
@ @
“covered by” Target synopsis tree
@ @
i.e.
: cyclic components
cyclic components
Source synopsis tree
@ @
“covered by” Target synopsis tree
@ @
i.e.
: cyclic components
cyclic components
whenever
r a ... a d b ... b c ... c r a ... a b ... b c ... c delete d @ ... @
@
@ ... @ r a a @ ... @ d b b c c @ ... @ @ ... @ @ ... @ r a a b b c c
r a ... a d b ... b c ... c r a ... a b ... b c ... c delete d ≅ ≅ @ ... @
@
@ ... @ r a a @ ... @ d b b c c @ ... @ @ ... @ @ ... @ r a a b b c c
r a ... a d b ... b c ... c r a ... a b ... b c ... c delete d ≅ ≅ @ ... @
@
@ ... @ r a a @ ... @ d b b c c @ ... @ @ ... @ @ ... @ r a a b b c c
r a ... a d b ... b c ... c r a ... a b ... b c ... c delete d ≅ ≅ @ ... @
@
@ ... @ r a a @ ... @ d b b c c @ ... @ @ ... @ @ ... @ r a a b b c c
r a ... a d b ... b c ... c r a ... a b ... b c ... c delete d ≅ ≅ @ ... @
@
@ ... @ r a a @ ... @ d b b c c @ ... @ @ ... @ @ ... @ r a a b b c c
horizontal horizontal
DTD stepwise universal fixed alphabet
non recursive
stepwise P PSPACE EXP coNP PSPACE PSPACE coNEXP coNEXP coNEXP coNEXP coNEXP coNEXP
DTD stepwise universal fixed alphabet
non recursive
stepwise P PSPACE EXP coNP PSPACE PSPACE coNEXP coNEXP coNEXP coNEXP coNEXP coNEXP
universal DTD
DTD P PSPACE EXP EXP
Regular Repair of Specifications Benedikt, Riveros, P . – LICS 2011 The cost of traveling between languages Benedikt, Riveros, P . – ICALP 2011 Bounded repairability for regular tree languages Riveros, Staworko, P . – ICDT 2012 Which DTDs are streaming bounded repairable? Bourhis, Riveros, Staworko, P . – ICDT 2013
normalized edit cost
s∈S
t∈T
distance automata and limitedness problem energy games with perfect/imperfect information
Regular Repair of Specifications Benedikt, Riveros, P . – LICS 2011 The cost of traveling between languages Benedikt, Riveros, P . – ICALP 2011 Bounded repairability for regular tree languages Riveros, Staworko, P . – ICDT 2012 Which DTDs are streaming bounded repairable? Bourhis, Riveros, Staworko, P . – ICDT 2013
normalized edit cost
s∈S
t∈T
distance automata and limitedness problem energy games with perfect/imperfect information