binarytree avatar

Data Structures And Algorithms | 2019-07-17

binarytree

Published: 16 Jul 2019 › Updated: 16 Jul 2019Data Structures And Algorithms | 2019-07-17

Data Structures And Algorithms | 2019-07-17

Data Structures And Algorithms


Improved Budgeted Connected Domination and Budgeted Edge-Vertex Domination (1907.06576v1)

Ioannis Lamprou, Ioannis Sigalas, Vassilis Zissimopoulos

2019-07-15

We consider the \emph{budgeted} version of the classical \emph{connected dominating set} problem (BCDS). Given a graph alt and an integer budget alt, we seek to find a connected subset of at most alt vertices which maximizes the number of dominated vertices in alt. We answer an open question in [Khuller, Purohit, and Sarpatwar,\ \emph{SODA 2014}] and thus we improve over the previous alt approximation. Our algorithm provides a alt approximation guarantee by employing an improved method for enforcing connectivity and performing tree decompositions. We also consider the \emph{edge-vertex domination} variant, where an edge dominates its endpoints and all vertices neighboring them. In \emph{budgeted edge-vertex domination} (BEVD), we are given a graph alt, and a budget alt, and we seek to find a, not necessarily connected, subset of edges such that the number of dominated vertices in alt is maximized. We prove there exists a alt-approximation algorithm. Also, for any alt, we present a alt-inapproximability result by a gap-preserving reduction from the \emph{maximum coverage} problem. We notice that, in the connected case, BEVD becomes equivalent to BCDS. Moreover, we examine the ``dual'' \emph{partial edge-vertex domination} (PEVD) problem, where a graph alt and a quota alt are given. The goal is to select a minimum-size set of edges to dominate at least alt vertices in alt. In this case, we present a alt-approximation algorithm by a reduction to the \emph{partial cover} problem.

Recovery Guarantees for Compressible Signals with Adversarial Noise (1907.06565v1)

Jasjeet Dhaliwal, Kyle Hambrook

2019-07-15

We provide recovery guarantees for compressible signals that have been corrupted with noise and extend the framework introduced in [1] to defend neural networks against alt-norm and alt-norm attacks. Concretely, for a signal that is approximately sparse in some transform domain and has been perturbed with noise, we provide guarantees for accurately recovering the signal in the transform domain. We can then use the recovered signal to reconstruct the signal in its original domain while largely removing the noise. Our results are general as they can be directly applied to most unitary transforms used in practice and hold for both alt-norm bounded noise and alt-norm bounded noise. In the case of alt-norm bounded noise, we prove recovery guarantees for Iterative Hard Thresholding (IHT) and Basis Pursuit (BP). For the case of alt-norm bounded noise, we provide recovery guarantees for BP. These guarantees theoretically bolster the defense framework introduced in [1] for defending neural networks against adversarial inputs. Finally, we experimentally demonstrate this defense framework using both IHT and BP against the One Pixel Attack [21], Carlini-Wagner alt and alt attacks [3], Jacobian Saliency Based attack [18], and the DeepFool attack [17] on CIFAR-10 [12], MNIST [13], and Fashion-MNIST [27] datasets. This expands beyond the experimental demonstrations of [1].

Inapproximability within W[1]: the case of Steiner Orientation (1907.06529v1)

Michal Wlodarczyk

2019-07-15

In the alt-Steiner Orientation problem we are given a mixed graph, that is, with both directed and undirected edges, and a set of alt terminal pairs. The goal is to find an orientation of the undirected edges that maximizes the number of terminal pairs for which there is a path from the source to the sink. The problem is known to be W[1]-hard when parameterized by alt and hard to approximate up to some constant for FPT algorithms assuming Gap-ETH. On the other hand, no approximation better than alt is known. We show that alt-Steiner Orientation admits no sublogarithmic approximation algorithm, even with a parameterized running time, assuming W[1] alt FPT. To obtain this result, we reduce the problem to itself via a hashing-based gap amplification technique, which turns out useful even outside of the FPT paradigm. Precisely, we rule out any approximation ratio of the form alt for parameterized algorithms and alt for purely polynomial running time, under the same assumption. This constitutes a novel inapproximability result for polynomial time algorithms obtained via tools from the FPT theory. Moreover, we prove alt-Steiner Orientation to be W[1]-complete, what provides an example of a natural approximation task that is complete in a parameterized complexity class. Finally, we apply our technique to the maximization version of Directed Multicut and obtain a simple proof that the problem admits no FPT approximation with ratio alt (assuming W[1] alt FPT) and no polynomial-time approximation with ratio alt (assuming NP alt co-RP).

Lawn: an Unbound Low Latency Timer Data Structure for Large Scale, High Throughput Systems (1906.10860v2)

Adam Lev-Libfeld

2019-06-26

As demand for Real-Time applications rises among the general public, the importance of enabling large-scale, unbound algorithms to solve conventional problems with low to no latency is critical for product viability. Timer algorithms are prevalent in the core mechanisms behind operating systems, network protocol implementation, stream processing, and several database capabilities. This paper presents a field-tested algorithm for low latency, unbound range timer structure, based upon the well excepted Timing Wheel algorithm. Using a set of queues hashed by TTL, the algorithm allows for a simpler implementation, minimal overhead no overflow and no performance degradation in comparison to the current state of the algorithms under typical use cases.

An Õalt Time Matrix Multiplication Algorithm (1612.04208v7)

Yijie Han

2016-12-10

We show, for the input alt matrices alt and alt, where alt's and alt's are real numbers, after ~{O}alt time preprocessing for each vector alt and alt, the vector multiplication alt can be computed in ~{O}alt time. This enables the matrix multiplication of two alt matrices to be computed in ~{O}alt time. Here ~{O}alt for a constant alt.

