• No results found

Computing temporal data from temporal data

N/A
N/A
Protected

Academic year: 2021

Share "Computing temporal data from temporal data"

Copied!
51
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

medical applications

bioinformatics

animation

simulation

multimedia applications

digital libraries

web applications

videos, scenaries

personal information management

transport

sensor applications

...

(3)

languages based on linear

TL

[Prior 57]

, and extensions

ETL

[Wolper 83]

,

µ-

TL

[Vardi88]

:

T

-

WHILE

,

T

-

FIXPOINT

,

RNTL

...

[Chomicki, Toman 98], [Abiteboul,Herr,Van den Busche 99], [Bidoit, De Amo 99], [Bidoit, Objois 05]

temporal database = time-stamped database

Time-stamped calculus (

TS

-

FO

) and extensions

TS

-

WHILE

,

TS

-

FIXPOINT

...,

(4)

languages based on linear

TL

[Prior 57]

, and extensions

ETL

[Wolper 83]

,

µ-

TL

[Vardi88]

:

T

-

WHILE

,

T

-

FIXPOINT

,

RNTL

...

[Chomicki, Toman 98], [Abiteboul,Herr,Van den Busche 99], [Bidoit, De Amo 99], [Bidoit, Objois 05]

temporal database = time-stamped database

Time-stamped calculus (

TS

-

FO

) and extensions

TS

-

WHILE

,

TS

-

FIXPOINT

...,

[Abiteboul,Herr,Van den Busche 99],[Bidoit, Objois 05]

(5)
(6)

temporal queries :

TDB

−→

BD

”temporal”

to

”static”

(7)

temporal queries :

TDB

−→

BD

”temporal”

to

”static”

Example : elements whose color appears everywhere.

Temporal input

7−→

Static output

(8)
(9)

Goal

temporal query :

TDB

−→

TDB

”temporal”

to

”temporal”

”sequence”

to

”sequence”

(10)

Goal

temporal query :

TDB

−→

TDB

”temporal”

to

”temporal”

”sequence”

to

”sequence”

Example : color based spliting.

Temporal input

(11)

Goal

temporal query :

TDB

−→

TDB

”temporal”

to

”temporal”

”sequence”

to

”sequence”

Example : color based spliting.

Temporal input

(12)

Goal

temporal query :

TDB

−→

TDB

”temporal”

to

”temporal”

”sequence”

to

”sequence”

Example : color based spliting.

Temporal input

(13)

Goal

temporal query :

TDB

−→

TDB

”temporal”

to

”temporal”

”sequence”

to

”sequence”

Example : color based spliting.

Temporal input

Temporal output

(14)

Goal

temporal query :

TDB

−→

TDB

”temporal”

to

”temporal”

”sequence”

to

”sequence”

Example : Canon

Musical score

temporal instance

(15)

Goal

temporal query :

TDB

−→

TDB

”temporal”

to

”temporal”

”sequence”

to

”sequence”

Example : Coalescing: collapse consecutive and identical states into a single one.

(16)
(17)

Goal

temporal query = ”temporal” to ”temporal” mappings

What are ”temporal” to ”temporal” queries

Relational Temporal Machines

(18)

Goal

temporal query = ”temporal” to ”temporal” mappings

What are ”temporal” to ”temporal” queries

Relational Temporal Machines

joint work with Franc¸ois Hantry

(TIME 2007)

What languages for defining ”temporal” to ”temporal” queries / computations

(19)

֒

Relational Machine, Loosely coupled Generic Machine

[Abiteboul,Vianu 95]

Toward a ”normal form” of Relational Temporal Machines

Which components are really useful ?

Extended one tape

RTM

One tape

RTM

RTM

complexity classes and temporal languages

Space complexity = size of auxiliary tapes

(20)
(21)

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(22)

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(23)

k registers

[] [] []

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(24)

k registers

[] [] []

Transitions

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(25)

k registers

[] [] []

Transitions

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(26)

k registers

[] [] []

Transitions

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(27)

k registers

[] [] []

Transitions

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(28)

k registers

[] [] []

Transitions

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(29)

k registers

[] [] []

Transitions

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(30)

k registers

[] [] []

Transitions

S

h

J

1h

J

nhh

Sh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(31)

k registers

[] [] []

ϕ

(

~

x

)

Transitions

S

h

J

1h

J

nhh

output tape

· · ·

S

m

J

1m

J

imm

J

m nm

(32)

֒

Relational Machines, Loosely coupled Generic Machine

[Abiteboul, Vinau 95]

An example of

RTM

: color split

(33)

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(0)

/create

last

(0)

/

red/right

(1)

/cpred

blue/create

/right

(1)

/cpblue

¬

red/

/right

(0)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

blue

xP

(

x, blue

)

(34)

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(

0

)

/

create

last

(0)

/

red

/

right

(

1

)

/cpred

blue/create

/right

(1)

/cpblue

¬

red/

/right

(0)

queries and actions

last(0)

checks end of input

red

∃xP

(

x, red

)

(35)

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

last

(0)

/create

last

(0)

/

red/right

(1)

/

cpred

blue/create

/right

(1)

/cpblue

¬

red/

/right

(0)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

blue

xP

(

x, blue

)

(36)

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(0)

/create

last

(0)

/

red/right

(1)

/cpred

blue

/

create

/

right

