Low-Memory Tour Reversal in Directed Graphs
نویسندگان
چکیده
We consider the problem of reversing a tour (i1, i2, . . . , il) in a directed graph G = (V, E) with positive integer vertices V and edges E ⊆ V × V , where ij ∈ V and (ij, ij+1) ∈ E for all j = 1, . . . , l − 1. The tour can be processed in last-in-first-out order as long as the size of the corresponding stack does not exceed the available memory. This constraint is violated in most cases when considering control-flow graphs of large-scale numerical simulation programs. The tour reversal problem also arises in adjoint programs used, for example, in the context of derivative-based nonlinear optimization, sensitivity analysis, or other, often inverse, problems. The intention is to compress the tour in order not to run out of memory. As the general optimal compression problem was proven to be NP-hard [1] and big control-flow graphs results from loops in programs we do not want to use general purpose algorithms to compress the tour. We rather want to compress the tour by finding loops and replace the redundant information by proper representation of the loops.
منابع مشابه
Long Tours and Short Superstrings
This paper considers weight-maximizing variants of the classical symmetric and asymmetric travelingsalesman problems. Like their weight-minimizing counterparts, these variants are MAX SNP-hard. We present the first nontrivial approximation algorithms for these problems. Our algorithm for directed graphs finds a tour whose weight is at least 38 63 ≈ 0.603 times the weight of a maximum-weight tou...
متن کاملLong Tours and Short Superstrings (Preliminary Version)
This paper considers weight-maximizing variants of the classical symmetric and asymmetric travelingsalesman problems. Like their weight-minimizing counterparts, these variants are M A X SNP-hard. We present the first nontrivial approximation algorithms for these problems. Our algorithm for directed graphs finds a tour whose weight is a t least Q M 0.603 times the weight of a maximum-weight tour...
متن کاملIndependent domination in directed graphs
In this paper we initialize the study of independent domination in directed graphs. We show that an independent dominating set of an orientation of a graph is also an independent dominating set of the underlying graph, but that the converse is not true in general. We then prove existence and uniqueness theorems for several classes of digraphs including orientations of complete graphs, paths, tr...
متن کاملMulti-Eulerian Tours of Directed Graphs
Not every graph has an Eulerian tour. But every finite, strongly connected graph has a multi-Eulerian tour, which we define as a closed path that uses each directed edge at least once, and uses edges e and f the same number of times whenever tail(e) = tail(f). This definition leads to a simple generalization of the BEST Theorem. We then show that the minimal length of a multi-Eulerian tour is b...
متن کاملOn independent domination numbers of grid and toroidal grid directed graphs
A subset $S$ of vertex set $V(D)$ is an {em indpendent dominating set} of $D$ if $S$ is both an independent and a dominating set of $D$. The {em indpendent domination number}, $i(D)$ is the cardinality of the smallest independent dominating set of $D$. In this paper we calculate the independent domination number of the { em cartesian product} of two {em directed paths} $P_m$ and $P_n$ for arbi...
متن کامل