Optimization of Preference Queries with Multiple Constraints
|
|
- Dorcas Lyons
- 5 years ago
- Views:
Transcription
1 Optimization of Preference Queries with Multiple Constraints Markus Endres and Werner Kießling Speaker: Timotheus Preisinger University of Augsburg Germany 2nd International Workshop on Personalized Access, Profile Management, and Context Awareness: Databases Optimization of Preference Queries under Hard Sum Constraints PersDB 1 / 26
2 Outline 1 Motivation 2 Preference Algebra 3 Optimization Techniques Dominance Criterion Selection Operators Rewriting Technique 4 Experimental Results 5 Conclusion Optimization of Preference Queries under Hard Sum Constraints PersDB 2 / 26
3 Motivation Diet sheet Multiple Hard constraints nutritional requirements restriction on calories ( 1100 kcal) restriction on vitamin C ( 38 g) restriction on fat ( 9 g) Soft constraints - Preferences Chicken soup as starter Main course should be beef Beef with lowest cholesterol Red wine for beverage, less important Optimization of Preference Queries under Hard Sum Constraints PersDB 3 / 26
4 Motivation Diet Sheet - Database Query Database Query Query on USDA Database to retrieve diet sheet More than 7000 types of food Relations for Soups, Meats, Beverages Must consider hard and soft constraints Using Preference SQL Kießling & Köstler 2002 Combining hard and soft constraints Optimization of Preference Queries under Hard Sum Constraints PersDB 4 / 26
5 Motivation Diet Sheet - Preference SQL Preference SQL Kießling & Köstler 2002 SELECT S. name, M. name, B. name FROM Soups S, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= 1100 AND S.Vc + M.Vc + B.Vc >= 38 AND S.fat + M.fat + B.fat <= 9 multiple hard constraint PREFERRING soft constraints S. name IN ( Chicken soup ) AND (M. name IN ( Beef ) AND M. Cholesterol LOWEST ) PRIOR TO B. name IN ( Red wine ) Hard and Soft Constraints SQL query with multiple hard constraints extended by soft constraints - PREFERRING Optimization of Preference Queries under Hard Sum Constraints PersDB 5 / 26
6 Operator Tree Transform Preference SQL into Operator Tree Preference SQL SELECT S. name, M. name, B. name FROM Soups ss, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= 1100 AND S.Vc + M.Vc + B.Vc >= 38 AND S.fat + M.fat + B.fat <= 9 PREFERRING S. name IN ( Chicken soup ) AND (M. name IN ( Beef ) AND M. Cholesterol LOWEST ) PRIOR TO B. name IN ( Red wine ) Soft Constraints Hard Constraints Soups Meats Beverages Optimization of Preference Queries under Hard Sum Constraints PersDB 6 / 26
7 Problem Description High memory and computation costs State-of-the-art: Join algorithms, but without preferences Ilyas, Liu Optimization for one constraint with preferences Endres, Kießling Full cartesian product necessary Pair-wise operators can t remove intermediate results Hard constraints include different relations Soft Constraints Hard Constraints Soups Meats Beverages Optimization of Preference Queries under Hard Sum Constraints PersDB 7 / 26
8 Problem Description Soft Constraints Target Reduce memory and computation costs for Preference Queries with Multiple Constraints Hard Constraints Soups Meats Beverages Optimization of Preference Queries under Hard Sum Constraints PersDB 7 / 26
9 Outline 1 Motivation 2 Preference Algebra 3 Optimization Techniques Dominance Criterion Selection Operators Rewriting Technique 4 Experimental Results 5 Conclusion Formal description necessary Optimization of Preference Queries under Hard Sum Constraints PersDB 8 / 26
10 Preference Algebra Kießling 2002 Preference Model Necessary Preference is a strict partial order P = (A, < P ), < P dom(a) dom(a) x < P y means I like y more than x Preference constructors Numerical: Lowest, Highest, Around,... Categorical: POS, NEG,... Complex preferences Pareto: P 1 P 2 P 1 and P 2 are equally important Prioritized: P 1 & P 2 P 1 is more important than P 2 Optimization of Preference Queries under Hard Sum Constraints PersDB 9 / 26
11 The BMO Query Model Compute optimal outcome with respect to preference statements. Best-Matches-Only only the best matches w.r.t the strict partial order of a preference P all tuples in BMO are undominated by others regarding P preference selection (Chomicki s Winnow-Operator) σ[p](r) := {t R t R : t[a] < P t [A]} Optimization of Preference Queries under Hard Sum Constraints PersDB 10 / 26
12 Preference Model Example Preference SQL SELECT S. name, M. name, B. name FROM Soups S, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= 1100 AND S.Vc + M.Vc + B.Vc >= 38 AND S.fat + M.fat + B.fat <= 9 PREFERRING S. name IN ( Chicken soup ) AND (M. name IN ( Beef ) AND AND M. Cholesterol LOWEST ) PRIOR TO B. name IN ( Red wine ) Preference Algebra σ[p 1 P 2 & P 3 ] σ S.cal + M.cal + B.cal 1100 S.Vc + M.Vc + B.Vc 38 S.fat + M.fat + B.fat 9 (S M B) with P 1 = POS(S.name, {Chicken soup}) P 2 = POS(M.name, {Beef }) LOWEST (cholesterol) P 3 = POS(B.name, {Red wine}) Optimization of Preference Queries under Hard Sum Constraints PersDB 11 / 26
13 Outline 1 Motivation 2 Preference Algebra 3 Optimization Techniques Dominance Criterion Selection Operators Rewriting Technique 4 Experimental Results 5 Conclusion Extension of MPref 2008 Paper Optimization of Preference Queries under Hard Sum Constraints PersDB 12 / 26
14 A Dominance Criterion Example Preference SQL SELECT S. name, M. name, B. name FROM Soups S, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= 1100 AND S.Vc + M.Vc + B.Vc >= 38 AND S.fat + M.fat + B.fat <= 9 PREFERRING S. name IN ( Chicken soup ) AND... Dominance Criterion S4 < P1 S3 S4.cal S3.cal S4.Vc S3.Vc S4.fat S3.fat Soups ID Name Cal Vc Fat S1 Vegetable S2 Chicken S3 Chicken //// S4 ////////// Noodle ///// 453 //1 //// 17 Optimization of Preference Queries under Hard Sum Constraints PersDB 13 / 26
15 Query A Dominance Criterion Definition Q := σ[p 1 Φ... Φ P r ] σ F1... F n (R 1... R r ) R i (A i1,..., A in, B i ), P i = (B i, < Pi ), Φ {, &}, F i hard constraints with Θ {<,, >,, =, }, If tuples t, t R i such that t[b i ] < Pi t [B i ] t[a i1 ] ˆΘ1 t [A i1 ]... and ˆΘ j defined as 8 < ˆΘ j := : t[a ir ] ˆΘ r t [A ir ] iff Θ j {, <} iff Θ j {, >} = iff Θ j {=, } then an optimal solution exists without the tuple t R i. Optimization of Preference Queries under Hard Sum Constraints PersDB 14 / 26
16 Query A Dominance Criterion Definition Q := σ[p 1 Φ... Φ P r ] σ F1... F n (R 1... R r ) R i (A i1,..., A in, B i ), P i = (B i, < Pi ), Φ {, &}, F i hard constraints with Θ {<,, >,, =, }, If tuples t, t R i such that t[b i ] < Pi t [B i ] t[a i1 ] ˆΘ1 t [A i1 ]... and ˆΘ j defined as 8 < ˆΘ j := : t[a ir ] ˆΘ r t [A ir ] iff Θ j {, <} iff Θ j {, >} = iff Θ j {=, } then an optimal solution exists without the tuple t R i. CUTOFF Preference Constructor Strict partial order P c := CUTOFF (P) : Evaluation of the Dominance Criterion Optimization of Preference Queries under Hard Sum Constraints PersDB 14 / 26
17 Outline 1 Motivation 2 Preference Algebra 3 Optimization Techniques Dominance Criterion Selection Operators Rewriting Technique 4 Experimental Results 5 Conclusion Additional hard selection operators Optimization of Preference Queries under Hard Sum Constraints PersDB 15 / 26
18 Constraints: Selection Operators Domain Knowledge S.cal + M.cal + B.cal 1100 kcal S.Vc + M.Vc + B.Vc 38 g S.fat + M.fat + B.fat 9 g Introduce NEW Constraints S.Cal + M.Cal + B.Cal 1100 S.Cal 1100 (M.Cal + B.Cal) A tuple with S.Cal 1100 (min(m.cal) + min(b.cal)) can t fulfill the hard constraint Optimization of Preference Queries under Hard Sum Constraints PersDB 16 / 26
19 Selection Operators Example Constraint S.Cal + M.Cal + B.Cal 1100 Soups ID Name Cal Vc Fat S1 Vegetable S2 Chicken S3 Chicken S4 Noodle Meats ID Name Cal Vc Fat Chol M1 Turkey M2 Beef M3 Pork Beverages ID Name Cal Vc Fat B1 Red Wine B2 Red Wine B3 Coke B4 Lemonade B5 Red Wine Optimization of Preference Queries under Hard Sum Constraints PersDB 17 / 26
20 Selection Operators Example Constraint S.Cal + M.Cal + B.Cal 1100 min(m.cal) + min(b.cal) = 903 S.Cal <= 197 Soups ID Name Cal Vc Fat S1 Vegetable S2 Chicken S.Cal > 197 //// S3 /////////// Chicken ///// 198 //9 //2 S.Cal > 197 //// S4 ////////// Noodle ///// 453 //1 //// 17 Meats ID Name Cal Vc Fat Chol M1 Turkey M2 Beef M3 Pork Beverages ID Name Cal Vc Fat B1 Red Wine B2 Red Wine B3 Coke B4 Lemonade B5 Red Wine Optimization of Preference Queries under Hard Sum Constraints PersDB 17 / 26
21 Selection Operators Example Constraint S.Cal + M.Cal + B.Cal 1100 min(s.cal) + min(b.cal) = 144 M.Cal <= 956 Soups ID Name Cal Vc Fat S1 Vegetable S2 Chicken S.Cal > 197 //// S3 /////////// Chicken ///// 198 //9 //2 S.Cal > 197 //// S4 ////////// Noodle ///// 453 //1 //// 17 Meats ID Name Cal Vc Fat Chol M1 Turkey M2 Beef M3 Pork Beverages ID Name Cal Vc Fat B1 Red Wine B2 Red Wine B3 Coke B4 Lemonade B5 Red Wine Optimization of Preference Queries under Hard Sum Constraints PersDB 17 / 26
22 Selection Operators Example Constraint S.Cal + M.Cal + B.Cal 1100 min(s.cal) + min(m.cal) = 877 B.Cal <= 223 Soups ID Name Cal Vc Fat S1 Vegetable S2 Chicken S.Cal > 197 //// S3 /////////// Chicken ///// 198 //9 //2 S.Cal > 197 //// S4 ////////// Noodle ///// 453 //1 //// 17 Meats ID Name Cal Vc Fat Chol M1 Turkey M2 Beef M3 Pork Beverages ID Name Cal Vc Fat B1 Red Wine B2 Red Wine B3 Coke B.Cal > 223 //// B4 ////////////// Lemonade ///// 281 //// 17 //2 B.Cal > 223 //// B5 Red//////// Wine ///// 400 //4 //0 Optimization of Preference Queries under Hard Sum Constraints PersDB 17 / 26
23 Selection Operators Example Constraint ALL additional selection operators and dominance criterion Soups ID Name Cal Vc Fat S1 Vegetable S.Vc < 3 //// S2 /////////// Chicken ///// 110 //2 //4 S.Cal > 197 //// S3 /////////// Chicken ///// 198 //9 //2 DC, S.Cal > 197 //// S4 ////////// Noodle ///// 453 //1 //// 17 Meats ID Name Cal Vc Fat Chol M1 Turkey M2 Beef DC ///// M3 /////// Pork ///// 911 //// 12 //// 12 //// 15 Beverages ID Name Cal Vc Fat B.Vc < 12 //// B1 Red//////// Wine //// 85 //1 //0 B2 Red Wine B3 Coke B.Cal > 223 //// B4 ////////////// Lemonade ///// 281 //// 17 //2 B.Cal > 223 //// B5 Red//////// Wine ///// 400 //4 //0 Optimization of Preference Queries under Hard Sum Constraints PersDB 17 / 26
24 Outline 1 Motivation 2 Preference Algebra 3 Optimization Techniques Dominance Criterion Selection Operators Rewriting Technique 4 Experimental Results 5 Conclusion Query optimizer integration Optimization of Preference Queries under Hard Sum Constraints PersDB 18 / 26
25 Rewriting Technique Operator Tree σ[p 1 Φ... Φ P r ] σ F1... F r R 1 R 2 R r Query Transformation 1) 2) Optimization of Preference Queries under Hard Sum Constraints PersDB 19 / 26
26 Rewriting Technique Operator Tree σ[p 1 Φ... Φ P r ] σ F1... F r σ A1 Θ 1 b 1 σ Ar Θ r b r σ A2 Θ 2 b 2 R r Query Transformation 1) Get lower and upper bounds and insert additional selection operators R 1 R 2 Optimization of Preference Queries under Hard Sum Constraints PersDB 19 / 26
27 σ[p 1 Φ... Φ P r ] σ F1... F r Rewriting Technique Operator Tree σ[p rc ] σ[p 1c ] σ[p 2c ] σ Ar Θ r b r σ A1 Θ 1 b 1 σ A2 Θ 2 b 2 R r Query Transformation 1) Get lower and upper bounds and insert additional selection operators 2) Apply dominance criterion R 1 R 2 Optimization of Preference Queries under Hard Sum Constraints PersDB 19 / 26
28 Outline 1 Motivation 2 Preference Algebra 3 Optimization Techniques Dominance Criterion Selection Operators Rewriting Technique 4 Experimental Results 5 Conclusion Optimization of Preference Queries under Hard Sum Constraints PersDB 20 / 26
29 Experimental Results USDA - National Nutrient Database for Standard Reference USDA - A Real-World Database More than 7000 types of food 3 relations: 500 soups meats beverages about possible combinations Preference SQL engine (Java) Integrated Preference Optimizer With and without rewriting Optimization of Preference Queries under Hard Sum Constraints PersDB 21 / 26
30 Experimental Results Different Hard Constraints Test query SELECT S. name, M. name, B. name FROM Soups S, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= max cal AND S.Vc + M.Vc + B.Vc >= min vc AND S.fat + M.fat + B.fat <= max fat PREFERRING S. name IN ( Chicken soup ) AND (M. name IN ( Beef ) AND M. Cholesterol LOWEST ) PRIOR TO B. name IN ( Red wine ) Optimization of Preference Queries under Hard Sum Constraints PersDB 22 / 26
31 Test query Experimental Results Different Hard Constraints SELECT S. name, M. name, B. name FROM Soups S, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= max cal AND S.Vc + M.Vc + B.Vc >= min vc AND S.fat + M.fat + B.fat <= max fat PREFERRING S. name IN ( Chicken soup ) AND (M. name IN ( Beef ) AND M. Cholesterol LOWEST ) PRIOR TO B. name IN ( Red wine ) Response time (s) Response time (s) No rewriting SO DC DC+SO max_cal x100 DC DC+SO max_cal x100 Optimization of Preference Queries under Hard Sum Constraints PersDB 22 / 26
32 Experimental Results Different Relation Sizes Test query SELECT S. name, M. name, B. name FROM Soups S, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= 1100 AND S.Vc + M.Vc + B.Vc >= 38 AND S.fat + M.fat + B.fat <= 9 PREFERRING S. name IN ( Chicken soup ) AND (M. name IN ( Beef ) AND M. Cholesterol LOWEST ) PRIOR TO B. name IN ( Red wine ) Optimization of Preference Queries under Hard Sum Constraints PersDB 23 / 26
33 Test query Experimental Results Different Relation Sizes SELECT S. name, M. name, B. name FROM Soups S, Meats M, Beverages B WHERE S.cal + M.cal + B.cal <= 1100 AND S.Vc + M.Vc + B.Vc >= 38 AND S.fat + M.fat + B.fat <= 9 PREFERRING S. name IN ( Chicken soup ) AND (M. name IN ( Beef ) AND M. Cholesterol LOWEST ) PRIOR TO B. name IN ( Red wine ) Response time (s) Response time (s) No rewriting SO DC DC+SO 0 1.5M 22.5M 40.0M 62.5M 87.5M Number of combinations DC DC+SO 0 1.5M 22.5M 40.0M 62.5M 87.5M Number of combinations Optimization of Preference Queries under Hard Sum Constraints PersDB 23 / 26
34 Outline 1 Motivation 2 Preference Algebra 3 Optimization Techniques Dominance Criterion Selection Operators Rewriting Technique 4 Experimental Results 5 Conclusion Optimization of Preference Queries under Hard Sum Constraints PersDB 24 / 26
35 Summary and Outlook Summary Preference queries with multiple hard constraints Diet sheet, tourism (overall price), planning tasks,... Optimization based on dominance criterion Additional selection operators Experimental results on USDA real-world DB Outlook Consider further optimization techniques Develop special join algorithms to avoid complete cartesian product Optimization of Preference Queries under Hard Sum Constraints PersDB 25 / 26
36 {endres, kiessling, Optimization of Preference Queries under Hard Sum Constraints PersDB 26 / 26
Optimization of Preference Queries with Multiple Constraints
Optimization of Preference Queries with Multiple Constraints Markus Endres and Werner Kießling University of Augsburg Institute for Computer Science Germany {endres,kiessling}@informatik.uni-augsburg.de
More informationEfficient Processing of Relational Queries with Sum Constraints
Efficient Processing of Relational Queries with Sum Constraints 1 Introduction As the amount of data stored and available electronically continues to grow rapidly, relational databases and their applications
More informationFoundations of Preferences in Database Systems
Foundations of Preferences in Database Systems Werner Kießling Institute of Computer Science University of Augsburg W. Kießling, 28th Intern. Conf. on Very Large Databases (VLDB 2002), Hong Kong, 21.08.02
More informationA Preference-based Recommender System
A Preference-based Recommender System Benjamin Satzger, Markus Endres, Werner Kießling University of Augsburg Institute for Computer Science EC-Web 2006 Markus Endres A Preference-based Recommender System
More informationThe Preference SQL System An Overview
The Preference SQL System An Overview Werner Kießling, Markus Endres, Florian Wenzel University of Augsburg, Institute for Computer Science 86135 Augsburg, Germany {kiessling, endres, wenzel}@informatik.uni-augsburg.de
More informationSemantic Optimization of Preference Queries
Semantic Optimization of Preference Queries Jan Chomicki University at Buffalo http://www.cse.buffalo.edu/ chomicki 1 Querying with Preferences Find the best answers to a query, instead of all the answers.
More informationUniversität Augsburg
Universität Augsburg Optimizing Preference Queries for Personalized Web Services Werner Kießling, Bernd Hafenrichter Report 2002-12 Juli 2002 Institut für Informatik D-86135 Augsburg Copyright c Werner
More informationGraph-based Algorithms for Pareto Preference Query Evaluation
à ÊÇÅÍÆ ËÀǼ Graph-based Algorithms for Pareto Preference Query Evaluation Dissertation zur Erlangung des Grades eines Doktors der Naturwissenschaften (Dr. rer. nat) der Fakultät für Angewandte Informatik
More informationImproving Query Plans. CS157B Chris Pollett Mar. 21, 2005.
Improving Query Plans CS157B Chris Pollett Mar. 21, 2005. Outline Parse Trees and Grammars Algebraic Laws for Improving Query Plans From Parse Trees To Logical Query Plans Syntax Analysis and Parse Trees
More informationRelational Databases
Relational Databases Jan Chomicki University at Buffalo Jan Chomicki () Relational databases 1 / 49 Plan of the course 1 Relational databases 2 Relational database design 3 Conceptual database design 4
More informationMath 13 Chapter 3 Handout Helene Payne. Name: 1. Assign the value to the variables so that a matrix equality results.
Matrices Name:. Assign the value to the variables so that a matrix equality results. [ [ t + 5 4 5 = 7 6 7 x 3. Are the following matrices equal, why or why not? [ 3 7, 7 4 3 4 3. Let the matrix A be defined
More informationInformationslogistik Unit 4: The Relational Algebra
Informationslogistik Unit 4: The Relational Algebra 26. III. 2012 Outline 1 SQL 2 Summary What happened so far? 3 The Relational Algebra Summary 4 The Relational Calculus Outline 1 SQL 2 Summary What happened
More information3. Relational Data Model 3.5 The Tuple Relational Calculus
3. Relational Data Model 3.5 The Tuple Relational Calculus forall quantification Syntax: t R(P(t)) semantics: for all tuples t in relation R, P(t) has to be fulfilled example query: Determine all students
More informationAccess and Print Menus Online
Access and Print Menus Online All menus are available online for viewing and printing, complete with nutritional information, meal contributions and allergy information reports. All menus and all reports
More informationPreferences in Databases. Representation Composition
Preferences in Databases Representation Composition & Application Georgia Koutrika (1), Evaggelia Pitoura (2), Kostas Stefanidis (2) (1) Stanford University, (2) University of Ioannina Introduction 2 Preferences
More informationLinear Programming Motivation: The Diet Problem
Agenda We ve done Greedy Method Divide and Conquer Dynamic Programming Network Flows & Applications NP-completeness Now Linear Programming and the Simplex Method Hung Q. Ngo (SUNY at Buffalo) CSE 531 1
More informationRelational Model, Relational Algebra, and SQL
Relational Model, Relational Algebra, and SQL August 29, 2007 1 Relational Model Data model. constraints. Set of conceptual tools for describing of data, data semantics, data relationships, and data integrity
More informationLogical Foundations of Preference Queries
Logical Foundations of Preference Queries Jan Chomicki University at Buffalo chomicki@buffalo.edu Abstract The notion of preference plays an increasing role in today s information systems. In particular,
More informationCMP-3440 Database Systems
CMP-3440 Database Systems Relational DB Languages Relational Algebra, Calculus, SQL Lecture 05 zain 1 Introduction Relational algebra & relational calculus are formal languages associated with the relational
More informationBackground material for Chapter 3 taken from CS 245
Background material for Chapter 3 taken from CS 245 contributed by Hector Garcia-Molina selected/cut by Stefan Böttcher Background CS 245 material taken from CS245 contributed Notes by Hector 4 Garcia-Molina
More informationOutline. Query Processing Overview Algorithms for basic operations. Query optimization. Sorting Selection Join Projection
Outline Query Processing Overview Algorithms for basic operations Sorting Selection Join Projection Query optimization Heuristics Cost-based optimization 19 Estimate I/O Cost for Implementations Count
More informationQuery Evaluation and Optimization
Query Evaluation and Optimization Jan Chomicki University at Buffalo Jan Chomicki () Query Evaluation and Optimization 1 / 21 Evaluating σ E (R) Jan Chomicki () Query Evaluation and Optimization 2 / 21
More informationCombining Fuzzy Information - Top-k Query Algorithms. Sanjay Kulhari
Combining Fuzzy Information - Top-k Query Algorithms Sanjay Kulhari Outline Definitions Objects, Attributes and Scores Querying Fuzzy Data Top-k query algorithms Naïve Algorithm Fagin s Algorithm (FA)
More informationMatrices. A Matrix (This one has 2 Rows and 3 Columns) To add two matrices: add the numbers in the matching positions:
Matrices A Matrix is an array of numbers: We talk about one matrix, or several matrices. There are many things we can do with them... Adding A Matrix (This one has 2 Rows and 3 Columns) To add two matrices:
More informationCopyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 6 Outline. Unary Relational Operations: SELECT and
Chapter 6 The Relational Algebra and Relational Calculus Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 6 Outline Unary Relational Operations: SELECT and PROJECT Relational
More informationIntroduction to Query Processing and Query Optimization Techniques. Copyright 2011 Ramez Elmasri and Shamkant Navathe
Introduction to Query Processing and Query Optimization Techniques Outline Translating SQL Queries into Relational Algebra Algorithms for External Sorting Algorithms for SELECT and JOIN Operations Algorithms
More informationExample Graph the inequality 2x-3y 12. Answer - start with the = part. Graph the line 2x - 3y = 12. Linear Programming: A Geometric Approach
Linear Programming: A Geometric Approach 3.1: Graphing Systems of Linear Inequalities in Two Variables Example Graph the inequality 2x-3y 12. Answer - start with the = part. Graph the line 2x - 3y = 12.
More informationWeb Science & Technologies University of Koblenz Landau, Germany. Relational Data Model
Web Science & Technologies University of Koblenz Landau, Germany Relational Data Model Overview Relational data model; Tuples and relations; Schemas and instances; Named vs. unnamed perspective; Relational
More informationSPARK: Top-k Keyword Query in Relational Database
SPARK: Top-k Keyword Query in Relational Database Wei Wang University of New South Wales Australia 20/03/2007 1 Outline Demo & Introduction Ranking Query Evaluation Conclusions 20/03/2007 2 Demo 20/03/2007
More informationDatabase Systems External Sorting and Query Optimization. A.R. Hurson 323 CS Building
External Sorting and Query Optimization A.R. Hurson 323 CS Building External sorting When data to be sorted cannot fit into available main memory, external sorting algorithm must be applied. Naturally,
More informationKelly Patterson SED 514
(1) Introduction to Databases: A database is a collection of information organized so that a computer program can quickly retrieve desired pieces of data. A field is a single piece of information; a record
More informationRelational Algebra. Procedural language Six basic operators
Relational algebra Relational Algebra Procedural language Six basic operators select: σ project: union: set difference: Cartesian product: x rename: ρ The operators take one or two relations as inputs
More informationRELATIONAL DATA MODEL: Relational Algebra
RELATIONAL DATA MODEL: Relational Algebra Outline 1. Relational Algebra 2. Relational Algebra Example Queries 1. Relational Algebra A basic set of relational model operations constitute the relational
More informationFoundations of Preferences in Database Systems
Foundations of Preferences in Database Systems Werner Kießling Institute of Computer Science University of Augsburg D-86159 Augsburg, Germany kiessling@informatik.uni-augsburg.de Abstract Personalization
More informationInstructions for Using the DAILY COOK'S SUBSTITUTE MENU
Instructions for Using the DAILY COOK'S SUBSTITUTE MENU Revised September, 2006 Several additional menu items have been developed for the three meals. These Daily Cook's Substitute Menus allow you to quickly
More informationVirtual views. Incremental View Maintenance. View maintenance. Materialized views. Review of bag algebra. Bag algebra operators (slide 1)
Virtual views Incremental View Maintenance CPS 296.1 Topics in Database Systems A view is defined by a query over base tables Example: CREATE VIEW V AS SELECT FROM R, S WHERE ; A view can be queried just
More informationTwo hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE
COMP 62421 Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Querying Data on the Web Date: Wednesday 24th January 2018 Time: 14:00-16:00 Please answer all FIVE Questions provided. They amount
More informationCollectors. Raoul-Gabriel Urma Richard Warburton James Gough
Collectors Raoul-Gabriel Urma Richard Warburton James Gough Outline of module 1. Grouping and partitioning 2. Collection operations 3. Arithmetic and reducing collectors 4. Advanced queries Grouping and
More informationHomework 1: Relational Algebra and SQL (due February 10 th, 2016, 4:00pm, in class hard-copy please)
Virginia Tech. Computer Science CS 4604 Introduction to DBMS Spring 2016, Prakash Homework 1: Relational Algebra and SQL (due February 10 th, 2016, 4:00pm, in class hard-copy please) Reminders: a. Out
More informationEvaluation of Conditional Preference Queries
Evaluation of Conditional Preference Queries Fabíola S.F. Pereira, Sandra de Amo Universidade Federal de Uberlândia, Brazil deamo@ufu.br fabfernandes@comp.ufu.br Abstract. The need for incorporating preference
More informationFASTER UPPER BOUNDING OF INTERSECTION SIZES
FASTER UPPER BOUNDING OF INTERSECTION SIZES IBM Research Tokyo - Japan Daisuke Takuma Hiroki Yanagisawa 213 IBM Outline Motivation of upper bounding Contributions Data structure Proposal Evaluation (introduce
More informationPersonalization and recommendation of OLAP queries
Personalization and recommendation of OLAP queries Patrick Marcel Université François Rabelais Tours Computer Science Lab. Uni. Bologna, 15.02.2011 1 Outline Motivation Personalizing OLAP queries Recommending
More informationDepartment/Function Modifiers
Department/Function Modifiers Append Modifier Modifiers in this selection will go to the bottom of the modifier list on a menu item. In the bottom example, the menu item includes one sauce for no additional
More informationDatabase Theory VU , SS Introduction: Relational Query Languages. Reinhard Pichler
Database Theory Database Theory VU 181.140, SS 2018 1. Introduction: Relational Query Languages Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 6 March,
More informationDistributed Databases Systems
Distributed Databases Systems Lecture No. 05 Query Processing Naeem Ahmed Email: naeemmahoto@gmail.com Department of Software Engineering Mehran Univeristy of Engineering and Technology Jamshoro Outline
More informationCMSC 424 Database design Lecture 18 Query optimization. Mihai Pop
CMSC 424 Database design Lecture 18 Query optimization Mihai Pop More midterm solutions Projects do not be late! Admin Introduction Alternative ways of evaluating a given query Equivalent expressions Different
More informationDatabase System Concepts
Chapter 13: Query Processing s Departamento de Engenharia Informática Instituto Superior Técnico 1 st Semester 2008/2009 Slides (fortemente) baseados nos slides oficiais do livro c Silberschatz, Korth
More informationCS 525: Advanced Database Organisation
SQL query CS 525: Advanced Database Organisation 09: Query Optimization Logical Boris Glavic Slides: adapted from a course taught by Hector Garcia-Molina, Stanford InfoLab CS 525 Notes 9 - Logical Optimization
More informationChapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations
Chapter 3B Objectives Relational Set Operators Learn About relational database operators SELECT & DIFFERENCE PROJECT & JOIN UNION PRODUCT INTERSECT DIVIDE The Database Meta Objects the data dictionary
More informationLittleton Public Schools Sep 12, 2016 thru Sep 30, 2016
Littleton Public Schools Sep, 6 thru Sep, 6 Base Menu Spreadsheet Lunch K- 6 Page Generated on: //6 :4: AM Mon - //6 Lunch K- 6 Chicken Teriyaki Rice Bowl Hamburger SPIRAL CUT FRIES, UN-SEAS ONED Lettuce
More informationCS 377 Database Systems
CS 377 Database Systems Relational Algebra and Calculus Li Xiong Department of Mathematics and Computer Science Emory University 1 ER Diagram of Company Database 2 3 4 5 Relational Algebra and Relational
More informationScalable Package Queries in Rela2onal Database Systems. Ma9eo Brucato Juan F. Beltran Azza Abouzied Alexandra Meliou
Scalable Package Queries in Rela2onal Database Systems Ma9eo Brucato Juan F. Beltran Azza Abouzied Alexandra Meliou Package Queries An important class of combinatorial op-miza-on queries Largely unsupported
More informationDuty/Task Crosswalk to ACF Standards
Techniques Duty/Task Crosswalk to Stards The Techniques Duty/Task Crosswalk is referenced to three American Federation () Required Knowledge Skill Competencies: 1. : American Federation Accrediting Commission
More informationWentworth Institute of Technology COMP2670 Databases Spring 2016 Derbinsky. Normalization. Lecture 9
Lecture 9 1 Outline 1. Context 2. Objectives 3. Functional Dependencies 4. Normal Forms 1NF 2NF 3NF 2 Database Design and Implementation Process 3 Theory and process by which to evaluate and improve relational
More informationPrinciples of Database Management Systems
Principles of Database Management Systems 5: Query Processing Pekka Kilpeläinen (partially based on Stanford CS245 slide originals by Hector Garcia-Molina, Jeff Ullman and Jennifer Widom) Query Processing
More informationData Structure: Relational Model
Applications View of a Relational Database Management (RDBMS) System Why applications use DBs? Persistent data structure Independent from processes using the data Also, large volume of data High-level
More informationRelational Model: History
Relational Model: History Objectives of Relational Model: 1. Promote high degree of data independence 2. Eliminate redundancy, consistency, etc. problems 3. Enable proliferation of non-procedural DML s
More informationMENU MANAGER HANDBOOK
MENU MANAGER HANDBOOK Wayne Toczek, CEO Innovations Services 102 Parson Street Norwalk, Ohio 44857 419-541-7288 http://www.innovaservices.info/ 11/14/2012 TABLE OF CONTENTS A. INSTALLING YOUR MENU MANAGER
More information: Mesh Processing. Chapter 8
600.657: Mesh Processing Chapter 8 Handling Mesh Degeneracies [Botsch et al., Polygon Mesh Processing] Class of Approaches Geometric: Preserve the mesh where it s good. Volumetric: Can guarantee no self-intersection.
More informationAlgorithms for Query Processing and Optimization. 0. Introduction to Query Processing (1)
Chapter 19 Algorithms for Query Processing and Optimization 0. Introduction to Query Processing (1) Query optimization: The process of choosing a suitable execution strategy for processing a query. Two
More informationCSIT5300: Advanced Database Systems
CSIT5300: Advanced Database Systems L10: Query Processing Other Operations, Pipelining and Materialization Dr. Kenneth LEUNG Department of Computer Science and Engineering The Hong Kong University of Science
More informationCSE 101- Winter 18 Discussion Section Week 8
CSE 101- Winter 18 Discussion Section Week 8 Topics for today Reductions Max Flow and LP Number Puzzle Circulation problem Maximum bipartite matching Bob diet plan and pill salesman USB Problem from PA3
More informationTo add something to the end of a list, we can use the append function:
4.2 Lists Creating an Empty List A list is a sequence of items. In python, a list is an ordered sequence of items, not necessarily of the same type, but typically, most lists contain items all of the same
More informationIntroduction Alternative ways of evaluating a given query using
Query Optimization Introduction Catalog Information for Cost Estimation Estimation of Statistics Transformation of Relational Expressions Dynamic Programming for Choosing Evaluation Plans Introduction
More informationAdvanced Data Management Technologies
ADMT 2017/18 Unit 13 J. Gamper 1/42 Advanced Data Management Technologies Unit 13 DW Pre-aggregation and View Maintenance J. Gamper Free University of Bozen-Bolzano Faculty of Computer Science IDSE Acknowledgements:
More informationQuery Processing and Optimization
Query Processing and Optimization (Part-1) Prof Monika Shah Overview of Query Execution SQL Query Compile Optimize Execute SQL query parse parse tree statistics convert logical query plan apply laws improved
More informationDatabase Theory VU , SS Introduction: Relational Query Languages. Reinhard Pichler
Database Theory Database Theory VU 181.140, SS 2011 1. Introduction: Relational Query Languages Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 8 March,
More informationChapter 6 The Relational Algebra and Calculus
Chapter 6 The Relational Algebra and Calculus 1 Chapter Outline Example Database Application (COMPANY) Relational Algebra Unary Relational Operations Relational Algebra Operations From Set Theory Binary
More informationIntroduction to SQL SELECT-FROM-WHERE STATEMENTS SUBQUERIES DATABASE SYSTEMS AND CONCEPTS, CSCI 3030U, UOIT, COURSE INSTRUCTOR: JAREK SZLICHTA
Introduction to SQL SELECT-FROM-WHERE STATEMENTS MULTIRELATION QUERIES SUBQUERIES 1 SQL SQL is a standard language for accessing databases. SQL stands for Structured Query Language. SQL lecture s material
More informationCS122 Lecture 4 Winter Term,
CS122 Lecture 4 Winter Term, 2014-2015 2 SQL Query Transla.on Last time, introduced query evaluation pipeline SQL query SQL parser abstract syntax tree SQL translator relational algebra plan query plan
More informationAdvanced Database Systems
Lecture IV Query Processing Kyumars Sheykh Esmaili Basic Steps in Query Processing 2 Query Optimization Many equivalent execution plans Choosing the best one Based on Heuristics, Cost Will be discussed
More informationLINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.)
LINEAR PROGRAMMING 12 INTRODUCTION ou are familiar with linear equations and linear inequations in one and two variables. They can be solved algebraically or graphically (by drawing a line diagram in case
More informationRelational Metadata Integration. Cathy Wyss
Relational Metadata Integration Cathy Wyss April 22, 2005 1 Talk Overview 1. Motivating Scenario 2. Foundations (TODS, June 2005) Federated Data Model FIRA FISQL 3. Current Work Data mapping as search
More informationImproving the Performance of OLAP Queries Using Families of Statistics Trees
Improving the Performance of OLAP Queries Using Families of Statistics Trees Joachim Hammer Dept. of Computer and Information Science University of Florida Lixin Fu Dept. of Mathematical Sciences University
More informationCS446: Machine Learning Spring Problem Set 1
CS446: Machine Learning Spring 2017 Problem Set 1 Handed Out: Jan 25 th, 2017 Due: Feb 3 rd, 2017 Feel free to talk to other members of the class in doing the homework. I am more concerned that you learn
More informationDBMS Query evaluation
Data Management for Data Science DBMS Maurizio Lenzerini, Riccardo Rosati Corso di laurea magistrale in Data Science Sapienza Università di Roma Academic Year 2016/2017 http://www.dis.uniroma1.it/~rosati/dmds/
More informationIterative Modification and Incremental Evaluation of Preference Queries
Iterative Modification and Incremental Evaluation of Preference Queries Jan Chomicki Dept. of Computer Science and Engineering, University at Buffalo, Buffalo, NY 14260-2000 chomicki@cse.buffalo.edu Abstract.
More informationThe Extended Algebra. Duplicate Elimination. Sorting. Example: Duplicate Elimination
The Extended Algebra Duplicate Elimination 2 δ = eliminate duplicates from bags. τ = sort tuples. γ = grouping and aggregation. Outerjoin : avoids dangling tuples = tuples that do not join with anything.
More informationRelational Algebra and SQL
Relational Algebra and SQL Relational Algebra. This algebra is an important form of query language for the relational model. The operators of the relational algebra: divided into the following classes:
More informationRelational Algebra. Relational Algebra. 7/4/2017 Md. Golam Moazzam, Dept. of CSE, JU
Relational Algebra 1 Structure of Relational Databases A relational database consists of a collection of tables, each of which is assigned a unique name. A row in a table represents a relationship among
More informationSolving Linear and Integer Programs
Solving Linear and Integer Programs Robert E. Bixby Gurobi Optimization, Inc. and Rice University Overview Linear Programming: Example and introduction to basic LP, including duality Primal and dual simplex
More informationCP nets: representing and reasoning with preferences of multiple agents
CP nets: representing and reasoning with preferences of multiple agents F. Rossi and K. B. Venable Dept. of Mathematics University of Padova Padova Italy frossikvenable @math.unipd.it Abstract We introduce
More information1 Relational Data Model
Prof. Dr.-Ing. Wolfgang Lehner INTELLIGENT DATABASE GROUP 1 Relational Data Model What is in the Lecture? 1. Database Usage Query Programming Design 2 Relational Model 3 The Relational Model The Relation
More information(1) Introduction to Databases:
(1) Introduction to Databases: A database is a collection of information organized so that a computer program can quickly retrieve desired pieces of data. A field is a single piece of information; a record
More informationv Conceptual Design: ER model v Logical Design: ER to relational model v Querying and manipulating data
Outline Conceptual Design: ER model Relational Algebra Calculus Yanlei Diao UMass Amherst Logical Design: ER to relational model Querying and manipulating data Practical language: SQL Declarative: say
More informationChapter 2: Intro to Relational Model
Non è possibile visualizzare l'immagine. Chapter 2: Intro to Relational Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Example of a Relation attributes (or columns)
More informationWhat happens. 376a. Database Design. Execution strategy. Query conversion. Next. Two types of techniques
376a. Database Design Dept. of Computer Science Vassar College http://www.cs.vassar.edu/~cs376 Class 16 Query optimization What happens Database is given a query Query is scanned - scanner creates a list
More informationLinear Programming Problems
Linear Programming Problems Linear inequalities are important because we often want to minimize or maximize a quantity (called the objective function) subject to certain constraints (linear inequalities).
More informationMENUS & MENU CYCLES MENU SOFTWARE MENU ENHANCEMENT NUTRITION MODULE
MENUS & MENU CYCLES MENU SOFTWARE MENU ENHANCEMENT NUTRITION MODULE USER S GUIDE Texas Department of Agriculture Revised 11/14/2017 2 OTHER RESOURCES In addition to the User s Guide:, you may use the following
More informationChapter 3. Algorithms for Query Processing and Optimization
Chapter 3 Algorithms for Query Processing and Optimization Chapter Outline 1. Introduction to Query Processing 2. Translating SQL Queries into Relational Algebra 3. Algorithms for External Sorting 4. Algorithms
More informationTo add or subtract, just add or subtract the numbers in the same column and row and place answer accordingly.
Math 3 Variable Manipulation Part 2 Systems with Matrices MATRICES An alternative method to solving system of equations is using Matrices. However, before we can solve systems of equations using matrices,
More informationSearch Engines. Information Retrieval in Practice
Search Engines Information Retrieval in Practice All slides Addison Wesley, 2008 Classification and Clustering Classification and clustering are classical pattern recognition / machine learning problems
More informationUncertain Data Models
Uncertain Data Models Christoph Koch EPFL Dan Olteanu University of Oxford SYNOMYMS data models for incomplete information, probabilistic data models, representation systems DEFINITION An uncertain data
More informationOverview of Query Processing and Optimization
Overview of Query Processing and Optimization Source: Database System Concepts Korth and Silberschatz Lisa Ball, 2010 (spelling error corrections Dec 07, 2011) Purpose of DBMS Optimization Each relational
More informationCMPS 277 Principles of Database Systems. Lecture #4
CMPS 277 Principles of Database Systems http://www.soe.classes.edu/cmps277/winter10 Lecture #4 1 First-Order Logic Question: What is First-Order Logic? Answer: Informally, First-Order Logic = Propositional
More informationXML and Databases. Outline. Outline - Lectures. Outline - Assignments. from Lecture 3 : XPath. Sebastian Maneth NICTA and UNSW
Outline XML and Databases Lecture 10 XPath Evaluation using RDBMS 1. Recall / encoding 2. XPath with //,, @, and text() 3. XPath with / and -sibling: use / size / level encoding Sebastian Maneth NICTA
More informationEfficient Throughput-Guarantees for Latency-Sensitive Networks-On-Chip
ASP-DAC 2010 20 Jan 2010 Session 6C Efficient Throughput-Guarantees for Latency-Sensitive Networks-On-Chip Jonas Diemer, Rolf Ernst TU Braunschweig, Germany diemer@ida.ing.tu-bs.de Michael Kauschke Intel,
More informationOLAP Query personalisation and recommendation: an introduction. Patrick Marcel, Université François Rabelais Tours Laboratoire d Informatique
OLAP Query personalisation and : an introduction Patrick Marcel, Université François Rabelais Tours Laboratoire d Informatique Outline Introduction Query personalisation Basics on preferences Overview
More informationOLAP Query Personalization
OLAP Query Personalization 6th Conference on Data Warehousing and On-Line Analysis Djerba 11, June Matteo Golfarelli DEIS University of Bologna Summary OLAP query evolution and improvements Query personalization
More informationIntroduction to Database Systems CSE 444
Introduction to Database Systems CSE 444 Lecture 18: Query Processing Overview CSE 444 - Summer 2010 1 Where We Are We are learning how a DBMS executes a query How come a DBMS can execute a query so fast?
More information