Drawing Trees on Fixed Points with L-shaped Edges

Size: px
Start display at page:

Download "Drawing Trees on Fixed Points with L-shaped Edges"

Transcription

1 Drawing Trees on Fixed Points with L-shaped Edges Martin Derka David R. Cheriton School of Computer Science University of Waterloo GD 2017 September 26, 2017 Joint work with T. Biedl, T. Chan, K. Jain, A. Lubiw. Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 1/18

2 Goal: Draw a tree on a fixed set of points in general position so that every edge has the shape of an L. Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 2/18

3 Goal: Draw a tree on a fixed set of points in general position so that every edge has the shape of an L. How many points do you need so that any tree can be drawn this way? Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 2/18

4 O(n 2 ) points always suffice for planar graphs [de Fraysseix et al., Schnyder, 1990] Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 3/18

5 O(n 2 ) points always suffice for planar graphs [de Fraysseix et al., Schnyder, 1990] Lower bound c n for some c > 1 for planar graphs [Chrobak + Karloff, 1989] Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 3/18

6 O(n 2 ) points always suffice for planar graphs [de Fraysseix et al., Schnyder, 1990] Lower bound c n for some c > 1 for planar graphs Maximum degree 4 graphs studied first in 2010 [Chrobak + Karloff, 1989] [Katz et al., 2010] Any tree of maximum degree 4 can be embedded on n 2 2n + 2 points [Di Giacomo et al., 2013] Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 3/18

7 O(n 2 ) points always suffice for planar graphs [de Fraysseix et al., Schnyder, 1990] Lower bound c n for some c > 1 for planar graphs Maximum degree 4 graphs studied first in 2010 [Chrobak + Karloff, 1989] [Katz et al., 2010] Any tree of maximum degree 4 can be embedded on n 2 2n + 2 points [Di Giacomo et al., 2013] O(n log ) points suffice for any maximum degree 4 tree [Aichholzer et al., 2016] Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 3/18

8 O(n 2 ) points always suffice for planar graphs [de Fraysseix et al., Schnyder, 1990] Lower bound c n for some c > 1 for planar graphs Maximum degree 4 graphs studied first in 2010 [Chrobak + Karloff, 1989] [Katz et al., 2010] Any tree of maximum degree 4 can be embedded on n 2 2n + 2 points [Di Giacomo et al., 2013] O(n log ) points suffice for any maximum degree 4 tree Nothing better known for maximum degree 3 trees [Aichholzer et al., 2016] Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 3/18

9 Our paper: Improvements on pointsets sufficient to draw maximum degree 3 and 4 trees This talk: Maximum degree 3 trees (binary trees) Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 4/18

10 Main idea: Draw the tree inside a rectangle. Partition the tree inside subrectangles and draw the subtrees recursively inside those. Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 5/18

11 1 f -configuration: downward ray into Q is reserved f (n): the number of points sufficient to draw a tree Q p f(n) f (c) p g Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 6/18

12 r 1 b 2 1 f -configuration: downward ray into Q is reserved f (n): the number of points sufficient to draw p a tree 2 g-configuration: rightward ray with Qbend into Q is reserved, and possibly also downward if the position of p allows f(n) (c) g(n): the number of points sufficient to draw a tree r k 2 f b) a k 1 b k 1 a k Q p r f k 1 b k f(n) rk (c) p Q g(n) g (d) p g Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 6/18

13 Drawing method f -draw-1 Assume that Q has f (n) points. h: the highest half-grid line s.t. Q L or Q R has f (n 1 ) points r 0 : the bottommost point of Q L Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 7/18

14 Observe that: f (n) 2f (n 1 ) + g(n 2 ) f (n) 2g(n 1 ) + f (n 2 ) by swapping f and g Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 8/18

15 Drawing method g-draw Assume that Q has g(n) points. h: the highest half-grid line s.t. top rectangle Q A has f (n 1 ) points r 0 : the rightmost point of Q A Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 9/18

16 Observe: if a point right of p exists: g(n) f (n 1 ) + g(n 2 ) Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 10/18

17 Observe: if a point right of p exists: g(n) f (n 1 ) + g(n 2 ) if no point right of p exists: use f -draw-1 with Q R empty, so: g(n) f (n 1 ) + g(n 2 ) Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 10/18

18 Drawing method f -draw-2 Assume that Q has f (n) points. h: the highest half-grid line s.t. Q L or Q R has g(n 1 ) points two cases depending on size of Q R Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 11/18

19 Drawing method f -draw-2 Assume that Q has f (n) points. h: the highest half-grid line s.t. Q L or Q R has g(n 1 ) points Case 1: Q R < g(n 2,1 ): Use g(n 1 ) + g(n 2,1 ) + f (n 2 ) 1 points p p Q R Q A Q L T 1 Q R h T 1 f r 0 g h Q B g p 1 f Q B T 2 T 2 (b) Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 12/18 (c)

20 Assume that Q has f (n) points. Drawing method f -draw-2 h: the highest half-grid line s.t. Q L or Q R has g(n 1 ) points Case 2: Q R g(n 2,1 ), k n Di Giacomo et al.: any tree of can be embedded on a diagonal point set with n points Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 13/18

21 Drawing method f -draw-2 Assume that Q has f (n) points. h: the highest half-grid line s.t. Q L or Q R has g(n 1 ) points Case 2: Q R g(n 2,1 ), k < n: 2g(n 1 ) + n + f (n 2,2 ) 1 points Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 14/18

