1 12. Implementation Methods Evaluation with gap-graphs Gap-graphs – visually represents a conjunctions of difference constraints.

Slides:



Advertisements
Similar presentations
Representing Relations Rosen 7.3. Using Matrices For finite sets we can use zero-one matrices. Elements of each set A and B must be listed in some particular.
Advertisements

CSE115/ENGR160 Discrete Mathematics 04/26/12 Ming-Hsuan Yang UC Merced 1.
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
T-3 Histograms. Histogram Basics A histogram is a special type of bar graph that measures the frequency of data Horizontal axis: represents values in.
NP and NP Complete. Definitions A problem is in the class P if there is a polynomial time solution to the problem A problem is in the class NP if there.
1 9. Evaluation of Queries Query evaluation – Quantifier Elimination and Satisfiability Example: Logical Level: r   y 1,…y n  r’ Constraint.
A Dash of Limits. Objectives Students will be able to Calculate a limit using a table and a calculator Calculate a limit requiring algebraic manipulation.
NP-Completeness (2) NP-Completeness Graphs 4/17/2017 6:25 AM x x x x x
Traveling-Salesman Problems
Objectives: Set up a Linear Programming Problem Solve a Linear Programming Problem.
Dilations.
Chapter 4 Graphs.
Section 1.2 Isomorphisms By Christina Touhey and Sarah Graham.
Warm Up 1. 5x – 2 when x = – t 2 when 3. when x = Give the domain and range for this relation: {(1, 1), (–1, 1), (2, 4), (–2, 4),
Algebra 2. Graph the relation {(–3, 3), (2, 2), (–2, –2), (0, 4), (1, –2)}. Lesson 2-1 Relations and Functions Graph and label each ordered pair. Additional.
Applied Discrete Mathematics Week 10: Equivalence Relations
Solving and Graphing Absolute-Value Equations and Inequalities 2-8,9
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
Chapter 4 Relations and Digraphs
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Sets.
Do Now: Evaluate: 3AB. Algebra II 3.7: Evaluate Determinants HW: p.207 (4-14 even) Test : Friday, 12/6.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Unit 1.6 – Linear Programming Ummmmm…yeah…I’m going to need you to go ahead and get out your notes…thanks..
Linear Programming Solving Systems of Equations with 3 Variables Inverses & Determinants of Matrices Cramer’s Rule.
Warm Up Solve |x – 5| = 4 x – 5 = 4 or x – 5 =
Relations. Important Definitions We covered all of these definitions on the board on Monday, November 7 th. Definition 1 Definition 2 Definition 3 Definition.
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Relations. L222 Agenda –Relations 7.3 Representing Relations As subsets of Cartesian products Column/line diagrams Boolean matrix Digraph Operations on.
Some sets of ordered pairs can be described by using an equation. When the set of ordered pairs described by an equation satisfies the definition of a.
Algebra 1 Relations and Functions A Relation is a set of ordered pairs. The Domain of a relation is the set of first coordinates of the ordered pairs.
Section 7.3: Representing Relations In this section, we will cover two ways to represent a relation over a finite set other than simply listing the relation.
SYSTEMS OF LINEAR EQUATIONS College Algebra. Graphing and Substitution Solving a system by graphing Types of systems Solving by substitution Applications.
ALGEBRA READINESS LESSON 8-4 Warm Up Lesson 8-4 Warm-Up.
Unit 1.11 – Use Inverse Matrices to Solve Linear Systems
EMIS 8373: Integer Programming Combinatorial Optimization Problems updated 27 January 2005.
Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation is a relation on.
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
8-2 Characteristics of Quadratic Functions Warm Up Lesson Presentation
15. Directed graphs and networks
Review Problems Matrices
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Systems of Equations Lesson 41: Solve by using a matrix
NP-Completeness (36.4-5/34.4-5)
Boolean Expressions Lecture No. 10.
Applied Discrete Mathematics Week 10: Equivalence Relations
Relations and Functions
VERTICAL LINE TEST GRAPHS can represent functions.
ALGEBRA II HONORS/GIFTED SECTION 3-4 : LINEAR PROGRAMMING
Linear Systems Chapter 3.
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
CSE140 HW2 Preparation Xinyuan Wang 04/20/2018.
Walks, Paths, and Circuits
Relations and Functions
Warm Up Solve for x:
y x y = x + 2 y = x + 4 y = x – 1 y = -x – 3 y = 2x y = ½x y = 3x + 1
Additional Example 2: Graphing Ordered Pairs Graph and label each point on a coordinate grid. A. L (3, 5) Start at (0, 0)
Polygon of constraints L.O. graph the polygon of constraints
Graphs G = (V, E) V are the vertices; E are the edges.
VERTICAL LINE TEST GRAPHS can represent functions.
Functions Unit Pre-Algebra.
Nature does nothing uselessly.
Lesson 1.7 Represent Functions as Graphs
Section Linear Programming
Graph Vocabulary.
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Equations & Graphing Algebra 1, Unit 3, Lesson 5.
Presentation transcript:

1 12. Implementation Methods Evaluation with gap-graphs Gap-graphs – visually represents a conjunctions of difference constraints

2 Shortcut – u a+b v if u a x and x b v

3 Merge – union vertices and edges from both input gap-order graphs. If some edge occurs but different labels, then keep larger label. Relation algebra on set of gap-graphs – can be defined based on shortcut and merge.

4 Evaluation with matrices Matrix representation of first gap-graph: Question: how can we test satisfiability of a gap- graph ? 0x1x1 x2x2 x3x3 x4x4 x5x5 x6x6 0 -  1 x1x  x2x2 2 3 x3x  x4x  3 x5x  x6x6 3

5 Question: how can we shortcut a vertex ? Question: how can we merge two gap-graph ? 0x2x2 x3x3 x4x4 x5x5 x6x6 0 -  1 x2x2 2 3 x3x  x4x  3 x5x  x6x6 3

6 Question: how do we evaluate datalog queries ? Question: how do we find complement and difference ?

7 Boolean constraints –Set-graphs – represent conjunction of subset constraints

8 Pairs of matrices for each set-graph Question: how do we test satisfiability ?

9 Optimization of relational algebra –Perform selection and projection as early as possible by applying algebraic rewrite rules.