• Keine Ergebnisse gefunden

A Generalized Next-Closure Algorithm – Enumerating Semilattice Elements from a Generating Set

N/A
N/A
Protected

Academic year: 2022

Aktie "A Generalized Next-Closure Algorithm – Enumerating Semilattice Elements from a Generating Set"

Copied!
39
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

A Generalized Next-Closure Algorithm – Enumerating Semilattice Elements from a Generating Set

Daniel Borchmann

TU Dresden, Institute of Algebra daniel.borchmann@mailbox.tu-dresden.de

Málaga, 14. October 2012

(2)

Motivation

Reminder

The Next-Closure algorithm successively computes all closed sets of a closure operatorcon a finite setM.

Definition (Closure Operators on Sets)

LetM be a set. Thenc: P

(

M

)

ÝÑP

(

M

)

is called aclosure operatoronMif and only if

cisextensive, i. e.AĎc

(

A

)

for allAĎM

cismonotone, i. e.AĎBĎMimpliesc

(

A

)

Ďc

(

B

)

cisidempotent, i. e.c

(

c

(

A

)) =

Afor allAĎM.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 2 / 13

(3)

Motivation

Reminder

The Next-Closure algorithm successively computes all closed sets of a closure operatorcon a finite setM.

Definition (Closure Operators on Sets)

LetM be a set. Thenc: P

(

M

)

ÝÑP

(

M

)

is called aclosure operatoronMif and only if

cisextensive, i. e.AĎc

(

A

)

for allAĎM

cismonotone, i. e.AĎBĎMimpliesc

(

A

)

Ďc

(

B

)

cisidempotent, i. e.c

(

c

(

A

)) =

Afor allAĎM.

(4)

Goal

Problem

How to enumerate things that are not closure operators on sets?

closure operators in a fuzzy setting? closure operators on ordered sets? Goal

Generalize Next-Closure to arbitrary closure operatorsonce and for all.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 3 / 13

(5)

Goal

Problem

How to enumerate things that are not closure operators on sets?

closure operators in a fuzzy setting?

closure operators on ordered sets? Goal

Generalize Next-Closure to arbitrary closure operatorsonce and for all.

(6)

Goal

Problem

How to enumerate things that are not closure operators on sets?

closure operators in a fuzzy setting?

closure operators on ordered sets?

Goal

Generalize Next-Closure to arbitrary closure operatorsonce and for all.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 3 / 13

(7)

Goal

Problem

How to enumerate things that are not closure operators on sets?

closure operators in a fuzzy setting?

closure operators on ordered sets?

Goal

Generalize Next-Closure to arbitrary closure operatorsonce and for all.

(8)

Next-Closure

Definition (Lectic Order)

Letăbe a strict linear order onM,iPMandA,BĎM.

ThenAăi Bif and only if

i

=

minď

(

AzBYBzA

)

andi PB. Furthermore,AăBif and only ifAăi Bfor somei PM. Definition

Leti PM,AĎMsuch thatc

(

A

) =

A. Then define Ai :

=

c

(

tj PA|j ăiu Y tiu

)

.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 4 / 13

(9)

Next-Closure

Definition (Lectic Order)

Letăbe a strict linear order onM,iPMandA,BĎM. ThenAăi Bif and only if

i

=

minď

(

AzBYBzA

)

andi PB.

Furthermore,AăBif and only ifAăi Bfor somei PM. Definition

Leti PM,AĎMsuch thatc

(

A

) =

A. Then define Ai :

=

c

(

tj PA|j ăiu Y tiu

)

.

(10)

Next-Closure

Definition (Lectic Order)

Letăbe a strict linear order onM,iPMandA,BĎM. ThenAăi Bif and only if

i

=

minď

(

AzBYBzA

)

andi PB. Furthermore,AăBif and only ifAăi Bfor somei PM.

Definition

Leti PM,AĎMsuch thatc

(

A

) =

A. Then define Ai :

=

c

