Theoretical Foundations of the UML Gao Complexity Lecture 09: - - PowerPoint PPT Presentation
Theoretical Foundations of the UML Gao Complexity Lecture 09: - - PowerPoint PPT Presentation
Theoretical Foundations of the UML Gao Complexity Lecture 09: Realisability Joost-Pieter Katoen Lehrstuhl fr Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ss-20/fuml/ May 18, 2020 Bag petty
- input
- f
- utput
/
I
LCA ) = { Mi , . .- , Mn )
- f
- nly
/
linearis atoms- f
- .
- ①
- formed
- formed
(Vp
EP . FUEL . Wrp =vrp ) ⑦ L is closed under K Iff(
L KW implies we L)- f
today
: how hard is it- f
checking
- what
? Result
: this problem is co- NP
Giroary
:checking
whether a finite set- f
by
a week CFM is CONP- complete
- ①
②
Joshdependency
problem ( TDP )③
Polynomial reduction- f
- nto
{
the realisation :b problem Cismdle.CI?edg
The reals 's ability problem lies in CONP .\
Npn co NP PSPACE E EXPTIME Decision problem HEP , then tie cop → D= COP His believed that comp=/
NP ,( P =/
NP )Examples
. #- is
?
P- SAT
- problem
⇐ nxz )
V(
x , nIng
)
eh . complete- determine
tautology
? comp- complete
- f
- f
effty
verifiableproofs
- f
- Aivey
- f
②
To show that- ur
?
Ct ) is comp- complete
decision
problem that is GNP- hard
- polynomial
(f)
.€
JoinDependency
Problem( ODP )
IDP
example : inputs : n . universe U=I
a , b , c) z . cardinality KEIN , e.g . k=4 3 . relation R EUk
, e.g .#
records in a database Be{ (
a. a ,a , b ) , ( a. a ,b , a ) , ( a , b , a ,a ) , ( b , a. a. a ) } 4 . index set Ind- ver
- {
- sub
- In
(
RPI , JDP : HEE U " .(
VI . ERI E RFI ) implies I ER ? can we reconstruct the database R from the sub tables Rrf ,- .
- ur
- example
(
HI . a- TIER TI ) → a- ER a) a- = ( b. b. b , b ) e.g . a- TI , = a- Mass ) = ( b. b. b ) but ( b. b. b)¢
RTI , so no- bligation
HR
.b)
a- = ( a. a. a. a ) EIR . bn ) a- RF = ( a.- a. a)
Ertz
=(
a. 9 a) e R RE ✓ Intuition :by combining
the svbtebtes RTI , ,RrIz , RFI , would imply that ( a. a. a. a ) ER , but ( ga ,- a. a)
- Let
- f
f-
universe ) KE IN I cardinality ) database records R EUk
I =/ a , , n . . , ate ) , a , . C- U index sets Ind- { In
Ertj
- (
- .
Ij
{
b- E Um .) FIER . a-rIj=b
}
Constraint- f
Ind
: every i E fi . . k ) appears at least- nce
Ij
JDP : does there exist ajoin
dependency
, for all a- E Uk , it holds(
tf Ij e. Ind .Eertj
c-RRIJ )
implies a- ER . Intuition : relation R ( = database ) can be reconstructed- by
- f
- DDP
- complete
- f
( by
a week CFM ) A co NP- complete
- ①
⑦
This decision problem is GNP- hard
①
Lemma The decision problem realisebility
by
a- weak
Boff
( sketch ) show that the complement- f
{
M , ,- .
ally
for every process PEP an MSC Mp E { Ms , . . . , Mn ) . let Wp be Mprp is the sequence- f
- ccurring
projections
Up , . ( for every process pi EP ) are consistent i. e. ,- their
- formed
¢
{
Ms , . .- ,
Ergo
. . we can checknonrealisebility
in NP . XD② Lemmy
i The realise bility problem is co NP- hard
Pref
: provide apolynomial
reduction from the JDP- nto
- f
[
U , k , RE Uk , Ind ) 1- >{ Mp
,- .
- d
- f
- instance
- f
realisability
problem such that .- (
- as
- iv. Log
belongs
to at least two setsIj
, Ij . E Ind .T
If this is not the case , just duplicate Ij in Ind- )
- Ind
{
In , . . . , Im } to D= { p , , . . . , pm }- port
- ne
- R
{ AT
, . . . . , In ) with AT . eUk
↳ MSG{Me
, ,- .
Maj
. has the same structure , i.e . , the some message exchanges .- nly
- f
- Cx ,
i
x Xz x +3 . As:
For tuple a- = Cap , . . ,ak ) C- R we- btain
by replacing
Iby
a- . The finite set- f
time
I
a- ER } Clearly , this reduction can be done thpolynomial
theMy Pp
contains ( either sends- r
- nly
j
E Ip In addition , MSC My has a unique Linearis alton , i.e . Lin ( Mz ) is asingleton
set .Claims
( U , he , R , ind ) is ajoin
dependency
- if
- nly
- .
,M,r
, ) is a real isa ble ( by a . week CFM )Pino
: " ⇐ "By
contraposition . Assume that{ Mp
, . . .,M,p , )
is real is able and CU , k , R , Ind ) is riot ajoin
dependency
- Then
- sak )
If
R . TakeIj
E Ind . Since a- rIj c- RRIJ there is ab-
JE
R such that IrIj
= b-JER
.By
construction , M a- rj- nly
- n
Ij
. Heng since a-rIj=5JrIj
, It follows ME rj =Mbf
rj
- This
Ij
E Ind , thusMgj
E M . = { Mp ,- .
j
soMfa
,- .
Mfm
all belong to M . Since { Mi ,- .
- {
- ,
along
similar . lines . let ( U , k , R , Ind ) be a joindependency
. By contraposition , assume { M , , . . . , Mgr ,}- is
- f
- ff
{ Mi
, . . . , Mr , } tuples b- JER rig for eachj
such that there is a k- tuple
rIj
= b- J for eachj
, but a- ¢ R . Contradiction DX .