22 Putting everything together: 1 f (n) 2f (n 1 ) + g(n 2 ) 2 f (n) 2g(n 1 ) + f (n 2 ) 3 g(n) f (n 1 ) + g(n 2 ) 4 f (n) max{g(n 1 ) + g(n 2,1 ) + f (n 2 ), 2g(n 1 ) + f (n 2,2 ) + n} Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 15/18

23 Putting everything together: 1 f (n) 2f (n 1 ) + g(n 2 ) 2 f (n) 2g(n 1 ) + f (n 2 ) 3 g(n) f (n 1 ) + g(n 2 ) 4 f (n) max{g(n 1 ) + g(n 2,1 ) + f (n 2 ), 2g(n 1 ) + f (n 2,2 ) + n} Theorem: Any perfect binary tree with n nodes has an L-shaped drawing on any point set of size c n for some constant c. Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 15/18

24 Putting everything together: 1 f (n) 2f (n 1 ) + g(n 2 ) 2 f (n) 2g(n 1 ) + f (n 2 ) 3 g(n) f (n 1 ) + g(n 2 ) 4 f (n) max{g(n 1 ) + g(n 2,1 ) + f (n 2 ), 2g(n 1 ) + f (n 2,2 ) + n} Theorem: Any perfect binary tree with n nodes has an L-shaped drawing on any point set of size c n for some constant c. Theorem: Any binary tree with n nodes has an L-shaped drawing on any point set of size c n 1.22 for some constant c. Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 15/18

25 Summary of the results The follwing number of points are sufficient for L-drawing of any with n points: previous new deg 3 perfect n n deg 3 general n n 1.22 deg 4 perfect n deg 4 general n n 1.55 Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 16/18

26 Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 17/18

27 Summary of the results The follwing number of points are sufficient for L-drawing of any with n points: previous new deg 3 perfect n n deg 3 general n n 1.22 deg 4 perfect n deg 4 general n n 1.55 Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 18/18

28 Summary of the results The follwing number of points are sufficient for L-drawing of any with n points: previous new deg 3 perfect n n deg 3 general n n 1.22 deg 4 perfect n deg 4 general n n 1.55 Ordered caterpillars: c n log n points for some constant c Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 18/18

29 Summary of the results The follwing number of points are sufficient for L-drawing of any with n points: previous new deg 3 perfect n n deg 3 general n n 1.22 deg 4 perfect n deg 4 general n n 1.55 Ordered caterpillars: c n log n points for some constant c Thank you! Martin Derka Drawing Trees on Fixed Points with L-shaped Edges 18/18

EPG-representations with small grid-size

EPG-representations with small grid-size EPG-representations with small grid-size Martin Derka mderka@uwaterloo.ca David R. Cheriton School of Computer Science University of Waterloo GD 2017 September 26, 2017 Joint work with T. Biedl, V. Dujmovic,

More information

Combinatorial Properties of Triangle-Free Rectangle Arrangements and the Squarability Problem

Combinatorial Properties of Triangle-Free Rectangle Arrangements and the Squarability Problem Combinatorial Properties of Triangle-Free Rectangle Arrangements and the Squarability Problem Jonathan Klawitter Martin Nöllenburg Torsten Ueckerdt Karlsruhe Institute of Technology September 25, 2015

More information

Patrizio Angelini, Giordano Da Lozzo, Giuseppe Di Battista, Fabrizio Frati, Maurizio Patrignani, Vincenzo Roselli

Patrizio Angelini, Giordano Da Lozzo, Giuseppe Di Battista, Fabrizio Frati, Maurizio Patrignani, Vincenzo Roselli Patrizio Angelini, Giordano Da Lozzo, Giuseppe Di Battista, Fabrizio Frati, Maurizio Patrignani, Vincenzo Roselli Graph G = (V,E) Vertices are points Edges are straight-line segments Planar: edges

More information

Accepting that the simple base case of a sp graph is that of Figure 3.1.a we can recursively define our term:

Accepting that the simple base case of a sp graph is that of Figure 3.1.a we can recursively define our term: Chapter 3 Series Parallel Digraphs Introduction In this chapter we examine series-parallel digraphs which are a common type of graph. They have a significant use in several applications that make them

More information

Morphing Planar Graph Drawings

Morphing Planar Graph Drawings Morphing Planar Graph Drawings Giuseppe Di Battista Università degli Studi Roma Tre The 12th International Conference and Workshops on Algorithms and Computation WALCOM 2018 Basic definitions Graph drawing

More information

Lectures 8/9. 1 Overview. 2 Prelude:Routing on the Grid. 3 A couple of networks.

Lectures 8/9. 1 Overview. 2 Prelude:Routing on the Grid. 3 A couple of networks. U.C. Berkeley CS273: Parallel and Distributed Theory Lectures 8/9 Professor Satish Rao September 23,2010 Lecturer: Satish Rao Last revised October 23, 2010 Lectures 8/9 1 Overview We will give a couple

More information

UNIVERSITÀ DEGLI STUDI DI ROMA TRE Dipartimento di Informatica e Automazione. Constrained Simultaneous and Near-Simultaneous Embeddings

UNIVERSITÀ DEGLI STUDI DI ROMA TRE Dipartimento di Informatica e Automazione. Constrained Simultaneous and Near-Simultaneous Embeddings R O M A TRE DIA UNIVERSITÀ DEGLI STUDI DI ROMA TRE Dipartimento di Informatica e Automazione Via della Vasca Navale, 79 00146 Roma, Italy Constrained Simultaneous and Near-Simultaneous Embeddings FABRIZIO

More information

Module 4: Priority Queues

