
A king in an n-vertex tournament graph G is a vertex that can reach any other vertex v with a path of length at most two. A kingdom is a data structure that given any vertex v returns such a path from a king to v in O(1) time. In this paper, we show how to maintain a kingdom while the tournament graph G undergoes updates. We consider both edge updates that flip the direction of an edge, and vertex updates that insert/delete vertices by activating/deactivating rows and columns of the graph’s adjacency matrix. For a single edge-flip, we show that after O(n^3/2) preprocessing time, we can maintain a kingdom in O(1) time following the edge-flip. With Õ(n^2) preprocessing time, we can support any constant number of edge-flips, vertex insertions, and vertex deletions in O(log n) time per operation. For an arbitrary number of edge-flips, we present a randomized algorithm that maintains a kingdom in O(log n) expected time following every edge-flip, and another algorithm that supports vertex insertions in O(√(n)) amortized time per insertion.
Given a set of results from range minimum queries (RMQs), our task is to construct a sequence that is consistent with the results of the queries. We study two types of RMQs: a value-based RMQ returns the minimum value and an index-based RMQ returns the index of the minimum. While the value-based version has been discussed informally in the context of competitive programming, the index-based version appears to be unexplored. In this paper, we provide a survey and unified analysis of the value-based version, and we propose efficient algorithms for the index-based version. These include algorithms for computing the lexicographically smallest consistent sequence and permutation, as well as an enumeration algorithm that outputs all consistent permutations with constant delay.
A simple graph is called a word-representable graph if there is a word over its vertex set such that any two vertices are adjacent in the graph if and only if they alternate in the word; such a word is called a word-representant of the graph. Srinivasan and Hariharasubramanian proved that a minimum length word-representant for a non-complete triangle-free circle graph on n vertices with at least one edge is of 2n-2 length. Further, they posed an open problem to find classes of word-representable graphs whose minimum length word-representants are of 2n-κ length, where n is the number of vertices and κ is the clique number of a graph. A graph is called a treelike comparability graph if it admits a transitive orientation such that the transitive reduction is a tree. When such a graph is also a permutation graph, it is called a treelike permutation graph. Recently, a subclass of treelike permutation graphs, viz., the class of double-arborescences, was established to be the first example satisfying the criterion given in the above-mentioned open problem. In this work, we devise a polynomial-time algorithm to construct a minimum length word-representant for a given treelike permutation graph and show that all treelike permutation graphs satisfy the criterion of the open problem.
The capacitated vehicle routing problem (c-VRP), which is also known as the k-tour cover problem, has been widely studied in many settings. In the Euclidean plane, a PTAS for constant capacity c was given more than 40 years ago, which has been improved and extended ever since. Here, we present arguably the easiest form of a PTAS possible. The algorithm simply chooses between greedy or complete enumeration. A direct corollary of this simplification is that the PTAS extends to basically any kind of order restriction, as long as the objective is to minimize total tour length. Furthermore, we show that when the metric is a tree, there is a clear separation in complexity between the c-VRP with and without order restrictions. We show that even for a fixed order, the c-VRP is APX-hard for arbitrary (non-constant) capacity c. This in contrast to the polynomial time approximation scheme for the standard c-VRP on trees.
We study the notion of full-compatibility: given two one-dimensional subshifts H and V, is there a two-dimensional subshift X such that H = {c_|ℤ×{0}| c ∈ X} and V ={c_|{0}×ℤ| c ∈ X} ? We show that this problem is decidable when both X and Y are nearest-neighbor SFTs but undecidable when at least one is allowed to be of slightly higher complexity. We also prove that the problem is undecidable for three nearest-neighbor SFTs combined in a three-dimensional subshift.