Data Structures And Algorithms | 2019-03-26

Words
1577
Reading
8 min
Listen
Play
8y

Data Structures And Algorithms


Approximating minimum representations of key Horn functions (1811.05160v2)

Kristóf Bérczi, Endre Boros, Ondřej Čepek, Petr Kučera, Kazuhisa Makino

2018-11-13

Horn functions form a subclass of Boolean functions and appear in many different areas of computer science and mathematics as a general tool to describe implications and dependencies. Finding minimum sized representations for such functions with respect to most commonly used measures is a computationally hard problem that remains hard even for the important subclass of key Horn functions. In this paper we provide logarithmic factor approximation algorithms for key Horn functions with respect to all measures studied in the literature for which the problem is known to be hard.

Online Graph Exploration on a Restricted Graph Class: Optimal Solutions for Tadpole Graphs (1903.00581v2)

Sebastian Brandt, Klaus-Tycho Foerster, Jonathan Maurer, Roger Wattenhofer

2019-03-01

We study the problem of online graph exploration on undirected graphs, where a searcher has to visit every vertex and return to the origin. Once a new vertex is visited, the searcher learns of all neighboring vertices and the connecting edge weights. The goal such an exploration is to minimize its total cost, where each edge traversal incurs a cost of the corresponding edge weight. We investigate the problem on tadpole graphs (also known as dragons, kites), which consist of a cycle with an attached path. Miyazaki et al. (The online graph exploration problem on restricted graphs, IEICE Transactions 92-D (9), 2009) showed that every online algorithm on these graphs must have a competitive ratio of 2-epsilon, but did not provide upper bounds for non-unit edge weights. We show via amortized analysis that a greedy approach yields a matching competitive ratio of 2 on tadpole graphs, for arbitrary non-negative edge weights.

Efficient Algorithms for Geometric Partial Matching (1903.09358v1)

Pankaj K. Agarwal, Hsien-Chih Chang, Allen Xiao

2019-03-22

Let alt and alt be two point sets in the plane of sizes alt and alt respectively (assume alt), and let alt be a parameter. A matching between alt and alt is a family of pairs in alt so that any point of alt appears in at most one pair. Given two positive integers alt and alt, we define the cost of matching alt to be alt where alt is the alt-norm. The geometric partial matching problem asks to find the minimum-cost size-alt matching between alt and alt. We present efficient algorithms for geometric partial matching problem that work for any powers of alt-norm matching objective: An exact algorithm that runs in alt time, and a alt-approximation algorithm that runs in alt time. Both algorithms are based on the primal-dual flow augmentation scheme; the main improvements involve using dynamic data structures to achieve efficient flow augmentations. With similar techniques, we give an exact algorithm for the planar transportation problem running in alt time.

Active Regression via Linear-Sample Sparsification (1711.10051v3)

Xue Chen, Eric Price

2017-11-27

We present an approach that improves the sample complexity for a variety of curve fitting problems, including active learning for linear regression, polynomial regression, and continuous sparse Fourier transforms. In the active linear regression problem, one would like to estimate the least squares solution alt minimizing alt given the entire unlabeled dataset alt but only observing a small number of labels alt. We show that alt labels suffice to find a constant factor approximation alt: [ \mathbb{E}[|X\tilde{\beta} - y|_2^2] \leq 2 \mathbb{E}[|X \beta^* - y|_2^2]. ] This improves on the best previous result of alt from leverage score sampling. We also present results for the \emph{inductive} setting, showing when alt will generalize to fresh samples; these apply to continuous settings such as polynomial regression. Finally, we show how the techniques yield improved results for the non-linear sparse Fourier transform setting.

Faster Attractor-Based Indexes (1811.12779v2)

Gonzalo Navarro, Nicola Prezza

2018-11-30

String attractors are a novel combinatorial object encompassing most known compressibility measures for highly-repetitive texts. Recently, the first index building on an attractor of size alt of a text alt was obtained. It uses alt space and finds the alt occurrences of a pattern alt in time alt for any constant alt. We now show how to reduce the search time to alt within the same space, and ultimately obtain the optimal alt time within alt space. Further, we show how to count the number of occurrences of alt in time alt within alt space, or the optimal alt time within alt space. These turn out to be the first optimal-time indexes within grammar- and Lempel-Ziv-bounded space. As a byproduct of independent interest, we show how to build, in alt expected time and without knowing the size alt of the smallest attractor, a run-length context-free grammar of size alt generating (only) alt.

Exact Distance Oracles for Planar Graphs with Failing Vertices (1807.05968v2)

Panagiotis Charalampopoulos, Shay Mozes, Benjamin Tebeka

2018-07-16

