- Research Article
31
- 10.1016/0166-218x(93)90116-6
A faster algorithm to recognize undirected path graphs
- Jun 01, 1993
- Discrete Applied Mathematics
- Alejandro A Schäffer
A faster algorithm to recognize undirected path graphs
A recognition algorithm for the intersection graphs of paths in trees
A faster algorithm to recognize undirected path graphs
A faster algorithm to recognize undirected path graphs
Parameterized algorithms for Steiner tree and (connected) dominating set on path graphs
Chordal graphs are the intersection graphs of subtrees of a tree, while interval graphs of subpaths of a path. Undirected path graphs, directed path graphs and rooted directed path graphs are intermediate graph classes, defined, respectively, as the intersection graphs of paths of a tree, of directed paths of an oriented tree, and of directed paths of an out branching. All of these path graphs have vertex leafage 2. Dominating Set, Connected Dominating Set, and Steiner tree problems are ‐hard parameterized by the size of the solution on chordal graphs, ‐complete on undirected path graphs, and polynomial‐time solvable on rooted directed path graphs, and hence also on interval graphs. We further investigate the (parameterized) complexity of all these problems when constrained to chordal graphs, taking the vertex leafage and the aforementioned classes into consideration. We prove that Dominating Set, Connected Dominating Set, and Steiner tree are on chordal graphs when parameterized by the size of the solution plus the vertex leafage, and that Weighted Connected Dominating Set is polynomial‐time solvable on strongly chordal graphs. We also introduce a new subclass of undirected path graphs, which we call in–out rooted directed path graphs, as the intersection graphs of directed paths of an in–out branching. We prove that Dominating Set, Connected Dominating Set, and Steiner tree are solvable in polynomial time on this class, generalizing the polynomiality for rooted directed path graphs proved by Booth and Johnson (SIAM J. Comput. 11 (1982), 191‐199.) and by White et al. (Networks 15 (1985), 109‐124.).
Read moreClique Graphs of Chordal and Path Graphs
Clique graphs of chordal and path graphs are characterized. A special class of graphs named expanded trees is discussed. It consists of a subclass of disk-Helly graphs. It is shown that the clique graph of every chordal (hence path) graph is an expanded tree. In addition, every expanded tree is the clique graph of some path (hence chordal) graph. Different characterizations of expanded trees are described, leading to a polynomial time algorithm for recognizing them.
Read moreCache-Oblivious Buffer Heap and Cache-Efficient Computation of Shortest Paths in Graphs
We present the buffer heap , a cache-oblivious priority queue that supports Delete-Min , Delete , and a hybrid Insert / Decrease-Key operation in O (1/ B log 2 N / M ) amortized block transfers from main memory, where M and B are the (unknown) cache size and block size, respectively, and N is the number of elements in the queue. We introduce the notion of a slim data structure that captures the situation when only a limited portion of the cache, which we call a slim cache , is available to the data structure to retain data between data structural operations. We show that a buffer heap automatically adapts to such an environment and supports all operations in O (1/λ + 1/ B log 2 N /λ) amortized block transfers each when the size of the slim cache is λ. Our results provide substantial improvements over known trivial cache performance bounds for cache-oblivious priority queues with Decrease-Keys . Using the buffer heap, we present cache-oblivious implementations of Dijkstra’s algorithm for undirected and directed single-source shortest path (SSSP) problems for graphs with non-negative real edge-weights. On a graph with n vertices and m edges, our algorithm for the undirected case performs O ( n + m / B log 2 n / M ) block transfers and for the directed case performs O (( n + m / B ) ċ log 2 n / B ) block transfers. These results give the first non-trivial cache-oblivious bounds for the SSSP problem on general graphs. For the all-pairs shortest path (APSP) problem on weighted undirected graphs, we incorporate slim buffer heaps into multi-buffer-buffer-heaps and use these to improve the cache-aware cache complexity. We also present a simple cache-oblivious APSP algorithm for unweighted undirected graphs that performs O ( mn / B log M / B n / B ) block transfers. This matches the cache-aware bound and is a substantial improvement over the previous cache-oblivious bound for the problem.
Read moreIntersection Graphs of Orthodox Paths in Trees
Intersection Graphs of Orthodox Paths in Trees
Going Far from Degeneracy
An undirected graph $G$ is $d$-degenerate if every subgraph of $G$ has a vertex of degree at most $d$. By the classical theorem of Erdös and Gallai from 1959, every graph of degeneracy $d>1$ contains a cycle of length at least $d+1$. The proof of Erdös and Gallai is constructive and can be turned into a polynomial time algorithm constructing a cycle of length at least $d+1$. But can we decide in polynomial time whether a graph contains a cycle of length at least $d+2$? An easy reduction from Hamiltonian Cycle provides a negative answer to this question: Deciding whether a graph has a cycle of length at least $d+2$ is NP-complete. Surprisingly, the complexity of the problem changes drastically when the input graph is 2-connected. In this case we prove that deciding whether $G$ contains a cycle of length at least $d+k$ can be done in time $2^{\mathcal{O}(k)}\cdot|V(G)|^{\mathcal{O}(1)}$. In other words, deciding whether a 2-connected $n$-vertex $G$ contains a cycle of length at least $d+\log{n}$ can be done in polynomial time. Similar algorithmic results hold for long paths in graphs. We observe that deciding whether a graph has a path of length at least $d+1$ is NP-complete. However, we prove that if graph $G$ is connected, then deciding whether $G$ contains a path of length at least $d+k$ can be done in time $2^{\mathcal{O}(k)}\cdot n^{\mathcal{O}(1)}$. We complement these results by showing that the choice of degeneracy as the “above guarantee parameterization” is optimal in the following sense: For any $\varepsilon>0$ it is NP-complete to decide whether a connected (2-connected) graph of degeneracy $d$ has a path (cycle) of length at least $(1+\varepsilon)d$.
Read moreSpace Efficient Linear Time Algorithms for BFS, DFS and Applications
Research on space efficient graph algorithms, particularly for st-connectivity, has a long history including the celebrated polynomial time, O(lg n) bits1 algorithm in undirected graphs by Reingold J. JACM. 55(4) (2008), and polynomial time, \(n/2^{\Theta (\sqrt {\lg n})}\) bits algorithm in directed graphs by Barnes et al. SICOMP. 27(5), 1273–1282 (1998). Recent works by Asano et al. ISAAC (2014) and Elmasry et al. STACS (2015), reconsidered classical fundamental graph algorithms focusing on improving the space complexity. Elmasry et al. gave, among others, an implementation of breadth first search (BFS) in a graph G with n vertices and m edges, taking the optimal O(m + n) time using O(n) bits improving the naive O(n lg n) bits implementation. Similarly, Asano et al. provided space efficient implementations for performing depth first search (DFS) in a graph G. We continue this line of work focusing on improving the space requirement for implementing a few classical graph algorithms. Our first result is a simple data structure that can maintain any subset S of a universe of u elements using just u + o(u) bits and supports in constant time, apart from the standard insert, delete and membership queries, the operation findany that finds and returns any element of the set (or outputs that the set is empty). It can also enumerate all elements present currently in the set in no particular order in O(k + 1) time where k is the number of elements currently belonging to the set. While this data structure supports a weaker set of operations than that of Elmasry et al. STACS (2015), it is simple, more space efficient and is sufficient to support a BFS implementation optimally in O(m + n) time using at most 2n + o(n) bits. Later, we further improve the space requirement of BFS to at most n lg 3 + o(n) bits albeit with a slight increase in running time to O(m lg nf(n)) time where f(n) is any extremely slow growing function of n, and the o term in the space is a function of f(n). We also discuss a similar time-space tradeoff result for finding a minimum weight spanning tree of a weighted (bounded by polynomial in n) undirected graph using n + O(n/f(n)) bits and O(m lg nf(n)) time, for any function f(n) such that 1 ≤ f(n) ≤ n. For DFS in a graph G, we provide an implementation taking O(m + n) time and O(n lg m/n) bits. This partially answers at least for sparse graphs, a question asked by Asano et al. ISAAC (2014) whether DFS can be performed in O (m + n) time and using O(n) bits, and also simultaneously improves the DFS result of Elmasry et al. STACS (2015). Using our DFS algorithm and other careful implementations, we show how one can also test for biconnectivity, 2-edge connectivity, and find cut vertices and bridges of a given undirected graph within the same time and space bounds; earlier classical linear time algorithms for these problems used Ω(n lg n) bits of space.
Read moreDelaunay and Voronoi tessellations and minimal simple cycles in triangular region and regular-3 undirected planar graphs
Delaunay and Voronoi tessellations and minimal simple cycles in triangular region and regular-3 undirected planar graphs
String graphs of k-bend paths on a grid
String graphs of k-bend paths on a grid
Polynomial Time Algorithms for Tracking Path Problems
Given a graph G, and terminal vertices s and t, the Tracking Paths problem asks to compute a set of minimum number of vertices to be marked as trackers, such that the sequence of trackers encountered in each s-t path is unique. Tracking Paths is NP-hard in both directed and undirected graphs in general. In this paper we give a collection of polynomial time algorithms for some restricted versions of Tracking Paths. We prove that Tracking Paths is polynomial time solvable for undirected chordal graphs and tournament graphs. We also show that Tracking Paths is NP-hard in graphs with bounded maximum degree Delta ge 6, and give a 2(Delta +1)-approximate algorithm for this case. Further, we give a polynomial time algorithm which, given an undirected graph G, a tracking set Tsubseteq V(G), and a sequence of trackers pi , returns the unique s-t path in G that corresponds to pi , if one exists. Finally we analyze the version of tracking s-t paths where paths are tracked using edges instead of vertices, and we give a polynomial time algorithm for the same.
Read moreEnumerating Cycles and (s, t)-Paths in Undirected Graphs
We present the first optimal solution to list all the simple cycles in an undirected graph \(G\) with \(n\) vertices and \(m\) edges. Specifically, let \(\fancyscript{C}(G)\) denote the set of all these cycles. For a cycle \(c \in \fancyscript{C}(G)\), let \(|c|\) denote the number of edges in \(c\). Our algorithm requires \(O(m + \sum _{c \in \fancyscript{C}(G)}{|c|})\) time and is asymptotically optimal: \(\varOmega (m)\) time is necessarily required to read \(G\) as input, and \(\varOmega (\sum _{c \in \fancyscript{C}(G)}{|c|})\) time is required to list the output. We also present the first optimal solution to list all the simple paths from \(s\) to \(t\) (shortly, \((s, t)\)-paths) in an undirected graph \(G\). Let \(\fancyscript{P}_{st}(G)\) denote the set of \((s, t)\)-paths in \(G\) and, for an \((s, t)\)-path \(\pi \in \fancyscript{P}_{st}(G)\), let \(|\pi |\) be the number of edges in \(\pi \). Our algorithm lists all the \((s, t)\)-paths in \(G\) optimally in \(O(m + \sum _{\pi \in \fancyscript{P}_{st}(G)}{|\pi |})\) time.
Read moreJAVENGA: JAva‐based Visualization Environment for Network and Graph Algorithms
This paper presents JAVENGA, which is an acronym for JAva‐based Visualization Environment for Network and Graph Algorithms. It is a new visualization software for educational purposes. It includes visualizations of many well‐known graph and network algorithms. However, besides simple algorithms the tool also illustrates a visualization of a quite complex one, such as the Network Simplex algorithm. The recommended tool includes a graph editor where directed and undirected graphs can be drawn, it allows users to give input to an algorithm and then see its visualization in a user‐controlled way, and finally it incorporates a solution window where one can see the values of variables at each step of algorithm execution. JAVENGA, as its name states, has been implemented in Java language and it can be run either as an applet or as a Java application. Further, one can execute the program either locally or remotely via the Web. It can be used by instructors as auxiliary teaching material in the context of a graph theory or network optimization course. Besides, instructors can use the tool to grade students' assignments or exams. Students can also use the software in a self‐learning approach. © 2009 Wiley Periodicals, Inc. Comput Appl Eng Educ 20: 255–268, 2012
Read moreSet Labelling Vertices To Ensure Adjacency Coincides With Disjointness
Set Labelling Vertices To Ensure Adjacency Coincides With Disjointness
The crossing number of Cartesian product of sunlet graph with path and complete bipartite graph
The crossing number of a graph [Formula: see text], denoted by [Formula: see text], is defined to be the minimum number of crossings that arise among all its drawings in the plane. This concept has been of interest to many researchers who have studied it for many families of graphs. In this paper, we introduce the crossing number of Cartesian product of sunlet graph [Formula: see text] with path [Formula: see text]. Further, we prove that the crossing number of [Formula: see text] is equal to [Formula: see text], along with giving a conjecture for the general case. In addition, we utilize the vertex’s rotation concept in order to prove some necessary conditions for the complete bipartite graph [Formula: see text] to be optimal when it is drawn in the plane, by presenting an upper bound for the crossing number of any subgraph in it together with determining the exact number of crossings in case the vertices of subgraph have the same rotation.
Read moreDeep learning long-range information in undirected graphs with wave networks
Graph algorithms are key tools in many fields of science and technology. Some of these algorithms depend on propagating information between distant nodes in a graph. Recently, there have been a number of deep learning architectures proposed to learn on undirected graphs. However, most of these architectures aggregate information in the local neighborhood of a node, and therefore they may not be capable of efficiently propagating long-range information. To solve this problem we examine a recently proposed architecture, wave, which propagates information back and forth across an undirected graph in waves of nonlinear computation. We compare wave to graph convolution, an architecture based on local aggregation, and find that wave learns three different graph-based tasks with greater efficiency and accuracy. These three tasks include (1) labeling a path connecting two nodes in a graph, (2) solving a maze presented as an image, and (3) computing voltages in a circuit. These tasks range from trivial to very difficult, but wave can extrapolate from small training examples to much larger testing examples. These results show that wave may be able to efficiently solve a wide range of tasks that require long-range information propagation across undirected graphs. An implementation of the wave network, and example code for the maze task are included in the tflon deep learning toolkit (https://bitbucket.org/mkmatlock/tflon).
Read more