(

tj PA|j ăiu Y tiu

)

.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 4 / 13

(11)

Next-Closure

Definition (Lectic Order)

Letăbe a strict linear order onM,iPMandA,BĎM. ThenAăi Bif and only if

i

=

minď

(

AzBYBzA

)

andi PB. Furthermore,AăBif and only ifAăi Bfor somei PM.

Definition

Leti PM,AĎMsuch thatc

(

A

) =

A. Then define Ai :

=

c

(

tj PA|j ăiu Y tiu

)

.

(12)

Next-Closure

Theorem (Next-Closure)

Let AM be such that c

(

A

) =

A. Define

A+ :

=

minătBĎM|c

(

B

) =

B,AăBu.

Then

A+

=

Ai where i is maximal with Aăi Ai.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 5 / 13

(13)

Next-Closure

Theorem (Next-Closure)

Let AM be such that c

(

A

) =

A. Define

A+ :

=

minătBĎM|c

(

B

) =

B,AăBu.

Then

A+

=

Ai where i is maximal with Aăi Ai.

(14)

Generalizing Next-Closure

Now consider the expressionAi in more detail:

Ai

=

c

(

tj PA|j ăiu Y tiu

)

=

c

(

c

(

tj PA|j ăiu

)

Yc

(

tiu

))

=

:c

(

tj PA|j ăiu

)

_c

(

tiu

)

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

Observation

We can solely work in thesemilattice

(

im

(

c

)

,_

)

of all closed sets ofc! Goal

Generalize Next-Closure to work onarbitrary, abstractly given semilattices.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 6 / 13

(15)

Generalizing Next-Closure

Now consider the expressionAi in more detail:

Ai

=

c

(

tj PA|j ăiu Y tiu

)

=

c

(

c

(

tj PA|j ăiu

)

Yc

(

tiu

))

=

:c

(

tj PA|j ăiu

)

_c

(

tiu

)

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

Observation

We can solely work in thesemilattice

(

im

(

c

)

,_

)

of all closed sets ofc! Goal

Generalize Next-Closure to work onarbitrary, abstractly given semilattices.

(16)

Generalizing Next-Closure

Now consider the expressionAi in more detail:

Ai

=

c

(

tj PA|j ăiu Y tiu

)

=

c

(

c

(

tj PA|j ăiu

)

Yc

(

tiu

))

=

:c

(

tj PA|jăiu

)

_c

(

tiu

)

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

Observation

We can solely work in thesemilattice

(

im

(

c

)

,_

)

of all closed sets ofc! Goal

Generalize Next-Closure to work onarbitrary, abstractly given semilattices.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 6 / 13

(17)

Generalizing Next-Closure

Now consider the expressionAi in more detail:

Ai

=

c

(

tj PA|j ăiu Y tiu

)

=

c

(

c

(

tj PA|j ăiu

)

Yc

(

tiu

))

=

:c

(

tj PA|jăiu

)

_c

(

tiu

)

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

Observation

We can solely work in thesemilattice

(

im

(

c

)

,_

)

of all closed sets ofc! Goal

Generalize Next-Closure to work onarbitrary, abstractly given semilattices.

(18)

Generalizing Next-Closure

Now consider the expressionAi in more detail:

Ai

=

c

(

tj PA|j ăiu Y tiu

)

=

c

(

c

(

tj PA|j ăiu

)

Yc

(

tiu

))

=

:c

(

tj PA|jăiu

)

_c

(

tiu

)

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

Observation

We can solely work in thesemilattice

(

im

(

c

)

,_

)

of all closed sets ofc!

Goal

Generalize Next-Closure to work onarbitrary, abstractly given semilattices.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 6 / 13

(19)

Generalizing Next-Closure

Now consider the expressionAi in more detail:

Ai

=

c

(

tj PA|j ăiu Y tiu

)

=

c

(

c

(

tj PA|j ăiu

)

Yc

(

tiu

))

=

:c