(

1

)

/cpblue

¬

red/

/right

(0)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

(37)

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(0)

/create

last

(0)

/

red/right

(1)

/cpred

blue/create

/right

(1)

/

cpblue

¬

red/

/right

(0)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

blue

xP

(

x, blue

)

(38)

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(0)

/create

last

(0)

/

red/right

(1)

/cpred

blue/create

/right

(1)

/cpblue

¬

red/

/

right

(

0

)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

(39)

◮ ◮

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(

0

)

/

create

last

(0)

/

red/right

(1)

/cpred

blue/create

/

right

(

1

)

/

cpblue

¬

red

/

/

right

(

0

)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

blue

xP

(

x, blue

)

(40)

◮ ◮

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(

0

)

/

create

last

(0)

/

red

/

right

(

1

)

/cpred

blue/create

/right

(1)

/cpblue

¬

red/

/right

(0)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

(41)

◮ ◮

◮ ◮

s

2

s

1

start

f

s

3

s

4

s

5

s

6

¬

last

(0)

/create

last

(

0

)

/

red/right

(1)

/cpred

blue

/

create

/

right

(

1

)

/

cpblue

¬

red/

/

right

(

0

)

queries and actions

last(0)

checks end of input

red

xP

(

x, red

)

blue

xP

(

x, blue

)

(42)

Toward a ”normal form” of Relational Temporal Machines

Which components are really useful ?

Extended one tape

RTM

(43)

Auxiliary tapes

[

1

st

result]

RTMmk

=

RTM1+0

Extended one-tape

RTM

s

(

– one (temporal) auxiliary tape

– a (static) store

”concatenate” the m auxiliary tapes

−→

one auxiliary tape

problem : m cursors ?

answer : use the store to simulate the (use of the) m cursors

(44)

M ∈

RTMmk

;

N

equiv

;

N

load

;

N

comp

;

N

res

with

N

x

RTM1k

Proof : extension of

[Abiteboul, Vinau 95]

proof technique for loosely coupled Generic Machine.

N

equiv

:

Encoding of a superset of the auxiliary relations computed when running the

RTMmk

M

.

Computation of a representation of an ordered partition

{

δ

1

. . .δ

d

}

of the set of r-ary tuples built

from the active domain of the temporal input.

M

uses a finite number of

FO

queries.

N

load

:

Encoding on the auxiliary tape of the ordered partition, the action tables and the input instance

The auxiliary tape is then used as a Turing machine tape.

(45)

RTM

complexity classes and temporal languages

Space complexity = size of auxiliary tapes

(46)

V

st

Frame

T

1

1

2

3

3

V

Frame

V

Frame

V

Frame

TS

-

WHILE

FO

+ assignments

+ while loops

T

-

WHILE

FO

+ assignments

+ while loops

+ temporal moves

(47)

auxiliary tape

J

1

J

2

J

i0

J

n

S

store =

output tape

K

S

o

cursors on input and auxiliary tapes are

synchronized

the ouput is one of the store relations

configuration = auxiliary tape + store + cursor value

While

Q

B

Do

Body

iteration

1

−→

configuration

1

· · ·

· · ·

· · ·

(48)

PSpace

-

RTM

=

TS

-

WHILE

TS

-

WHILE

LinSpace-

RTM

requires to simulate:

generalized time stamped relations in an implicit manner, and

TS

-

FO∗

queries by

FO

queries

PSpace-

RTM

TS

-

WHILE

is based on the converse encoding.

(49)

T

-

WHILEbindshared

=

RRM

T

-

WHILEbindshared

is

T

-

WHILE

restricted to shared auxiliary schema (no temporal auxiliary tape)

extended with temporal variables

t

i

while

not(first)

do

left

end

;

↓t′;

while

not (t′=t)

do

( right;t)

end

.

Constant Space

RTM

:

no auxiliary temporal tape , just a store

(50)
(51)

(right move only, restriction on reversal move, synchronization of input and auxiliary moves)

data model

(relational + abstract data types, XML, specific domains)

”internal” query language

(inflationary,

FO

+ aggregate, Xpath, ...)

֒

applications (streaming, multimedia, ...)

Defining (declarative) languages

References

Related documents

Focusing on a population of MICU patients mechanically ventilated for 4 days or longer, the goals of this before/after QI project were to (1) optimize patient sedation and

That is (1) adoption and use of market research tools (MKTRES), engineering design tools (NPDPRACT), and general purpose software tools, as well as a firm’s external collaboration

PBU Savings Accounts do not carry monthly fees like Personal Accounts, but you cannot use a Savings Account to make loan payments.. Signature Card (plus 4 small

• Does not have the attributes of the tribe (e.g., sovereign immunity) and cannot issue tax exempt debt. • Tribal participation may make certain types of federal tax

The second pillar is the Agreement of 1 September 1998 on the operating procedures for an exchange rate mechanism in stage three of economic and monetary union, concluded between

• The most significant development transaction in the fringe market for the year was at Argent’s King’s Cross Central scheme where BNP Paribas Real Estate bought a site to develop

The key maintained assumption in this analysis is that municipal green procurement policies in far-away cities increase the supply of LEED Accredited Professionals in nearby

This is a repository copy of Understanding the barriers and motivations to shared reading with young children: The role of enjoyment and feedback.. White Rose Research Online URL