Text Indexing and Searching in Sublinear Time (1712.07431v3)

J. Ian Munro, Gonzalo Navarro, Yakov Nekrich

2017-12-20

We introduce the first index that can be built in alt time for a text of length alt, and can also be queried in alt time for a pattern of length alt. On an alphabet of size alt, our index uses alt bits, is built in alt deterministic time, and computes the number alt of occurrences of the pattern in time alt. Each such occurrence can then be found in alt time. By slightly increasing the space and construction time, to alt and alt, respectively, for any constant alt, we can find the alt pattern occurrences in time alt. We build on a novel text sampling based on difference covers, which enjoys properties that allow us efficiently computing longest common prefixes in constant time. We extend our results to the secondary memory model as well, where we give the first construction in alt I/Os of a data structure with suffix array functionality; this data structure supports pattern matching queries with optimal or nearly-optimal cost.

Seedless Graph Matching via Tail of Degree Distribution for Correlated Erdos-Renyi Graphs (1907.06334v1)

Mahdi Bozorg, Saber Salehkaleybar, Matin Hashemi

2019-07-15

The graph matching problem refers to recovering the node-to-node correspondence between two correlated graphs. A previous work theoretically showed that recovering is feasible in sparse Erdos-Renyi graphs if and only if the probability of having an edge between a pair of nodes in one of the graphs and also between the corresponding nodes in the other graph is in the order of alt, where n is the number of nodes. In this paper, we propose a graph matching algorithm which obtains correct matching with high probability in Erdos-Renyi graphs for the region of alt without using a seed set of pre-matched node pairs as an input. The algorithm assigns structurally innovative features to high-degree nodes based on the tail of empirical degree distribution of their neighbor nodes. Then, it matches the high-degree nodes according to these features, and finally obtains a matching for the remaining nodes. We evaluate the performance of proposed algorithm in the regions of alt and alt. Experiments show that it outperforms previous works in both regions.

New Paths from Splay to Dynamic Optimality (1907.06310v1)

Caleb C. Levy, Robert E. Tarjan

2019-07-15

Consider the task of performing a sequence of searches in a binary search tree. After each search, an algorithm is allowed to arbitrarily restructure the tree, at a cost proportional to the amount of restructuring performed. The cost of an execution is the sum of the time spent searching and the time spent optimizing those searches with restructuring operations. This notion was introduced by Sleator and Tarjan in (JACM, 1985), along with an algorithm and a conjecture. The algorithm, Splay, is an elegant procedure for performing adjustments while moving searched items to the top of the tree. The conjecture, called "dynamic optimality," is that the cost of splaying is always within a constant factor of the optimal algorithm for performing searches. The conjecture stands to this day. In this work, we attempt to lay the foundations for a proof of the dynamic optimality conjecture.

Splaying Preorders and Postorders (1907.06309v1)

Caleb C. Levy, Robert E. Tarjan

2019-07-15

Let alt be a binary search tree. We prove two results about the behavior of the Splay algorithm (Sleator and Tarjan 1985). Our first result is that inserting keys into an empty binary search tree via splaying in the order of either alt's preorder or alt's postorder takes linear time. Our proof uses the fact that preorders and postorders are pattern-avoiding: i.e. they contain no subsequences that are order-isomorphic to alt and alt, respectively. Pattern-avoidance implies certain constraints on the manner in which items are inserted. We exploit this structure with a simple potential function that counts inserted nodes lying on access paths to uninserted nodes. Our methods can likely be extended to permutations that avoid more general patterns. Second, if alt is any other binary search tree with the same keys as alt and alt is weight-balanced (Nievergelt and Reingold 1973), then splaying alt's preorder sequence or alt's postorder sequence starting from alt takes linear time. To prove this, we demonstrate that preorders and postorders of balanced search trees do not contain many large "jumps" in symmetric order, and exploit this fact by using the dynamic finger theorem (Cole et al. 2000). Both of our results provide further evidence in favor of the elusive "dynamic optimality conjecture."

Zip Trees (1806.06726v3)

Robert E. Tarjan, Caleb C. Levy, Stephen Timmel

2018-06-18

We introduce the zip tree, a form of randomized binary search tree that integrates previous ideas into one practical, performant, and pleasant-to-implement package. A zip tree is a binary search tree in which each node has a numeric rank and the tree is (max)-heap-ordered with respect to ranks, with rank ties broken in favor of smaller keys. Zip trees are essentially treaps (Seidel and Aragon 1996), except that ranks are drawn from a geometric distribution instead of a uniform distribution, and we allow rank ties. These changes enable us to use fewer random bits per node. We perform insertions and deletions by unmerging and merging paths ("unzipping" and "zipping") rather than by doing rotations, which avoids some pointer changes and improves efficiency. The methods of zipping and unzipping take inspiration from previous top-down approaches to insertion and deletion (Stephenson 1980; Mart'inez and Roura 1998; Sprugnoli 1980). From a theoretical standpoint, this work provides two main results. First, zip trees require only alt bits (with high probability) to represent the largest rank in an alt-node binary search tree; previous data structures require alt bits for the largest rank. Second, zip trees are naturally isomorphic to skip lists (Pugh 1990), and simplify the mapping of (Dean and Jones 2007) between skip lists and binary search trees.



Leave Data Structures And Algorithms | 2019-07-17 to:

Written by

Data Structure and Algorithms

Read more #algorithms posts


Best Posts From binarytree

We have not curated any of binarytree's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From binarytree