(

tj PA|jăiu

)

_c

(

tiu

)

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

Observation

We can solely work in thesemilattice

(

im

(

c

)

,_

)

of all closed sets ofc!

(20)

Generalizing Next-Closure

Plan

Things we have to generalize:

prerequisites (setting) lectic orders

Ai

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 7 / 13

(21)

Generalizing Next-Closure

Plan

Things we have to generalize:

prerequisites (setting)

lectic orders Ai

(22)

Generalizing Next-Closure

Plan

Things we have to generalize:

prerequisites (setting) lectic orders

Ai

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 7 / 13

(23)

Generalizing Next-Closure

Plan

Things we have to generalize:

prerequisites (setting) lectic orders

Ai

(24)

Generalizing Next-Closure – The Setting

Let

(

LL

)

be a finitesemilattice, i. e.

(

LL

)

is a finite ordered set and

for allx,yPLexists a least upper boundx_yofxandy.

Lettx1,. . .,xnu ĎLbe a generating set of

(

LL

)

, i. e. for eachyPLit is true that

y

=

ł

xiďLy

xi.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 8 / 13

(25)

Generalizing Next-Closure – The Setting

Let

(

LL

)

be a finitesemilattice, i. e.

(

LL

)

is a finite ordered set and

for allx,yPLexists a least upper boundx_yofxandy.

Lettx1,. . .,xnu ĎLbe a generating set of

(

LL

)

, i. e. for eachyPLit is true that

y

=

ł

xiďLy

xi.

(26)

Generalizing Next-Closure – The Setting

Let

(

LL

)

be a finitesemilattice, i. e.

(

LL

)

is a finite ordered set and

for allx,yPLexists a least upper boundx_yofxandy.

Lettx1,. . .,xnu ĎLbe a generating set of

(

LL

)

,

i. e. for eachyPLit is true that

y

=

ł

xiďLy

xi.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 8 / 13

(27)

Generalizing Next-Closure – The Setting

Let

(

LL

)

be a finitesemilattice, i. e.

(

LL

)

is a finite ordered set and

for allx,yPLexists a least upper boundx_yofxandy.

Lettx1,. . .,xnu ĎLbe a generating set of

(

LL

)

, i. e. for eachyPLit is true that

y

=

ł

xiďLy

xi.

(28)

Generalizing Next-Closure – Lectic Orders

Recall

Aăi B ðñ i

=

mină

(

AzBYBzA

)

andtiu ĎB.

Definition

Let 1ďi ďnanda,bPL. Then define

aăi b :ðñ i

=

min∆a,b andxi ďLb, where

a,b:

=

ti |

(

xi ďLaandxi ęLb

)

or

(

xi ęL aandxi ďL b

)

u.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 9 / 13

(29)

Generalizing Next-Closure – Lectic Orders

Recall

Aăi B ðñ i

=

mină

(

AzBYBzA

)

andtiu ĎB. Definition

Let 1ďi ďnanda,bPL. Then define

aăi b :ðñ i

=

min∆a,b andxi ďLb,

where

a,b:

=

ti |

(

xi ďLaandxi ęLb

)

or

(

xi ęL aandxi ďL b

)

u.

(30)

Generalizing Next-Closure – Lectic Orders

Recall

Aăi B ðñ i

=

mină

(

AzBYBzA

)

andtiu ĎB. Definition

Let 1ďi ďnanda,bPL. Then define

aăi b :ðñ i

=

min∆a,b andxi ďLb, where

a,b:

=

ti |

(

xi ďLaandxi ęLb

)

or

(

xi ęL aandxi ďL b

)

u.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 9 / 13

(31)

Generalizing Next-Closure – Ai

Recall

Ai

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

.

Definition

LetaPLand 1ďi ďn. Define

ai :

=

ł

jăi,xjďa

xj_xi.

(32)

Generalizing Next-Closure – Ai

Recall

Ai

=

ł

jăi c(tju)ĎA

c