Module 4: Priority Queues Module 4: Priority Queues CS 240 Data Structures and Data Management T. Biedl K. Lanctot M. Sepehri S. Wild Based on lecture notes by many previous cs240 instructors David R. Cheriton School of Computer

More information

Linear-Time Algorithms for Proportional Contact Graph Representations

Linear-Time Algorithms for Proportional Contact Graph Representations Linear-Time Algorithms for Proportional Contact Graph Representations Technical Report CS-2011-19 Md. J. Alam ½, T. Biedl ¾, S. Felsner, A. Gerasch, M. Kaufmann, and S. G. Kobourov ½ ¾ ½ Department of

More information

Planar Octilinear Drawings with One Bend Per Edge

Planar Octilinear Drawings with One Bend Per Edge Journal of Graph Algorithms and Applications http://jgaa.info/ vol. 19, no. 2, pp. 0 0 (2015) DOI: 10.7155/jgaa.00369 Planar Octilinear Drawings with One Bend Per Edge M. A. Bekos 1 M. Gronemann 2 M. Kaufmann

More information

On Graphs Supported by Line Sets

On Graphs Supported by Line Sets On Graphs Supported by Line Sets Vida Dujmović, William Evans, Stephen Kobourov, Giuseppe Liotta, Christophe Weibel, and Stephen Wismath School of Computer Science Carleton University cgm.cs.mcgill.ca/

More information

Straight-Line Drawings of Binary Trees with Linear Area and Arbitrary Aspect Ratio

Straight-Line Drawings of Binary Trees with Linear Area and Arbitrary Aspect Ratio Straight-Line Drawings of Binary Trees with Linear Area and Arbitrary Aspect Ratio (Extended Abstract) Ashim Garg and Adrian Rusu Department of Computer Science and Engineering University at Buffalo Buffalo,

More information

Section A Transformations of Graphs Grade A*

Section A Transformations of Graphs Grade A* Name: Teacher Assessment Section A Grade A*. The diagram shows the graph of = for. 5 5 5 Each of the graphs below is a transformation of this graph. Write down the equation of each graph. 5 (a) 5 (b) 5

More information

21# 33# 90# 91# 34# # 39# # # 31# 98# 0# 1# 2# 3# 4# 5# 6# 7# 8# 9# 10# #

21# 33# 90# 91# 34# # 39# # # 31# 98# 0# 1# 2# 3# 4# 5# 6# 7# 8# 9# 10# # 1. Prove that n log n n is Ω(n). York University EECS 11Z Winter 1 Problem Set 3 Instructor: James Elder Solutions log n n. Thus n log n n n n n log n n Ω(n).. Show that n is Ω (n log n). We seek a c >,

More information

Rank-Pairing Heaps. Bernard Haeupler Siddhartha Sen Robert E. Tarjan. SIAM JOURNAL ON COMPUTING Vol. 40, No. 6 (2011), pp.

Rank-Pairing Heaps. Bernard Haeupler Siddhartha Sen Robert E. Tarjan. SIAM JOURNAL ON COMPUTING Vol. 40, No. 6 (2011), pp. Rank-Pairing Heaps Bernard Haeupler Siddhartha Sen Robert E. Tarjan Presentation by Alexander Pokluda Cheriton School of Computer Science, University of Waterloo, Canada SIAM JOURNAL ON COMPUTING Vol.

More information

Recitation 9. Prelim Review

Recitation 9. Prelim Review Recitation 9 Prelim Review 1 Heaps 2 Review: Binary heap min heap 1 2 99 4 3 PriorityQueue Maintains max or min of collection (no duplicates) Follows heap order invariant at every level Always balanced!

More information

