Localiser une cible dans un graphe

Size: px
Start display at page:

Download "Localiser une cible dans un graphe"

Transcription

1 Julien Bensmail 1, Dorian Mazauric 2, Fionn Mc Inerney 1, Nicolas Nisse 1, Stéphane Pérennes 1 1 Université Côte d Azur, Inria, CNRS, I3S, France 2 Université Côte d Azur, Inria, France May 30, 2018, Roscoff, France AlgoTel /15

2 Metric Dimension [Slater, 1975 ; Harary and Melter, 1976] A facility, city or some other location is modelled by a graph G. A target is hidden at a vertex of G (i.e., a building). Detector at each vertex ; when probed, returns its distance to the target. B (1,1,1,1) (0) (1) (2) (3) (4) (0,1) (1,0) (2,1) A A (1,2) (2,2) A B C D (0,2,2,2) (2,0,2,2) (2,2,0,2) (2,2,2,0) (2,2,2,2) Metric Dimension of G Min. # of vertices needed to be probed all at once to locate the target in G. 2/15

3 Sequential Locating Game on Graphs [Seager, 2013] & Game of Guess Who? SL(G ) : Sequential location number of G Min. # of turns of probing one vertex per turn, to locate a target hidden in G. 3/15 Bensmail, Mazauric, Mc Inerney, Nisse, Pe rennes

4 Sequential Locating Game on Graphs [Seager, 2013] & Game of Guess Who? SL(G ) : Sequential location number of G Min. # of turns of probing one vertex per turn, to locate a target hidden in G. 3/15 Bensmail, Mazauric, Mc Inerney, Nisse, Pe rennes

5 Sequential Locating Game on Graphs Philip Bill Barbu Anne Richard Max Moustache Couettes Lunettes Roux Blond Charles Alex Alfred Cheveux Bruns/Noirs Eric Joe David Chauve & Game of Guess Who? [Seager, 2013] Anita Ch. blanc Femme Herman Sam Boucles d'oreilles Paul Claire Tom Chapeau Gros nez Maria George Bernard Susan Frans Robert Peter Yeux bleus/ clairs 4/15 Bensmail, Mazauric, Mc Inerney, Nisse, Pe rennes

6 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

7 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Blue vertex probed MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

8 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Blue vertex probed Answer : d = 0 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

9 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Blue vertex probed Answer : d = 1 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

10 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Blue vertex probed Answer : d = 2 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

11 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Blue vertex probed Answer : d = 3 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

12 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Blue vertex probed Answer : d = 4 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

13 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Two vertices in blue NOT probed MD(G) > 18 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

14 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Two vertices in blue NOT probed MD(G) > 18 Vertices at d = 1 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

15 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Two vertices in blue NOT probed MD(G) > 18 Vertices at d = 2 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

16 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. Two vertices in blue NOT probed MD(G) > 18 Vertices at d = 3 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

17 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. All vertices in blue probed MD(G) = 19 MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

18 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. A B Now sequential probing All vertices in blue probed Locate in 2 turns (FIRST turn) D C MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

19 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. A B Now sequential probing All vertices in blue probed Answer : (0, 4, 4, 4) Locate in 2 turns (FIRST turn) D C MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

20 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. A B Now sequential probing All vertices in blue probed Answer : (2, 2, 2, 2) Locate in 2 turns (FIRST turn) D C MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

21 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. A B Now sequential probing All vertices in blue probed Answer : (1, 3, 3, 3) Locate in 2 turns (FIRST turn) D C MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

22 Sequential Metric Dimension [Bensmail, Mazauric, M., Nisse, Pérennes, 2018] Sequential Metric Dimension of G Given k, l, G, is it possible to locate the immobile target in G in at most l turns by probing at most k vertices each turn. Related : Locate moving target with k? [Bosek et al, 2017] ; k = 1 [Seager, 2012]. MD(G) k turns suffice to locate target. But it can be located faster. A B Now sequential probing All vertices in blue probed Locate in 2 turns (SECOND turn) D C MD(G) = 19 and for k = 4, the target can be located in 2 turns. 5/15

23 Sequential Metric Dimension - Our Results Complexity NP-complete when either number of vertices to be probed or number of turns is fixed. Trees NP-complete in trees. Difficulty only comes from first turn. polynomial-time (+1)-approximation algorithm for trees. 6/15

24 Summary of results in trees λ k (T ) : min. # turns to locate target in T. (+1)-approximation algorithm computes strategy that locates target in T in at most λ k (T ) + 1 steps. Time complexity : O(n log n). Exact algorithm computes strategy that locates target in T in at most λ k (T ) steps. Time complexity : O(n k+2 log n). 7/15

25 Trees : why problem is easy after 1 st turn Probe any 1 vertex on 1 st turn. 8/15

26 Trees : why problem is easy after 1 st turn Probe any 1 vertex on 1 st turn. r 8/15

27 Trees : why problem is easy after 1 st turn Probe any 1 vertex on 1 st turn. Result : Tree T rooted in r where all leaves are the same distance from r and the target is known to occupy a leaf. r 8/15

28 Trees : why problem is easy after 1 st turn Probe any 1 vertex on 1 st turn. Result : Tree T rooted in r where all leaves are the same distance from r and the target is known to occupy a leaf. r 9/15