(

tju

)

_c

(

tiu

)

.

Definition

LetaPLand 1ďi ďn. Define

ai :

=

ł

jăi,xjďa

xj _xi.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 10 / 13

(33)

Generalizing Next-Closure

Theorem

Let aPL. Define

a+ :

=

minătbPL|aăbu.

Then, if this minimum exists,

a+

=

ai with i being maximal with aăi ai.

(34)

Generalizing Next-Closure

Theorem

Let aPL. Define

a+ :

=

minătbPL|aăbu.

Then, if this minimum exists,

a+

=

ai with i being maximal with aăi ai.

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 11 / 13

(35)

Instances of the Generalized Algorithm

Consider the case of computing intents of a formal contextK

= (

G,M,I

)

.

Original Next-Closure is Generalized Next-Closure for the semilattice

(

Int

(

K

)

,_

)

whereA_B:

= (

AYB

)

2and generating set

tm2 |mPMu Y t H2u.

One can also consider the semilattice

(

Int

(

K

)

,X

)

with generating set tg1 |gPGu Y tMu.

Yields an algorithm with a lot of similarities toClose-by-One!

(36)

Instances of the Generalized Algorithm

Consider the case of computing intents of a formal contextK

= (

G,M,I

)

. Original Next-Closure is Generalized Next-Closure for the semilattice

(

Int

(

K

)

,_

)

whereA_B:

= (

AYB

)

2and generating set

tm2 |mPMu Y t H2u.

One can also consider the semilattice

(

Int

(

K

)

,X

)

with generating set tg1 |gPGu Y tMu.

Yields an algorithm with a lot of similarities toClose-by-One!

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 12 / 13

(37)

Instances of the Generalized Algorithm

Consider the case of computing intents of a formal contextK

= (

G,M,I

)

. Original Next-Closure is Generalized Next-Closure for the semilattice

(

Int

(

K

)

,_

)

whereA_B:

= (

AYB

)

2and generating set

tm2 |mPMu Y t H2u.

One can also consider the semilattice

(

Int

(

K

)

,X

)

with generating set tg1 |gPGu Y tMu.

Yields an algorithm with a lot of similarities toClose-by-One!

(38)

Instances of the Generalized Algorithm

Consider the case of computing intents of a formal contextK

= (

G,M,I

)

. Original Next-Closure is Generalized Next-Closure for the semilattice

(

Int

(

K

)

,_

)

whereA_B:

= (

AYB

)

2and generating set

tm2 |mPMu Y t H2u.

One can also consider the semilattice

(

Int

(

K

)

,X

)

with generating set tg1 |gPGu Y tMu.

Yields an algorithm with a lot of similarities toClose-by-One!

Daniel Borchmann Enumerating Semilattice Elements Málaga, 14. October 2012 12 / 13

(39)

Thank You for Your Attention!

Questions Welcome!

Referenzen

ÄHNLICHE DOKUMENTE

Investigations of closure operators on an involution poset Tlead to a certain type of closure operators (so called c-closure operators) that are closely related to projections on T..

Let G be an arbitrary phrase structure grammars and w be an arbitrary word over the terminal set of G. Then {w} is a regular language. Thus the decidability of the emptiness

Using spores instead of closures We analyzed a number of real Scala programs: (1) general, closure-heavy code, taken from the popular MOOC on FP Principles in Scala, (2)

In all cases, each run from the smaller input R requires about 2 pages in the buffer pool, confirming the basic hypothesis that g-join perform similar to hash join for large,

Next to several newly introduced generic techniques, which might prove useful well beyond the specific formalisms con- sidered here, our most noteworthy achievements are probably

[r]

The Biblioteca Hertziana in Rome http://www.biblhertz.it/neu/ will be closed probably for three to five years of necessary renovations beginning the 21st of December 2001..

The counselor responds to both clients with one last email (entry 10 for Ellie’s thread and entry 12 for Mel’s thread) in which she further assesses and affirms their