decomposition of database preferences on the power set of
play

Decomposition of Database Preferences on the Power Set of the Domain - PowerPoint PPT Presentation

Decomposition of Database Preferences on the Power Set of the Domain Patrick Roocks Institute for Computer Science, University of Augsburg RAMiCS15, Braga October 1, 2015 Introduction Power sets Decompostion Optimization Motivation


  1. Decomposition of Database Preferences on the Power Set of the Domain Patrick Roocks Institute for Computer Science, University of Augsburg RAMiCS’15, Braga October 1, 2015

  2. Introduction Power sets Decompostion Optimization Motivation Preference background Motivation ▸ Database preferences construct strict partial orders ▸ They are a slight generalization of Skylines queries ▸ The allow optimizing w.r.t. many dimensions simultaneously ▸ For example: Pareto optimal cars with low fuel consumption (high mpg value) and high power 2/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  3. Introduction Power sets Decompostion Optimization Motivation Preference background Motivation ▸ Database preferences construct strict partial orders ▸ They are a slight generalization of Skylines queries ▸ The allow optimizing w.r.t. many dimensions simultaneously ▸ For example: Pareto optimal cars with low fuel consumption (high mpg value) and high power 30.4, 15.8, 19.7, hp (horsepower) 113 264 175 200 21.5, 27.3, 26, 13.3, 19.2, 97 66 91 245 175 100 15.5, 150 15 20 25 30 15.2, mpg (miles per gallon) 150 2/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  4. Introduction Power sets Decompostion Optimization Motivation Preference background Power set preferences ▸ Assume that a user having such a preferences has to decide between two sets of cars ▸ Use case: choose a car rental agency with two different fleets 3/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  5. Introduction Power sets Decompostion Optimization Motivation Preference background Power set preferences ▸ Assume that a user having such a preferences has to decide between two sets of cars ▸ Use case: choose a car rental agency with two different fleets Fleet A vs. Fleet B hp (horsepower) 200 7 1 100 3 8 15 20 25 30 5 6 mpg (miles per gallon) ▸ Hence we search for the induced power set preference 3/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  6. Introduction Power sets Decompostion Optimization Motivation Preference background Notation and formal background Notational conventions: ▸ r = x 1 + ... + x n is a finite data set with tuples x i . ▸ a preference a has an associated equivalence relation s a ▸ relational operations: union + , composition ⋅ , intersection ⊓ ▸ inclusion order ≤ ▸ special relations: ▸ empty relation 0 ▸ identity 1 ▸ universal relation ⊺ 4/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  7. Introduction Power sets Decompostion Optimization Motivation Preference background Preference prerequisites For preferences (strict orders) a,b we define ▸ a ⊗ b is the Pareto composition ( “strictly better in (at least) one dimension, better or equal in all dimensions” ) a ⊗ b = df ( a + s a ) ⊓ b + a ⊓ ( b + s b ) ▸ The Prioritisation a & b equals the lexicographical order a & b = df a + s a ⊓ b ▸ The set preference t ( s ) for s ≤ r t ( s ) = df ¬ s ⋅ ⊺ ⋅ s For ∣ s ∣ = 1 this is the special case of a tuple preference . 5/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  8. Introduction Power sets Decompostion Optimization Motivation Preference background Some simple examples of preferences Example (Some terms over t ( ⋅ ) , ⊗ , & ) Let r = x 1 + x 2 + x 3 a data set. is short for x i . i 1 ▸ t ( x 1 ) ▸ t ( x 1 ) & t ( x 2 + x 3 ) 2 3 6/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  9. Introduction Power sets Decompostion Optimization Motivation Preference background Some simple examples of preferences Example (Some terms over t ( ⋅ ) , ⊗ , & ) Let r = x 1 + x 2 + x 3 a data set. is short for x i . i 1 ▸ t ( x 1 ) ▸ t ( x 1 ) & t ( x 2 + x 3 ) 2 3 1 2 ▸ t ( x 1 ) ⊗ t ( x 2 ) ▸ ( t ( x 1 ) ⊗ t ( x 2 )) & t ( x 3 ) 3 6/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  10. Introduction Power sets Decompostion Optimization Motivation Preference background Some simple examples of preferences Example (Some terms over t ( ⋅ ) , ⊗ , & ) Let r = x 1 + x 2 + x 3 a data set. is short for x i . i 1 ▸ t ( x 1 ) ▸ t ( x 1 ) & t ( x 2 + x 3 ) 2 3 1 2 ▸ t ( x 1 ) ⊗ t ( x 2 ) ▸ ( t ( x 1 ) ⊗ t ( x 2 )) & t ( x 3 ) 3 1 2 ▸ ( t ( x 1 ) & t ( x 3 )) ⊗ t ( x 2 ) ▸ t ( x 1 ) ⊗ t ( x 1 + x 3 ) ⊗ t ( x 2 ) 3 6/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  11. Introduction Power sets Decompostion Optimization Motivation Preference background Preferences decomposition Some results from our MPC’15 paper “Preference Decomposition and the Expressiveness of Preference Query Languages” : ▸ Set preferences and ⊗ suffice to express arbitrary strict orders ▸ Tuple preferences and { & , ⊗ } also suffice ▸ & -composed set preferences are a proper sub class 7/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  12. Introduction Power sets Decompostion Optimization Motivation Preference background Preferences decomposition Some results from our MPC’15 paper “Preference Decomposition and the Expressiveness of Preference Query Languages” : ▸ Set preferences and ⊗ suffice to express arbitrary strict orders ▸ Tuple preferences and { & , ⊗ } also suffice ▸ & -composed set preferences are a proper sub class In this paper: ▸ We formally introduce the power construction for preferences ▸ We apply the decomposition algorithms to them ▸ We introduce some optimizations to retrieve shorter terms 7/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  13. Introduction Power sets Decompostion Optimization Power set preferences Different power set preferences Definition (Power set preference) Let a be a preference, r a data set and P( r ) = { p ∣ p ≤ r } the power set. For all u,v ∈ P( r ) we define: uπ a ⇔ df v ≠ 0 ∀ y ∈ v ∶ ∃ x ∈ u ∶ xay 0 v ∧ uπ a ⇔ df u ≠ 0 ∀ x ∈ u ∶ ∃ y ∈ v ∶ xay 1 v ∧ 8/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  14. Introduction Power sets Decompostion Optimization Power set preferences Different power set preferences Definition (Power set preference) Let a be a preference, r a data set and P( r ) = { p ∣ p ≤ r } the power set. For all u,v ∈ P( r ) we define: uπ a ⇔ df v ≠ 0 ∀ y ∈ v ∶ ∃ x ∈ u ∶ xay 0 v ∧ uπ a ⇔ df u ≠ 0 ∀ x ∈ u ∶ ∃ y ∈ v ∶ xay 1 v ∧ 1,2 2 ⋯ 1 2 1,3 2,3 3 1,2,4 4 1,4 2,4 ⋯ 3 4 2) Partial graph of π a 1) a 0 1 1,3 1,4 1,3,4 2 1,2 2,3 1,2,3,4 ⋯ 3,4 4 ⋯ 3) Partial graph of π a 1 8/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  15. Introduction Power sets Decompostion Optimization Power set preferences Simplifications and a third power set preference The definitions of π 0 and π 1 can be simplified using ⟨ a ∣ p = df {( t,t ) ∈ 1 ∣ ∃ t ′ ∈ D ∶ ( t ′ ,t ) ∈ ( p ⋅ a )} (image) , ∣ a ⟩ p = df {( t,t ) ∈ 1 ∣ ∃ t ′ ∈ D ∶ ( t,t ′ ) ∈ ( a ⋅ p )} (inverse image) . 9/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  16. Introduction Power sets Decompostion Optimization Power set preferences Simplifications and a third power set preference The definitions of π 0 and π 1 can be simplified using ⟨ a ∣ p = df {( t,t ) ∈ 1 ∣ ∃ t ′ ∈ D ∶ ( t ′ ,t ) ∈ ( p ⋅ a )} (image) , ∣ a ⟩ p = df {( t,t ) ∈ 1 ∣ ∃ t ′ ∈ D ∶ ( t,t ′ ) ∈ ( a ⋅ p )} (inverse image) . We get uπ a ⇔ df v ≤ ⟨ a ∣ u , 0 v uπ a ⇔ df u ≤ ∣ a ⟩ v , 1 v for all u,v ∈ ̂ r where ̂ r = df P( r )/{ 0 } = { p ∣ p ≤ r ∧ p ≠ 0 } . 9/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

  17. Introduction Power sets Decompostion Optimization Power set preferences Simplifications and a third power set preference The definitions of π 0 and π 1 can be simplified using ⟨ a ∣ p = df {( t,t ) ∈ 1 ∣ ∃ t ′ ∈ D ∶ ( t ′ ,t ) ∈ ( p ⋅ a )} (image) , ∣ a ⟩ p = df {( t,t ) ∈ 1 ∣ ∃ t ′ ∈ D ∶ ( t,t ′ ) ∈ ( a ⋅ p )} (inverse image) . We get uπ a ⇔ df v ≤ ⟨ a ∣ u , 0 v uπ a ⇔ df u ≤ ∣ a ⟩ v , 1 v for all u,v ∈ ̂ r where ̂ r = df P( r )/{ 0 } = { p ∣ p ≤ r ∧ p ≠ 0 } . Additionally we define π a 2 = df π a 0 ⊓ π a 1 . The π i preferences are the three common ways for the power construction of a strict order (cf. Brink, Rewitzky 2001 “A paradigm for Program Semantics – Power Structures and Duality” ). 9/17 Patrick Roocks – Decomposition of Database Preferences on the Power Set of the Domain

Recommend


More recommend