29 Second key argument for easiness T v : subtree rooted in v of T rooted in r, v is a child of r. Probing 1 vertex in T v allows to know if target is in T v or in T \ T v. r T v1 v 1 v 2 10/15

30 Two parameters needed for algorithm Assume target is known to occupy a leaf of T i. Then, λ k (T i ) : min. # of turns of probings to locate target in T i. π k (T i ) : min. # of vertices to probe in T i during first turn of probing vertices in T i to locate target in λ k (T i ) turns. k = 3 λ 3 (T ) = 3 π 3 (T ) = 2 11/15

31 Need for tradeoff between probing 1 or π(t vi ) vertices in T vi k = 3 λ(t ) = 5 r v 1 v 2 v 3 v 4 v 5 v (5,2) (3,2) (3,2) (3,2) (3,2) (3,2) (λ 3 (T vi ), π 3 (T vi )) 12/15

32 Need for tradeoff between probing 1 or π(t vi ) vertices in T vi k = 3 λ(t ) = 5 r v 1 v 2 v 3 v 4 v 5 v (5,2) (3,2) (3,2) (3,2) (3,2) (3,2) (λ 3 (T vi ), π 3 (T vi )) 12/15

33 Need for tradeoff between probing 1 or π(t vi ) vertices in T vi k = 3 λ(t ) = 5 r v 1 v 2 v 3 v 4 v 5 v (5,2) (3,2) (3,2) (3,2) (3,2) (3,2) (λ 3 (T vi ), π 3 (T vi )) 12/15

34 Variant with relative distances Relative distances returned instead of exact distances. Target v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 Relative dist. vector from probing blue vertices : (v 7 < v 4 = v 8 < v 1 ). Complexity NP-complete when either number of vertices to be probed or number of turns is fixed. 13/15

35 Future work Study the problem with exact distances in other graph classes such as planar and interval graphs. Try to get exact values for the problem with relative distances in paths [Foucaud et al, 2014]. Study the problem with relative distances in trees. 14/15

36 Thanks! 15/15

On Rerouting Connection Requests in Networks with Shared Bandwidth

On Rerouting Connection Requests in Networks with Shared Bandwidth On Rerouting Connection Requests in Networks with Shared Bandwidth David Coudert, Dorian Mazauric, Nicolas Nisse MASCOTTE, INRIA, I3S, CNRS, UNS, Sophia Antipolis, France DIMAP workshop on Algorithmic

More information

Graph Theory and Optimization Approximation Algorithms

Graph Theory and Optimization Approximation Algorithms Graph Theory and Optimization Approximation Algorithms Nicolas Nisse Université Côte d Azur, Inria, CNRS, I3S, France October 2018 Thank you to F. Giroire for some of the slides N. Nisse Graph Theory and

More information

On a,b-edge-weightings of bipartite graphs with odd a,b

On a,b-edge-weightings of bipartite graphs with odd a,b On a,b-edge-weightings of bipartite graphs with odd a,b Julien Bensmail, Fionn Mc Inerney, Kasper Lyngsie To cite this version: Julien Bensmail, Fionn Mc Inerney, Kasper Lyngsie. On a,b-edge-weightings

More information

Tradeoffs in process strategy games with application in the WDM reconfiguration problem

Tradeoffs in process strategy games with application in the WDM reconfiguration problem Tradeoffs in process strategy games with application in the WDM reconfiguration problem Nathann Cohen, David Coudert, Dorian Mazauric, Napoleao Nepomuceno, Nicolas Nisse To cite this version: Nathann Cohen,

More information

A more efficient algorithm for perfect sorting by reversals

A more efficient algorithm for perfect sorting by reversals A more efficient algorithm for perfect sorting by reversals Sèverine Bérard 1,2, Cedric Chauve 3,4, and Christophe Paul 5 1 Département de Mathématiques et d Informatique Appliquée, INRA, Toulouse, France.

More information

6.856 Randomized Algorithms

6.856 Randomized Algorithms 6.856 Randomized Algorithms David Karger Handout #4, September 21, 2002 Homework 1 Solutions Problem 1 MR 1.8. (a) The min-cut algorithm given in class works because at each step it is very unlikely (probability

More information

Indexing: B + -Tree. CS 377: Database Systems