How much space does this routine use in the worst case for a given n? public static void use_space(int n) { int b; int [] A;

How much space does this routine use in the worst case for a given n? public static void use_space(int n) { int b; int [] A; How much space does this routine use in the worst case for a given n? public static void use_space(int n) { int b; int [] A; } if (n

More information

2-Layer Fan-planarity: From Caterpillar to Stegosaurus

2-Layer Fan-planarity: From Caterpillar to Stegosaurus 2-Layer Fan-planarity: From Caterpillar to Stegosaurus Carla Binucci 1, Markus Chimani 2, Walter Didimo 1, Martin Gronemann 3, Karsten Klein 4, Jan Kratochvil 5, Fabrizio Montecchiani 1, Ioannis G. Tollis

More information

Planar Open Rectangle-of-Influence Drawings with Non-aligned Frames

Planar Open Rectangle-of-Influence Drawings with Non-aligned Frames Planar Open Rectangle-of-Influence Drawings with Non-aligned Frames Soroush Alamdari and Therese Biedl David R. Cheriton School of Computer Science, University of Waterloo {s6hosse,biedl}@uwaterloo.ca

More information

University of Waterloo CS240R Fall 2017 Solutions to Review Problems

University of Waterloo CS240R Fall 2017 Solutions to Review Problems University of Waterloo CS240R Fall 2017 Solutions to Review Problems Reminder: Final on Tuesday, December 12 2017 Note: This is a sample of problems designed to help prepare for the final exam. These problems

More information

Graph Drawing via Canonical Orders

Graph Drawing via Canonical Orders Algorithms for Graph Visualization Summer Semester 2016 Lecture # 3 Graph Drawing via Canonical Orders (Partly based on lecture slides by Philipp Kindermann & Alexander Wolff) 1 Outline Planar Graphs:

More information

Partitions of Graphs into Trees

Partitions of Graphs into Trees Partitions of Graphs into Trees Therese Biedl and Franz J. Brandenburg School of Computer Science, University of Waterloo, NL3G, Canada biedl@uwaterloo.ca Lehrstuhl für Informatik, Universität Passau,

More information

Theoretical Computer Science

Theoretical Computer Science Theoretical Computer Science 408 (2008) 129 142 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs Drawing colored graphs on colored points

More information

Unit #3: Quadratic Functions Lesson #13: The Almighty Parabola. Day #1

Unit #3: Quadratic Functions Lesson #13: The Almighty Parabola. Day #1 Algebra I Unit #3: Quadratic Functions Lesson #13: The Almighty Parabola Name Period Date Day #1 There are some important features about the graphs of quadratic functions we are going to explore over the

More information

Approximation Algorithms for Geometric Intersection Graphs

Approximation Algorithms for Geometric Intersection Graphs Approximation Algorithms for Geometric Intersection Graphs Subhas C. Nandy (nandysc@isical.ac.in) Advanced Computing and Microelectronics Unit Indian Statistical Institute Kolkata 700108, India. Outline

More information

Three-Dimensional Grid Drawings of Graphs

Three-Dimensional Grid Drawings of Graphs Three-Dimensional Grid Drawings of Graphs J&nos Pach*, Torsten Thiele ~ and G~za T6th ~-~ Courant Institute, New York University Abstract. A three-dimensional grid drawing of ~, graph G is a placement

More information

The width is cm 2 marks. 2 a Measure the length of the line in millimetres. b Mark with an arrow ( ) the midpoint of the line.

The width is cm 2 marks. 2 a Measure the length of the line in millimetres. b Mark with an arrow ( ) the midpoint of the line. GM End-of-unit Test Measure the sides of this rectangle. The length is cm The width is cm 2 a Measure the length of the line in millimetres. mm Mark with an arrow ( ) the midpoint of the line. c This is

More information

Straight-Line Drawings on Restricted Integer Grids in Two and Three Dimensions

Straight-Line Drawings on Restricted Integer Grids in Two and Three Dimensions Straight-Line Drawings on Restricted Integer Grids in Two and Three Dimensions (Extended Abstract) Stefan Felsner 1, Giuseppe Liotta 2, and Stephen Wismath 3 1 Freie Universität Berlin, Fachbereich Mathematik

More information

Total Score /1 /20 /41 /15 /23 Grader

Total Score /1 /20 /41 /15 /23 Grader NAME: NETID: CS2110 Spring 2015 Prelim 2 April 21, 2013 at 5:30 0 1 2 3 4 Total Score /1 /20 /41 /15 /23 Grader There are 5 questions numbered 0..4 on 8 pages. Check now that you have all the pages. Write

More information

STRAIGHT LINE ORTHOGONAL DRAWINGS OF COMPLETE TERNERY TREES SPUR FINAL PAPER, SUMMER July 29, 2015

STRAIGHT LINE ORTHOGONAL DRAWINGS OF COMPLETE TERNERY TREES SPUR FINAL PAPER, SUMMER July 29, 2015 STRIGHT LINE ORTHOGONL DRWINGS OF COMPLETE TERNERY TREES SPUR FINL PPER, SUMMER 2015 SR LI MENTOR: SYLVIN CRPENTIER PROJECT SUGGESTED Y LRRY GUTH July 29, 2015 bstract. In this paper we study embeddings

More information

Module 2: Priority Queues

Module 2: Priority Queues Module 2: Priority Queues CS 240 Data Structures and Data Management T. Biedl K. Lanctot M. Sepehri S. Wild Based on lecture notes by many previous cs240 instructors David R. Cheriton School of Computer

More information

Relations and Graphs

Relations and Graphs s and are Pictures of (Binary) s E. Wenderholm Department of Computer Science SUNY Oswego c 2016 Elaine Wenderholm All rights Reserved Outline 1 A Function that returns a boolean Special Properties of

More information

COMP 103 RECAP-TODAY. Priority Queues and Heaps. Queues and Priority Queues 3 Queues: Oldest out first

COMP 103 RECAP-TODAY. Priority Queues and Heaps. Queues and Priority Queues 3 Queues: Oldest out first COMP 0 Priority Queues and Heaps RECAP RECAP-TODAY Tree Structures (in particular Binary Search Trees (BST)) BSTs idea nice way to implement a Set, Bag, or Map TODAY Priority Queue = variation on Queue

More information

Picket Patterns. Overview

Picket Patterns. Overview Ornamental Pro 2010 Rail Section and Picket Pattern Drawing Manual Table of Contents Picket Patterns... 1 Overview... 1 Creating a Picket Pattern... 2 Example 1... 2 Vertical Bar Behavior... 2 Example

More information

Binary Space Partition Trees. Overview. Binary Space Partitioning Trees (Fuchs, Kedem and Naylor `80)

Binary Space Partition Trees. Overview. Binary Space Partitioning Trees (Fuchs, Kedem and Naylor `80) Binary Space Partition Trees Anthony Steed, Yiorgos Chrysanthou 999-200, Celine Loscos 200, Jan Kautz 2007-2009 Overview Previous list priority algorithms fail in a number of cases, non of them is completely

More information

Extra Practice Problems 2

Extra Practice Problems 2 CS103 Handout 31 Fall 2018 October 29, 2018 Extra Practice Problems 2 Here's a set of a bunch of practice problems you can work through to solidify your understanding of the topics from Problem Sets Three,

More information

Testing Bipartiteness of Geometric Intersection Graphs David Eppstein

Testing Bipartiteness of Geometric Intersection Graphs David Eppstein Testing Bipartiteness of Geometric Intersection Graphs David Eppstein Univ. of California, Irvine School of Information and Computer Science Intersection Graphs Given arrangement of geometric objects,

More information

DRAWING PLANAR GRAPHS WITH PRESCRIBED FACE AREAS

DRAWING PLANAR GRAPHS WITH PRESCRIBED FACE AREAS DRAWING PLANAR GRAPHS WITH PRESCRIBED FACE AREAS Linda Kleist Abstract. We study straight-line drawings of planar graphs where every inner face has a prescribed area. A plane graph is area-universal if

More information

Module 2: Priority Queues

Module 2: Priority Queues Module 2: Priority Queues CS 240 Data Structures and Data Management T. Biedl K. Lanctot M. Sepehri S. Wild Based on lecture notes by many previous cs240 instructors David R. Cheriton School of Computer

More information

Polygon decomposition. Motivation: Art gallery problem

Polygon decomposition. Motivation: Art gallery problem CG Lecture 3 Polygon decomposition 1. Polygon triangulation Triangulation theory Monotone polygon triangulation 2. Polygon decomposition into monotone pieces 3. Trapezoidal decomposition 4. Convex decomposition

More information

Priority Queues. 1 Introduction. 2 Naïve Implementations. CSci 335 Software Design and Analysis III Chapter 6 Priority Queues. Prof.

Priority Queues. 1 Introduction. 2 Naïve Implementations. CSci 335 Software Design and Analysis III Chapter 6 Priority Queues. Prof. Priority Queues 1 Introduction Many applications require a special type of queuing in which items are pushed onto the queue by order of arrival, but removed from the queue based on some other priority

More information

CS6100: Topics in Design and Analysis of Algorithms

CS6100: Topics in Design and Analysis of Algorithms CS6100: Topics in Design and Analysis of Algorithms Guarding and Triangulating Polygons John Augustine CS6100 (Even 2012): Guarding and Triangulating Polygons The Art Gallery Problem A simple polygon is

More information

Here is a recursive algorithm that solves this problem, given a pointer to the root of T : MaxWtSubtree [r]

Here is a recursive algorithm that solves this problem, given a pointer to the root of T : MaxWtSubtree [r] CSE 101 Final Exam Topics: Order, Recurrence Relations, Analyzing Programs, Divide-and-Conquer, Back-tracking, Dynamic Programming, Greedy Algorithms and Correctness Proofs, Data Structures (Heap, Binary

More information

T. Biedl and B. Genc. 1 Introduction

T. Biedl and B. Genc. 1 Introduction Complexity of Octagonal and Rectangular Cartograms T. Biedl and B. Genc 1 Introduction A cartogram is a type of map used to visualize data. In a map regions are displayed in their true shapes and with

More information

4 Fractional Dimension of Posets from Trees

4 Fractional Dimension of Posets from Trees 57 4 Fractional Dimension of Posets from Trees In this last chapter, we switch gears a little bit, and fractionalize the dimension of posets We start with a few simple definitions to develop the language

More information

Triangle-Free Penny Graphs: Degeneracy, Choosability, and Edge Count

Triangle-Free Penny Graphs: Degeneracy, Choosability, and Edge Count Triangle-Free Penny Graphs: Degeneracy, Choosability, and Edge Count David Eppstein 25th International Symposium on Graph Drawing & Network Visualization Boston, Massachusetts, September 2017 Circle packing

More information

arxiv: v2 [cs.cg] 27 Sep 2015

arxiv: v2 [cs.cg] 27 Sep 2015 Graph Drawings with One Bend and Few Slopes Kolja Knauer 1, and Bartosz Walczak 2, arxiv:1506.04423v2 [cs.cg] 27 Sep 2015 1 Aix-Marseille Université, CNRS, LIF UMR 7279, Marseille, France kolja.knauer@lif.univ-mrs.fr

More information

ALTERNATING PATHS AND CYCLES OF MINIMUM LENGTH. William Evans. Giuseppe Liotta. Henk Meijer. Stephen Wismath

ALTERNATING PATHS AND CYCLES OF MINIMUM LENGTH. William Evans. Giuseppe Liotta. Henk Meijer. Stephen Wismath ALTERNATING PATHS AND CYCLES OF MINIMUM LENGTH William Evans University of British Columbia, Canada Giuseppe Liotta Universitá degli Studi di Perugia, Italy Henk Meijer U. C. Roosevelt, the Netherlands

More information

Colored Simultaneous Geometric Embeddings and Universal Pointsets

Colored Simultaneous Geometric Embeddings and Universal Pointsets Algorithmica (2011) 60: 569 592 DOI 10.1007/s00453-010-9433-x Colored Simultaneous Geometric Embeddings and Universal Pointsets Ulrik Brandes Cesim Erten Alejandro Estrella-Balderrama J. Joseph Fowler

More information

Module 8: Range-Searching in Dictionaries for Points

Module 8: Range-Searching in Dictionaries for Points Module 8: Range-Searching in Dictionaries for Points CS 240 Data Structures and Data Management T. Biedl K. Lanctot M. Sepehri S. Wild Based on lecture notes by many previous cs240 instructors David R.

More information

Turning Orthogonally Convex Polyhedra into Orthoballs

Turning Orthogonally Convex Polyhedra into Orthoballs Turning Orthogonally Convex Polyhedra into Orthoballs Fidel Barrera-Cruz, Therese Biedl, Martin Derka, Stephen Kiazyk, Anna Lubiw, Hamideh Vosoughpour Abstract As a step towards characterizing the graphs

More information

AMS 345/CSE 355 Computational Geometry

AMS 345/CSE 355 Computational Geometry AMS 345/CSE 355 Computational Geometry Lecture: Polygons, Guarding Joe Mitchell Do You Like Puzzles? Come to the new Stony Brook Puzzle Society Meets: Friday 1:05-2:30 pm at CSE 2120 Organizer: Pramod

More information

Planar Point Location

Planar Point Location C.S. 252 Prof. Roberto Tamassia Computational Geometry Sem. II, 1992 1993 Lecture 04 Date: February 15, 1993 Scribe: John Bazik Planar Point Location 1 Introduction In range searching, a set of values,

More information

Compatible Paths on Labelled Point Sets

Compatible Paths on Labelled Point Sets Compatible Paths on Labelled Point Sets Elena Arseneva Yeganeh Bahoo Ahmad Biniaz Pilar Cano Farah Chanchary John Iacono Kshitij Jain Anna Lubiw Debajyoti Mondal Khadijeh Sheikhan Csaba D. Tóth Abstract

More information

Straight-Line Drawings of 2-Outerplanar Graphs on Two Curves

Straight-Line Drawings of 2-Outerplanar Graphs on Two Curves Straight-Line Drawings of 2-Outerplanar Graphs on Two Curves (Extended Abstract) Emilio Di Giacomo and Walter Didimo Università di Perugia ({digiacomo,didimo}@diei.unipg.it). Abstract. We study how to

More information

QuickSort

QuickSort QuickSort 7 4 9 6 2 2 4 6 7 9 4 2 2 4 7 9 7 9 2 2 9 9 1 QuickSort QuickSort on an input sequence S with n elements consists of three steps: n n n Divide: partition S into two sequences S 1 and S 2 of about

More information

The complexity of Domino Tiling

The complexity of Domino Tiling The complexity of Domino Tiling Therese Biedl Abstract In this paper, we study the problem of how to tile a layout with dominoes. For non-coloured dominoes, this can be determined easily by testing whether

More information

Exemples of LCP. (b,3) (c,3) (d,4) 38 d

Exemples of LCP. (b,3) (c,3) (d,4) 38 d This layout has been presented by G. Even and S. Even [ 00], and it is based on the notion of Layered Cross Product Def. A layered graph of l+1 layers G=(V 0, V 1,, V l, E) consists of l+1 layers of nodes;

More information

Computational Geometry

Computational Geometry Windowing queries Windowing Windowing queries Zoom in; re-center and zoom in; select by outlining Windowing Windowing queries Windowing Windowing queries Given a set of n axis-parallel line segments, preprocess

More information

Image Morphing. The user is responsible for defining correspondences between features Very popular technique. since Michael Jackson s clips

Image Morphing. The user is responsible for defining correspondences between features Very popular technique. since Michael Jackson s clips Image Morphing Image Morphing Image Morphing Image Morphing The user is responsible for defining correspondences between features Very popular technique since Michael Jackson s clips Morphing Coordinate

More information

2. Sorting. 2.1 Introduction

2. Sorting. 2.1 Introduction 2. Sorting 2.1 Introduction Given a set of n objects, it is often necessary to sort them based on some characteristic, be it size, importance, spelling, etc. It is trivial for a human to do this with a

More information

Trapezoidal decomposition:

Trapezoidal decomposition: Trapezoidal decomposition: Motivation: manipulate/analayze a collection of segments e.g. detect segment intersections e.g., point location data structure Definition. Draw verticals at all points binary

More information

Instance-Optimal Geometric Algorithms

Instance-Optimal Geometric Algorithms Instance-Optimal Geometric Algorithms Timothy Chan School of CS U. Waterloo joint work with Peyman Afshani (MADALGO, Aarhus U) Jérémy Barbay (U. Chile) Theme Beyond worst-case analysis Adaptive algorithms

More information

Graph Drawing e tecniche algoritmiche avanzate

Graph Drawing e tecniche algoritmiche avanzate Graph Drawing e tecniche algoritmiche avanzate Giuseppe Di Battista Maurizio Patrignani programma vengono introdotte alcune tecniche algoritmiche e viene discussa la loro applicazione al graph drawing

More information

A master bijection for planar maps and its applications. Olivier Bernardi (MIT) Joint work with Éric Fusy (CNRS/LIX)

A master bijection for planar maps and its applications. Olivier Bernardi (MIT) Joint work with Éric Fusy (CNRS/LIX) A master bijection for planar maps and its applications Olivier Bernardi (MIT) Joint work with Éric Fusy (CNRS/LIX) UCLA, March 0 Planar maps. Definition A planar map is a connected planar graph embedded

More information

Computational Geometry

Computational Geometry Casting a polyhedron CAD/CAM systems CAD/CAM systems allow you to design objects and test how they can be constructed Many objects are constructed used a mold Casting Casting A general question: Given

More information

CS 261 Spring 2013 Midterm

CS 261 Spring 2013 Midterm CS 261 Spring 2013 Midterm Name: Student ID: 1: 2: 3: 4: 5: 6: Total: 1. (20 points) Suppose that we implement a simplified version of the dynamic array data structure in which the amount of memory allocated

More information

Intermediate Mathematics League of Eastern Massachusetts

Intermediate Mathematics League of Eastern Massachusetts Meet # January 010 Intermediate Mathematics League of Eastern Massachusetts Meet # January 010 Category 1 - Mystery Meet #, January 010 1. Of all the number pairs whose sum equals their product, what is

More information

The priority is indicated by a number, the lower the number - the higher the priority.

The priority is indicated by a number, the lower the number - the higher the priority. CmSc 250 Intro to Algorithms Priority Queues 1. Introduction Usage of queues: in resource management: several users waiting for one and the same resource. Priority queues: some users have priority over

More information

Upward Straight-Line Embeddings of Directed Graphs into Point Sets

Upward Straight-Line Embeddings of Directed Graphs into Point Sets Upward Straight-Line Embeddings of Directed Graphs into Point Sets Alejandro Estrella-Balderrama, Fabrizio Frati 2, and Stephen G. Kobourov Department of Computer Science University of Arizona, U.S.A.

More information

Student Outcomes. Lesson Notes. Classwork. Opening Exercise (3 minutes)

Student Outcomes. Lesson Notes. Classwork. Opening Exercise (3 minutes) Student Outcomes Students solve problems related to the distance between points that lie on the same horizontal or vertical line Students use the coordinate plane to graph points, line segments and geometric

More information

CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed) Name: Email address: CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed) Instructions: Read the directions for each question carefully before answering. We may give partial

More information

Recursively Defined Functions

Recursively Defined Functions Section 5.3 Recursively Defined Functions Definition: A recursive or inductive definition of a function consists of two steps. BASIS STEP: Specify the value of the function at zero. RECURSIVE STEP: Give

More information

Measuring Triangles. 1 cm 2. 1 cm. 1 cm

Measuring Triangles. 1 cm 2. 1 cm. 1 cm 3 Measuring Triangles You can find the area of a figure by drawing it on a grid (or covering it with a transparent grid) and counting squares, but this can be very time consuming. In Investigation 1, you

More information

arxiv: v1 [cs.cg] 4 Oct 2014

arxiv: v1 [cs.cg] 4 Oct 2014 A Survey on Small-Area Planar Graph Drawing Giuseppe Di Battista 1 and Fabrizio Frati 2 1 Dipartimento di Informatica e Automazione - Roma Tre University, Italy 2 School of Information Technoologies -

More information

arxiv: v1 [cs.cg] 6 Jan 2019

arxiv: v1 [cs.cg] 6 Jan 2019 Therese Biedl 1, Ahmad Biniaz 1, Veronika Irvine 1, Kshitij Jain 2, Philipp Kindermann 3, and Anna Lubiw 1 arxiv:1901.01476v1 [cs.cg] 6 Jan 2019 1 David R. Cheriton School of Computer Science, University

More information

Connectivity check in 3-connected planar graphs with obstacles

Connectivity check in 3-connected planar graphs with obstacles Electronic Notes in Discrete Mathematics 31 (2008) 151 155 www.elsevier.com/locate/endm Connectivity check in 3-connected planar graphs with obstacles Bruno Courcelle a,1,2,3, Cyril Gavoille a,1,3, Mamadou

More information

Randomized Quickselect and Randomized Quicksort. Nishant Mehta September 14 th, 2017

Randomized Quickselect and Randomized Quicksort. Nishant Mehta September 14 th, 2017 Randomized Quickselect and Randomized Quicksort Nishant Mehta September 14 th, 2017 http://xkcd.com/1185 Recall Quickselect s Recursion Path Goal: Select the 6 th smallest element S 15 elements 7 elements

More information

GCSE. Basic Transformations Translate, enlarge, rotate, reflect, tessellate. 6 sections 24 Questions. Total marks 42 ANSWERS

GCSE. Basic Transformations Translate, enlarge, rotate, reflect, tessellate. 6 sections 24 Questions. Total marks 42 ANSWERS GCSE Basic Transformations Translate, enlarge, rotate, reflect, tessellate 6 sections 24 Questions. Total marks 42 ANSWERS Marks shown in brackets for each question Question Type of question Marks 1 Translation

More information

Priority Queues and Binary Heaps

Priority Queues and Binary Heaps Yufei Tao ITEE University of Queensland In this lecture, we will learn our first tree data structure called the binary heap which serves as an implementation of the priority queue. Priority Queue A priority

More information

The Visibility Problem and Binary Space Partition. (slides by Nati Srebro)

The Visibility Problem and Binary Space Partition. (slides by Nati Srebro) The Visibility Problem and Binary Space Partition (slides by Nati Srebro) The Visibility Problem b a c d e Algorithms Z-buffer: Draw objects in arbitrary order For each pixel, maintain distance to the

More information

Graph Theory and Network Measurment

Graph Theory and Network Measurment Graph Theory and Network Measurment Social and Economic Networks MohammadAmin Fazli Social and Economic Networks 1 ToC Network Representation Basic Graph Theory Definitions (SE) Network Statistics and

More information

Simultaneous Graph Embedding with Bends and Circular Arcs

Simultaneous Graph Embedding with Bends and Circular Arcs Simultaneous Graph Embedding with Bends and Circular Arcs Justin Cappos, Alejandro Estrella-Balderrama, J. Joseph Fowler, and Stephen G. Kobourov Department of Computer Science, University of Arizona {justin,aestrell,jfowler,kobourov}@cs.arizona.edu

More information

Separators in High-Genus Near-Planar Graphs

Separators in High-Genus Near-Planar Graphs Rochester Institute of Technology RIT Scholar Works Theses Thesis/Dissertation Collections 12-2016 Separators in High-Genus Near-Planar Graphs Juraj Culak jc1789@rit.edu Follow this and additional works

More information

Ray Tracing: Intersection

Ray Tracing: Intersection Computer Graphics as Virtual Photography Ray Tracing: Intersection Photography: real scene camera (captures light) photo processing Photographic print processing Computer Graphics: 3D models camera tone

More information

Today. Types of graphs. Complete Graphs. Trees. Hypercubes.

Today. Types of graphs. Complete Graphs. Trees. Hypercubes. Today. Types of graphs. Complete Graphs. Trees. Hypercubes. Complete Graph. K n complete graph on n vertices. All edges are present. Everyone is my neighbor. Each vertex is adjacent to every other vertex.

More information

Computer Science 210 Data Structures Siena College Fall Topic Notes: Priority Queues and Heaps

Computer Science 210 Data Structures Siena College Fall Topic Notes: Priority Queues and Heaps Computer Science 0 Data Structures Siena College Fall 08 Topic Notes: Priority Queues and Heaps Heaps and Priority Queues From here, we will look at some ways that trees are used in other structures. First,

More information

Week 10. Sorting. 1 Binary heaps. 2 Heapification. 3 Building a heap 4 HEAP-SORT. 5 Priority queues 6 QUICK-SORT. 7 Analysing QUICK-SORT.

Week 10. Sorting. 1 Binary heaps. 2 Heapification. 3 Building a heap 4 HEAP-SORT. 5 Priority queues 6 QUICK-SORT. 7 Analysing QUICK-SORT. Week 10 1 2 3 4 5 6 Sorting 7 8 General remarks We return to sorting, considering and. Reading from CLRS for week 7 1 Chapter 6, Sections 6.1-6.5. 2 Chapter 7, Sections 7.1, 7.2. Discover the properties

More information

Grade 10 Geometry 3 rd Nine Weeks Pacing Guide

Grade 10 Geometry 3 rd Nine Weeks Pacing Guide Week 1 (1/ 4-6) Week 2 (1/9-13) 2016-2017 Grade 10 3 rd Nine Weeks Pacing Guide 17. [G-SRT.4] Prove theorems about triangles. Theorems include a line parallel to one side of a triangle divides the other

More information

Algorithms for Graph Visualization

Algorithms for Graph Visualization Algorithms for Graph Visualization Summer Semester 2016 Lecture #4 Divide-and-Conquer Algorithms: Trees and Series-Parallel Graphs (based on slides from Martin Nöllenburg and Robert Görke, KIT) 1 Uses

More information

CS2 Algorithms and Data Structures Note 6

CS2 Algorithms and Data Structures Note 6 CS Algorithms and Data Structures Note 6 Priority Queues and Heaps In this lecture, we will discuss priority queues, another important ADT. As stacks and queues, priority queues store arbitrary collections

More information

Planar Graphs with Many Perfect Matchings and Forests

Planar Graphs with Many Perfect Matchings and Forests Planar Graphs with Many Perfect Matchings and Forests Michael Biro Abstract We determine the number of perfect matchings and forests in a family T r,3 of triangulated prism graphs. These results show that

More information

Section A Solids Grade E

Section A Solids Grade E Name: Teacher Assessment Section A Solids Grade E 1. Write down the name of each of these 3-D shapes, (i) (ii) (iii) Answer (i)... (ii)... (iii)... (Total 3 marks) 2. (a) On the isometric grid complete

More information

Visualisierung von Graphen

Visualisierung von Graphen Visualisierung von Graphen Smooth Orthogonal Drawings of Planar Graphs. Vorlesung Sommersemester 205 Orthogonal Layouts all edge segments are horizontal or vertical a well-studied drawing convention many

More information

Trapezoid and Chain Methods

Trapezoid and Chain Methods C.S. 252 Prof. Roberto Tamassia Computational Geometry Sem. II, 1992 1993 Lecture 05 Date: Febuary 17, 1993 Scribe: Peter C. McCluskey Trapezoid and Chain Methods 1 Trapezoid Method (continued) Continuing

More information

General Physics II. Mirrors & Lenses

General Physics II. Mirrors & Lenses General Physics II Mirrors & Lenses Nothing New! For the next several lectures we will be studying geometrical optics. You already know the fundamentals of what is going on!!! Reflection: θ 1 = θ r incident

More information

CS301 - Data Structures Glossary By

CS301 - Data Structures Glossary By CS301 - Data Structures Glossary By Abstract Data Type : A set of data values and associated operations that are precisely specified independent of any particular implementation. Also known as ADT Algorithm

More information

ANS:

ANS: Math 15-Spring 17-Final Exam Solutions 1. Consider the following definition of the symbol. Definition. Let x and y be integers. Write x y if 5x + 7y = 11k for some integer k. (a) Show that 1 4, 2 8, and

More information

Advanced Algorithms. Class Notes for Thursday, September 18, 2014 Bernard Moret

Advanced Algorithms. Class Notes for Thursday, September 18, 2014 Bernard Moret Advanced Algorithms Class Notes for Thursday, September 18, 2014 Bernard Moret 1 Amortized Analysis (cont d) 1.1 Side note: regarding meldable heaps When we saw how to meld two leftist trees, we did not

More information

8 Spine and Radial Drawings

8 Spine and Radial Drawings 8 Spine and Radial Drawings Emilio Di Giacomo University of Perugia Walter Didimo University of Perugia Giuseppe Liotta University of Perugia 8.1 Introduction... 247 8.2 A Unified Framework for Spine and

More information