We consider exact distance oracles for directed weighted planar graphs in the presence of failing vertices. Given a source vertex alt, a target vertex alt and a set alt of alt failed vertices, such an oracle returns the length of a shortest alt-to-alt path that avoids all vertices in alt. We propose oracles that can handle any number alt of failures. More specifically, for a directed weighted planar graph with alt vertices, any constant alt, and for any alt, we propose an oracle of size alt that answers queries in alt time. In particular, we show an alt-size, alt-query-time oracle for any constant alt. This matches, up to polylogarithmic factors, the fastest failure-free distance oracles with nearly linear space. For single vertex failures (alt), our alt-size, alt-query-time oracle improves over the previously best known tradeoff of Baswana et al. [SODA 2012] by polynomial factors for alt, alt. For multiple failures, no planarity exploiting results were previously known.

An empirical analysis of exact algorithms for the unbounded knapsack problem (1903.08936v1)

Henrique Becker, Luciana S. Buriol

2019-03-21

This work presents an empirical analysis of exact algorithms for the unbounded knapsack problem, which includes seven algorithms from the literature, two commercial solvers, and more than ten thousand instances. The terminating step-off, a dynamic programming algorithm from 1966, presented the lowest mean time to solve the most recent benchmark from the literature. The threshold and collective dominances are properties of the unbounded knapsack problem first discussed in 1998, and exploited by the current state-of-the-art algorithms. The terminating step-off algorithm did not exploit such dominances, but has an alternative mechanism for dealing with dominances which does not explicitly exploits collective and threshold dominances. Also, the pricing subproblems found when solving hard cutting stock problems with column generation can cause branch-and-bound algorithms to display worst-case times. The authors present a new class of instances which favors the branch-and-bound approach over the dynamic programming approach but do not have high amounts of simple, multiple and collective dominated items. This behaviour illustrates how the definition of hard instances changes among algorithm approachs. The codes used for solving the unbounded knapsack problem and for instance generation are all available online.

Faster Exact and Approximate Algorithms for alt-Cut (1807.08144v2)

Anupam Gupta, Euiwoong Lee, Jason Li

2018-07-21

In the alt-cut problem, we are given an edge-weighted graph alt and an integer alt, and have to remove a set of edges with minimum total weight so that alt has at least alt connected components. The current best algorithms are an alt randomized algorithm due to Karger and Stein, and an alt deterministic algorithm due to Thorup. Moreover, several alt-approximation algorithms are known for the problem (due to Saran and Vazirani, Naor and Rabani, and Ravi and Sinha). It has remained an open problem to (a) improve the runtime of exact algorithms, and (b) to get better approximation algorithms. In this paper we show an alt-time algorithm for alt-cut. Moreover, we show an alt-approximation algorithm that runs in time alt, and a alt-approximation in fixed-parameter time alt.

Parallel Batch-Dynamic Graph Connectivity (1903.08794v1)

Umut A. Acar, Daniel Anderson, Guy E. Blelloch, Laxman Dhulipala

2019-03-21

With the rapid growth of graph datasets over the past decade, a new kind of dynamic algorithm, supporting the ability to ingest batches of updates and exploit parallelism is needed in order to efficiently process large streams of updates. In this paper, we study batch and parallel algorithms for the dynamic connectivity problem, a fundamental problem that has received considerable attention in sequential setting. Perhaps the best known sequential algorithm is the elegant level-set algorithm of Holm, de Lichtenberg and Thorup (HDT), which achieves alt amortized time per edge insertion or deletion, and alt time per query. In this paper, we design a parallel batch-dynamic connectivity algorithm that is work-efficient with respect to the HDT algorithm for small batch sizes, and is asymptotically faster when the average batch size is sufficiently large. Given a sequence of batched updates, where alt is the average batch size of all deletions, our algorithm achieves alt expected amortized work per edge insertion and deletion and alt depth w.h.p. Our algorithm answers a batch of alt connectivity queries in alt expected work and alt depth w.h.p. To the best of our knowledge, our algorithm is the first parallel batch-dynamic algorithm for connectivity.

Optimal Offline Dynamic alt-Edge/Vertex Connectivity (1708.03812v2)

Richard Peng, Bryce Sandlund, Daniel D. Sleator

2017-08-12

We give offline algorithms for processing a sequence of alt and alt edge and vertex connectivity queries in a fully-dynamic undirected graph. While the current best fully-dynamic online data structures for alt-edge and alt-vertex connectivity require alt and alt time per update, respectively, our per-operation cost is only alt, optimal due to the dynamic connectivity lower bound of Patrascu and Demaine. Our approach utilizes a divide and conquer scheme that transforms a graph into smaller equivalents that preserve connectivity information. This construction of equivalents is closely-related to the development of vertex sparsifiers, and shares important connections to several upcoming results in dynamic graph data structures, outside of just the offline model.



Data Structures And Algorithms | 2019-03-26 | Ecency