Indexing: B + -Tree. CS 377: Database Systems Indexing: B + -Tree CS 377: Database Systems Recap: Indexes Data structures that organize records via trees or hashing Speed up search for a subset of records based on values in a certain field (search

More information

Assignment 5: Solutions

Assignment 5: Solutions Algorithm Design Techniques Assignment 5: Solutions () Port Authority. [This problem is more commonly called the Bin Packing Problem.] (a) Suppose K = 3 and (w, w, w 3, w 4 ) = (,,, ). The optimal solution

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems Search and Lookahead Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 4/6, 2012 Nebel, Hué and Wölfl (Universität Freiburg) Constraint

More information

Ma/CS 6b Class 2: Matchings

Ma/CS 6b Class 2: Matchings Ma/CS 6b Class 2: Matchings By Adam Sheffer Send anonymous suggestions and complaints from here. Email: adamcandobetter@gmail.com Password: anonymous2 There aren t enough crocodiles in the presentations

More information

Dynamic Distance Hereditary Graphs using Split Decomposition

Dynamic Distance Hereditary Graphs using Split Decomposition Dynamic Distance Hereditary Graphs using Split Decomposition Emeric Gioan CNRS - LIRMM - Université Montpellier II, France December 7, 2007 Joint work with C. Paul (CNRS - LIRMM) Dynamic graph representation

More information

10. EXTENDING TRACTABILITY

10. EXTENDING TRACTABILITY 0. EXTENDING TRACTABILITY finding small vertex covers solving NP-hard problems on trees circular arc coverings vertex cover in bipartite graphs Lecture slides by Kevin Wayne Copyright 005 Pearson-Addison

More information

Election Summary JACKSON COUNTY, MISSOURI GENERAL ELECTION NOVEMBER 4, 2014 (Official)

Election Summary JACKSON COUNTY, MISSOURI GENERAL ELECTION NOVEMBER 4, 2014 (Official) Election Summary JACKSON COUNTY, MISSOURI GENERAL ELECTION NOVEMBER 4, 2014 (Official) 207 OF 207 POLLS REPORTING Friday, November 7 2014 15:27:51 Non-Partisan FOR STATE AUDITOR Total: 73125 TOM SCHWEICH*

More information

Identification, Location-Domination and Metric Dimension on Interval and Permutation Graphs. II. Algorithms and Complexity

Identification, Location-Domination and Metric Dimension on Interval and Permutation Graphs. II. Algorithms and Complexity Algorithmica (2017) 78:914 944 DOI 10.1007/s00453-016-0184-1 Identification, Location-Domination and Metric Dimension on Interval and Permutation Graphs. II. Algorithms and Complexity Florent Foucaud 1

More information

Towards more efficient infection and fire fighting

Towards more efficient infection and fire fighting Towards more efficient infection and fire fighting Peter Floderus Andrzej Lingas Mia Persson The Centre for Mathematical Sciences, Lund University, 00 Lund, Sweden. Email: pflo@maths.lth.se Department

More information

Directed acyclic graphs with the unique dipath property

Directed acyclic graphs with the unique dipath property Author manuscript, published in "Theoretical Computer Science 504 (2013) 5-11" DOI : 10.1016/j.tcs.2012.06.015 Directed acyclic graphs with the unique dipath property Jean Claude Bermond, Michel Cosnard,

More information

Interval Graphs. Joyce C. Yang. Nicholas Pippenger, Advisor. Arthur T. Benjamin, Reader. Department of Mathematics

Interval Graphs. Joyce C. Yang. Nicholas Pippenger, Advisor. Arthur T. Benjamin, Reader. Department of Mathematics Interval Graphs Joyce C. Yang Nicholas Pippenger, Advisor Arthur T. Benjamin, Reader Department of Mathematics May, 2016 Copyright c 2016 Joyce C. Yang. The author grants Harvey Mudd College and the Claremont

More information

with Dana Richards December 1, 2017 George Mason University New Results On Routing Via Matchings Indranil Banerjee The Routing Model

with Dana Richards December 1, 2017 George Mason University New Results On Routing Via Matchings Indranil Banerjee The Routing Model New New with Dana Richards George Mason University richards@gmu.edu December 1, 2017 GMU December 1, 2017 1 / 40 New Definitions G(V, E) is an undirected graph. V = {1, 2, 3,..., n}. A pebble at vertex

More information

Algorithm Design Techniques. Hwansoo Han

Algorithm Design Techniques. Hwansoo Han Algorithm Design Techniques Hwansoo Han Algorithm Design General techniques to yield effective algorithms Divide-and-Conquer Dynamic programming Greedy techniques Backtracking Local search 2 Divide-and-Conquer

More information

arxiv: v1 [math.co] 1 Nov 2017

arxiv: v1 [math.co] 1 Nov 2017 The multiset dimension of graphs Rinovia Simanjuntak a, Tomáš Vetrík b, Presli Bintang Mulia a arxiv:1711.00225v1 [math.co] 1 Nov 2017 Abstract a Combinatorial Mathematics Research Group Institut Teknologi

More information

Routing Reconfiguration/Process Number: Networks with Shared Bandwidth.

Routing Reconfiguration/Process Number: Networks with Shared Bandwidth. INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE Routing Reconfiguration/Process Number: Networks with Shared Bandwidth. David Coudert Dorian Mazauric Nicolas Nisse N 6790 January 2009

More information

Complexity of the Game Domination Problem

Complexity of the Game Domination Problem Complexity of the Game Domination Problem Boštjan Brešar a,b Paul Dorbec c,d Sandi Klavžar e,a,b Gašper Košmrlj e Gabriel Renault c,d a Faculty of Natural Sciences and Mathematics, University of Maribor,

More information

Quantifying the Energy Impact of Green Cloud Computing Users

Quantifying the Energy Impact of Green Cloud Computing Users Quantifying the Energy Impact of Green Cloud Computing Users David Guyon University of Rennes 1 david.guyon@irisa.fr Anne-Cécile Orgerie CNRS Christine Morin Inria July 5 th, 2016 David Guyon @ Compas

More information

Minimum Tree Spanner Problem for Butterfly and Benes Networks

Minimum Tree Spanner Problem for Butterfly and Benes Networks Minimum Tree Spanner Problem for Butterfly and Benes Networks Bharati Rajan, Indra Rajasingh, Department of Mathematics, Loyola College, Chennai 600 0, India Amutha A Department of Mathematics, Loyola

More information

Decision Trees: Representation

Decision Trees: Representation Decision Trees: Representation Machine Learning Fall 2018 Some slides from Tom Mitchell, Dan Roth and others 1 Key issues in machine learning Modeling How to formulate your problem as a machine learning

More information

Labeling Schemes for Vertex Connectivity

Labeling Schemes for Vertex Connectivity Labeling Schemes for Vertex Connectivity AMOS KORMAN CNRS and Université Paris Diderot - Paris 7, France. This paper studies labeling schemes for the vertex connectivity function on general graphs. We

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

Pennsylvania Gaming Control Board Application Status Report As of November 21, Supplier Applications

Pennsylvania Gaming Control Board Application Status Report As of November 21, Supplier Applications Applicant Name Application Status Application Status Advanced Gaming Associates, LLC Advanced Gaming Associates, LLC Surrendered License 5/17/2017 Anthony R. Tomasello, Jr. License Renewed 3/30/2016 3/29/2019

More information

Algorithm Design Techniques (III)

Algorithm Design Techniques (III) Algorithm Design Techniques (III) Minimax. Alpha-Beta Pruning. Search Tree Strategies (backtracking revisited, branch and bound). Local Search. DSA - lecture 10 - T.U.Cluj-Napoca - M. Joldos 1 Tic-Tac-Toe

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

Trees. Eric McCreath

Trees. Eric McCreath Trees Eric McCreath 2 Overview In this lecture we will explore: general trees, binary trees, binary search trees, and AVL and B-Trees. 3 Trees Trees are recursive data structures. They are useful for:

More information

Space vs Time, Cache vs Main Memory

Space vs Time, Cache vs Main Memory Space vs Time, Cache vs Main Memory Marc Moreno Maza University of Western Ontario, London, Ontario (Canada) CS 4435 - CS 9624 (Moreno Maza) Space vs Time, Cache vs Main Memory CS 4435 - CS 9624 1 / 49

More information

Fault-Tolerant Metric Dimension of Graphs

Fault-Tolerant Metric Dimension of Graphs Fault-Tolerant Metric Dimension of Graphs Carmen Hernando (a), Merce Mora (b), Peter J. Slater (c), David R. Wood (b) (a) Departament de Matemàtica Aplicada I Universitat Politècnica de Catalunya, Barcelona.

More information

A Decomposition for Chordal graphs and Applications

A Decomposition for Chordal graphs and Applications A Decomposition for Chordal graphs and Applications Michel Habib Joint work with Vincent Limouzy and Juraj Stacho Pretty Structure, Existencial Polytime Jack Edmonds Birthday, 7-9 april 2009 Schedule Chordal

More information

The Parameterized Complexity of Finding Point Sets with Hereditary Properties

The Parameterized Complexity of Finding Point Sets with Hereditary Properties The Parameterized Complexity of Finding Point Sets with Hereditary Properties David Eppstein University of California, Irvine Daniel Lokshtanov University of Bergen University of California, Santa Barbara

More information

On Covering a Graph Optimally with Induced Subgraphs

On Covering a Graph Optimally with Induced Subgraphs On Covering a Graph Optimally with Induced Subgraphs Shripad Thite April 1, 006 Abstract We consider the problem of covering a graph with a given number of induced subgraphs so that the maximum number

More information

A Note on Scheduling Parallel Unit Jobs on Hypercubes

A Note on Scheduling Parallel Unit Jobs on Hypercubes A Note on Scheduling Parallel Unit Jobs on Hypercubes Ondřej Zajíček Abstract We study the problem of scheduling independent unit-time parallel jobs on hypercubes. A parallel job has to be scheduled between

More information

Minimal Dominating Sets in Graphs: Enumeration, Combinatorial Bounds and Graph Classes

Minimal Dominating Sets in Graphs: Enumeration, Combinatorial Bounds and Graph Classes Minimal Dominating Sets in Graphs: Enumeration, Combinatorial Bounds and Graph Classes J.-F. Couturier 1 P. Heggernes 2 D. Kratsch 1 P. van t Hof 2 1 LITA Université de Lorraine F-57045 Metz France 2 University

More information

Subexponential algorithms for rectilinear Steiner tree and arborescence problems

Subexponential algorithms for rectilinear Steiner tree and arborescence problems Subexponential algorithms for rectilinear Steiner tree and arborescence problems Fedor V. Fomin Sudeshna Kolay Daniel Lokshtanov Fahad Panolan Saket Saurabh Abstract A rectilinear Steiner tree for a set

More information

Multidimensional Indexing The R Tree

Multidimensional Indexing The R Tree Multidimensional Indexing The R Tree Module 7, Lecture 1 Database Management Systems, R. Ramakrishnan 1 Single-Dimensional Indexes B+ trees are fundamentally single-dimensional indexes. When we create

More information

Rotation Distance is Fixed-Parameter Tractable

Rotation Distance is Fixed-Parameter Tractable Rotation Distance is Fixed-Parameter Tractable Sean Cleary Katherine St. John September 25, 2018 arxiv:0903.0197v1 [cs.ds] 2 Mar 2009 Abstract Rotation distance between trees measures the number of simple

More information

The Design of Approximation Algorithms

The Design of Approximation Algorithms The Design of Approximation Algorithms David P. Williamson Cornell University David B. Shmoys Cornell University m Щ0 CAMBRIDGE UNIVERSITY PRESS Contents Preface page ix I An Introduction to the Techniques

More information

CSE 100: B+ TREE, 2-3 TREE, NP- COMPLETNESS

CSE 100: B+ TREE, 2-3 TREE, NP- COMPLETNESS CSE 100: B+ TREE, 2-3 TREE, NP- COMPLETNESS Analyzing find in B-trees Since the B-tree is perfectly height-balanced, the worst case time cost for find is O(logN) Best case: If every internal node is completely

More information

CSE 203A: Randomized Algorithms

CSE 203A: Randomized Algorithms CSE 203A: Randomized Algorithms (00:30) The Minimax Principle (Ch 2) Lecture on 10/18/2017 by Daniel Kane Notes by Peter Greer-Berezovsky Game Tree Evaluation (2.1) - n round deterministic 2-player game

More information

Routing Reconfiguration/Process Number: Coping wih Two Classes of Services

Routing Reconfiguration/Process Number: Coping wih Two Classes of Services INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE Routing Reconfiguration/Process Number: Coping wih Two Classes of Services David Coudert Florian Huc Dorian Mazauric Nicolas Nisse Jean-Sébastien

More information

Chapter 6. Dynamic Programming

Chapter 6. Dynamic Programming Chapter 6 Dynamic Programming CS 573: Algorithms, Fall 203 September 2, 203 6. Maximum Weighted Independent Set in Trees 6..0. Maximum Weight Independent Set Problem Input Graph G = (V, E) and weights

More information

Junction Trees and Chordal Graphs

Junction Trees and Chordal Graphs Graphical Models, Lecture 6, Michaelmas Term 2009 October 30, 2009 Decomposability Factorization of Markov distributions Explicit formula for MLE Consider an undirected graph G = (V, E). A partitioning

More information

Module 4: Index Structures Lecture 13: Index structure. The Lecture Contains: Index structure. Binary search tree (BST) B-tree. B+-tree.

Module 4: Index Structures Lecture 13: Index structure. The Lecture Contains: Index structure. Binary search tree (BST) B-tree. B+-tree. The Lecture Contains: Index structure Binary search tree (BST) B-tree B+-tree Order file:///c /Documents%20and%20Settings/iitkrana1/My%20Documents/Google%20Talk%20Received%20Files/ist_data/lecture13/13_1.htm[6/14/2012

More information

Randomized Graph Algorithms

Randomized Graph Algorithms Randomized Graph Algorithms Vasileios-Orestis Papadigenopoulos School of Electrical and Computer Engineering - NTUA papadigenopoulos orestis@yahoocom July 22, 2014 Vasileios-Orestis Papadigenopoulos (NTUA)

More information

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees Pinar Heggernes Pim van t Hof Benjamin Léveque Christophe Paul Abstract We study the following two graph modification problems: given

More information

Parallel Computing in Combinatorial Optimization

Parallel Computing in Combinatorial Optimization Parallel Computing in Combinatorial Optimization Bernard Gendron Université de Montréal gendron@iro.umontreal.ca Course Outline Objective: provide an overview of the current research on the design of parallel

More information

REMOTE PROCEDURE CALLS IMPLEMENTING USING DISTRIBUTED ALGORITHM

REMOTE PROCEDURE CALLS IMPLEMENTING USING DISTRIBUTED ALGORITHM REMOTE PROCEDURE CALLS IMPLEMENTING USING DISTRIBUTED ALGORITHM G. MURALI i K.ANUSHA ii A. SHIRISHA iii S.SRAVYA iv [i] Assistant Professor, Dept of Computer Science Engineering, JNTU-Pulivendula, AP,

More information

Ferianakademie 2010 Course 2: Distance Problems: Theory and Praxis. Distance Labelings. Stepahn M. Günther. September 23, 2010

Ferianakademie 2010 Course 2: Distance Problems: Theory and Praxis. Distance Labelings. Stepahn M. Günther. September 23, 2010 Ferianakademie 00 Course : Distance Problems: Theory and Praxis Distance Labelings Stepahn M. Günther September, 00 Abstract Distance labels allow to infer the shortest distance between any two vertices

More information

Localization in Graphs. Richardson, TX Azriel Rosenfeld. Center for Automation Research. College Park, MD

Localization in Graphs. Richardson, TX Azriel Rosenfeld. Center for Automation Research. College Park, MD CAR-TR-728 CS-TR-3326 UMIACS-TR-94-92 Samir Khuller Department of Computer Science Institute for Advanced Computer Studies University of Maryland College Park, MD 20742-3255 Localization in Graphs Azriel

More information

8 NP-complete problem Hard problems: demo

8 NP-complete problem Hard problems: demo Ch8 NPC Millennium Prize Problems http://en.wikipedia.org/wiki/millennium_prize_problems 8 NP-complete problem Hard problems: demo NP-hard (Non-deterministic Polynomial-time hard), in computational complexity

More information

Trees, Trees and More Trees

Trees, Trees and More Trees Trees, Trees and More Trees August 9, 01 Andrew B. Kahng abk@cs.ucsd.edu http://vlsicad.ucsd.edu/~abk/ How You ll See Trees in CS Trees as mathematical objects Trees as data structures Trees as tools for

More information

Supervised Learning: The Setup. Spring 2018

Supervised Learning: The Setup. Spring 2018 Supervised Learning: The Setup Spring 2018 1 Homework 0 will be released today through Canvas Due: Jan. 19 (next Friday) midnight 2 Last lecture We saw What is learning? Learning as generalization The

More information

Green Globs And Graphing Equations

Green Globs And Graphing Equations Green Globs And Graphing Equations Green Globs and Graphing Equations has four parts to it which serve as a tool, a review or testing device, and two games. The menu choices are: Equation Plotter which

More information

David Rappaport School of Computing Queen s University CANADA. Copyright, 1996 Dale Carnegie & Associates, Inc.

David Rappaport School of Computing Queen s University CANADA. Copyright, 1996 Dale Carnegie & Associates, Inc. David Rappaport School of Computing Queen s University CANADA Copyright, 1996 Dale Carnegie & Associates, Inc. Data Compression There are two broad categories of data compression: Lossless Compression

More information

An approximation algorithm for a bottleneck k-steiner tree problem in the Euclidean plane

An approximation algorithm for a bottleneck k-steiner tree problem in the Euclidean plane Information Processing Letters 81 (2002) 151 156 An approximation algorithm for a bottleneck k-steiner tree problem in the Euclidean plane Lusheng Wang,ZimaoLi Department of Computer Science, City University

More information

Geometric Data Structures

Geometric Data Structures Geometric Data Structures 1 Data Structure 2 Definition: A data structure is a particular way of organizing and storing data in a computer for efficient search and retrieval, including associated algorithms

More information

On Minimizing Crossings in Storyline Visualizations

On Minimizing Crossings in Storyline Visualizations On Minimizing Crossings in Storyline Visualizations Irina Kostitsyna Martin No llenburg Valentin Polishchuk Andre Schulz Darren Strash www.xkcd.com, CC BY-NC 2.5 Kostitsyna, No llenburg, V.and Polishchuk,

More information

PRECALCULUS I/MATH 126 (2188) SHANNON MYERS

PRECALCULUS I/MATH 126 (2188) SHANNON MYERS PRECALCULUS I/MATH 126 (2188) SHANNON MYERS π 100 POINTS POSSIBLE π YOUR WORK MUST SUPPORT YOUR ANSWER FOR FULL CREDIT TO BE AWARDED π YOU MAY USE A SCIENTIFIC AND/OR A TI-83/84/85/86 CALCULATOR π PROVIDE

More information

Partitioning Trees with Supply, Demand and Edge-Capacity

Partitioning Trees with Supply, Demand and Edge-Capacity The Tenth International Symposium on Operations Research and Its Applications (ISORA 2011) Dunhuang, China, August 28 1, 2011 Copyright 2011 ORSC & APORC, pp. 1 8 Partitioning Trees with Supply, Demand

More information

The k-in-a-path problem for claw-free graphs

The k-in-a-path problem for claw-free graphs The k-in-a-path problem for claw-free graphs Jiří Fiala Univerzita Karlova v Praze Bernard Lidický Univerzita Karlova v Praze Marcin Kamiński Université Libre de Bruxelles Daniël Paulusma University of

More information

Gap vertex-distinguishing edge colorings of graphs

Gap vertex-distinguishing edge colorings of graphs Gap vertex-distinguishing edge colorings of graphs M. A Tahraoui 1 E. Duchêne H. Kheddouci Université de Lyon, Laboratoire GAMA, Université Lyon 1 43 bd du 11 Novembre 1918, F-696 Villeurbanne Cedex, France

More information

Optimal one-page tree embeddings in linear time

Optimal one-page tree embeddings in linear time Information Processing Letters 87 (2003) 59 66 www.elsevier.com/locate/ipl Optimal one-page tree embeddings in linear time Robert A. Hochberg a,, Matthias F. Stallmann b a Department of Computer Science,

More information

Fixed-parameter tractable canonization and isomorphism test for graphs of bounded treewidth

Fixed-parameter tractable canonization and isomorphism test for graphs of bounded treewidth Fixed-parameter tractable canonization and isomorphism test for graphs of bounded treewidth Micha l Pilipczuk Institute of Informatics, University of Warsaw, Poland Workshop on Exact Algorithms and Lower

More information

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R

More information

Heaps and Priority Queues

Heaps and Priority Queues Unit 9, Part Heaps and Priority Queues Computer Science S-111 Harvard University David G. Sullivan, Ph.D. Priority Queue A priority queue (PQ) is a collection in which each item has an associated number

More information

implementing the breadth-first search algorithm implementing the depth-first search algorithm

implementing the breadth-first search algorithm implementing the depth-first search algorithm Graph Traversals 1 Graph Traversals representing graphs adjacency matrices and adjacency lists 2 Implementing the Breadth-First and Depth-First Search Algorithms implementing the breadth-first search algorithm

More information

Subject Index. Journal of Discrete Algorithms 5 (2007)

Subject Index. Journal of Discrete Algorithms 5 (2007) Journal of Discrete Algorithms 5 (2007) 751 755 www.elsevier.com/locate/jda Subject Index Ad hoc and wireless networks Ad hoc networks Admission control Algorithm ; ; A simple fast hybrid pattern-matching

More information

On Convex Polygons in Cartesian Products

On Convex Polygons in Cartesian Products On Convex Polygons in Cartesian Products Jean-Lou De Carufel 1, Adrian Dumitrescu 2, Wouter Meulemans 3, Tim Ophelders 3, Claire Pennarun 4, Csaba D. Tóth 5, and Sander Verdonschot 6 1 University of Ottawa,

More information

Question Bank Subject: Advanced Data Structures Class: SE Computer

Question Bank Subject: Advanced Data Structures Class: SE Computer Question Bank Subject: Advanced Data Structures Class: SE Computer Question1: Write a non recursive pseudo code for post order traversal of binary tree Answer: Pseudo Code: 1. Push root into Stack_One.

More information

Exam Datenstrukturen und Algorithmen D-INFK

Exam Datenstrukturen und Algorithmen D-INFK Eidgenössische Technische Hochschule Zürich Ecole polytechnique fédérale de Zurich Politecnico federale di Zurigo Federal Institute of Technology at Zurich Institut für Theoretische Informatik Peter Widmayer

More information

Final Examination CSE 100 UCSD (Practice)

Final Examination CSE 100 UCSD (Practice) Final Examination UCSD (Practice) RULES: 1. Don t start the exam until the instructor says to. 2. This is a closed-book, closed-notes, no-calculator exam. Don t refer to any materials other than the exam

More information

IRP programming paradigm and its implementation in Fortran for quantum Monte Carlo

IRP programming paradigm and its implementation in Fortran for quantum Monte Carlo IRP programming paradigm and its implementation in Fortran for quantum Monte Carlo Roland Assaraf and Julien Toulouse Université Pierre & Marie Curie and CNRS, Paris, France CECAM discussion meeting, IDRIS,

More information

Connecting face hitting sets in planar graphs

Connecting face hitting sets in planar graphs Connecting face hitting sets in planar graphs Pascal Schweitzer and Patrick Schweitzer Max-Planck-Institute for Computer Science Campus E1 4, D-66123 Saarbrücken, Germany pascal@mpi-inf.mpg.de University

More information

Greedy Algorithms CHAPTER 16

Greedy Algorithms CHAPTER 16 CHAPTER 16 Greedy Algorithms In dynamic programming, the optimal solution is described in a recursive manner, and then is computed ``bottom up''. Dynamic programming is a powerful technique, but it often

More information

Dynamic Programming CPE 349. Theresa Migler-VonDollen

Dynamic Programming CPE 349. Theresa Migler-VonDollen Dynamic Programming CPE 349 Theresa Migler-VonDollen Dynamic Programming Definition Dynamic programming is a very powerful algorithmic tool in which a problem is solved by identifying a collection of subproblems

More information

CSE 530A. B+ Trees. Washington University Fall 2013

CSE 530A. B+ Trees. Washington University Fall 2013 CSE 530A B+ Trees Washington University Fall 2013 B Trees A B tree is an ordered (non-binary) tree where the internal nodes can have a varying number of child nodes (within some range) B Trees When a key

More information

All 13,509 cities in US with a population of at least 500 Reference:

All 13,509 cities in US with a population of at least 500 Reference: Introduction to combinatorial optimization, modeling and complexity theory I. Introduction to combinatorial optimization and graph theory. Basics of Operations Research; Graph theory: basic notions 2.

More information

arxiv: v1 [cs.cc] 19 Feb 2016

arxiv: v1 [cs.cc] 19 Feb 2016 PSPCE-Complete Two-Color Placement Games Kyle Burke, Bob Hearn February 22, 2016 arxiv:1602.06012v1 [cs.cc] 19 Feb 2016 bstract We show that three placement games, Col, NoGo, and Fjords, are PSPCE-complete

More information

6.006 Introduction to Algorithms. Lecture 25: Complexity Prof. Erik Demaine

6.006 Introduction to Algorithms. Lecture 25: Complexity Prof. Erik Demaine 6.006 Introduction to Algorithms Lecture 25: Complexity Prof. Erik Demaine Today Reductions between problems Decision vs. optimization problems Complexity classes P, NP, co NP, PSPACE, EXPTIME, NP completeness

More information

18.S34 (FALL 2007) PROBLEMS ON HIDDEN INDEPENDENCE AND UNIFORMITY

18.S34 (FALL 2007) PROBLEMS ON HIDDEN INDEPENDENCE AND UNIFORMITY 18.S34 (FALL 2007) PROBLEMS ON HIDDEN INDEPENDENCE AND UNIFORMITY All the problems below (with the possible exception of the last one), when looked at the right way, can be solved by elegant arguments

More information

Throughout the chapter, we will assume that the reader is familiar with the basics of phylogenetic trees.

Throughout the chapter, we will assume that the reader is familiar with the basics of phylogenetic trees. Chapter 7 SUPERTREE ALGORITHMS FOR NESTED TAXA Philip Daniel and Charles Semple Abstract: Keywords: Most supertree algorithms combine collections of rooted phylogenetic trees with overlapping leaf sets

More information

SURIEM 2016 Final Report: Games on Graphs

SURIEM 2016 Final Report: Games on Graphs SURIEM 2016 Final Report: Games on Graphs Julie Anne Bowman, Arthur Diep-Nguyen, Rashmika Goswami, Dylan King, Nicholas Lindell, Emily Olson, Robert W. Bell July 14, 2016 1 Introduction The game of Cops

More information

Project Report for CMSC 858F (Previous Work)

Project Report for CMSC 858F (Previous Work) Project Report for CMSC 858F (Previous Work) Rajesh Chitnis M. Reza Khani Vahid Liaghat December 7, 2011 Abstract In this report we give a brief view of some tractability and intractability results in

More information

Administrivia. Tree-Structured Indexes. Review. Today: B-Tree Indexes. A Note of Caution. Introduction

Administrivia. Tree-Structured Indexes. Review. Today: B-Tree Indexes. A Note of Caution. Introduction Administrivia Tree-Structured Indexes Lecture R & G Chapter 9 Homeworks re-arranged Midterm Exam Graded Scores on-line Key available on-line If I had eight hours to chop down a tree, I'd spend six sharpening

More information

Complementing deterministic tree-walking automata

Complementing deterministic tree-walking automata Complementing deterministic tree-walking automata Anca Muscholl LIAFA & CNRS, Université Paris 7, France Luc Segoufin INRIA & Université Paris 11, France September 12, 2005 Mathias Samuelides LIAFA and

More information

Decision Trees: Representa:on

Decision Trees: Representa:on Decision Trees: Representa:on Machine Learning Fall 2017 Some slides from Tom Mitchell, Dan Roth and others 1 Key issues in machine learning Modeling How to formulate your problem as a machine learning

More information

arxiv: v2 [cs.ds] 7 Jan 2015

arxiv: v2 [cs.ds] 7 Jan 2015 Orthogonal Graph Drawing with Inflexible Edges Thomas Bläsius, Sebastian Lehmann, Ignaz Rutter Faculty of Informatics, Karlsruhe Institute of Technology (KIT), Germany arxiv:404.2943v2 [cs.ds] 7 Jan 205

More information

ECE521 W17 Tutorial 10

ECE521 W17 Tutorial 10 ECE521 W17 Tutorial 10 Shenlong Wang and Renjie Liao *Some of materials are credited to Jimmy Ba, Eric Sudderth, Chris Bishop Introduction to A4 1, Graphical Models 2, Message Passing 3, HMM Introduction

More information

CSC 373: Algorithm Design and Analysis Lecture 3

CSC 373: Algorithm Design and Analysis Lecture 3 CSC 373: Algorithm Design and Analysis Lecture 3 Allan Borodin January 11, 2013 1 / 13 Lecture 3: Outline Write bigger and get better markers A little more on charging arguments Continue examples of greedy

More information

Algorithms for Image-Based Rendering with an Application to Driving Simulation

Algorithms for Image-Based Rendering with an Application to Driving Simulation Algorithms for Image-Based Rendering with an Application to Driving Simulation George Drettakis GRAPHDECO/Inria Sophia Antipolis, Université Côte d Azur http://team.inria.fr/graphdeco Graphics for Driving

More information

PhoneBook (Sorting) You will be modifying your PhoneBook class to sort by different fields in a contact.

PhoneBook (Sorting) You will be modifying your PhoneBook class to sort by different fields in a contact. PhoneBook (Sorting) Background: You will be modifying your PhoneBook class to sort by different fields in a contact. Assignment: 1. Create a project called PhoneBookSort. Copy your PhoneBook class and

More information

Interaction Between Input and Output-Sensitive

Interaction Between Input and Output-Sensitive Interaction Between Input and Output-Sensitive Really? Mamadou M. Kanté Université Blaise Pascal - LIMOS, CNRS Enumeration Algorithms Using Structure, Lorentz Institute, August 26 th, 2015 1 Introduction

More information

Computing optimal total vertex covers for trees

Computing optimal total vertex covers for trees Computing optimal total vertex covers for trees Pak Ching Li Department of Computer Science University of Manitoba Winnipeg, Manitoba Canada R3T 2N2 Abstract. Let G = (V, E) be a simple, undirected, connected

More information

Exploring Domains of Approximation in R 2 : Expository Essay

Exploring Domains of Approximation in R 2 : Expository Essay Exploring Domains of Approximation in R 2 : Expository Essay Nicolay Postarnakevich August 12, 2013 1 Introduction In this paper I explore the concept of the Domains of Best Approximations. These structures

More information

Graphs with Two Disjoint Total Dominating Sets

Graphs with Two Disjoint Total Dominating Sets Graphs with Two Disjoint Total Dominating Sets Izak Broere, Rand Afrikaans University Michael Dorfling, Rand Afrikaans University Wayne Goddard, University of Natal Johannes H. Hattingh, Georgia State

More information