Skip to main content

Showing 1–33 of 33 results for author: Tarjan, R

Searching in archive cs. Search in all archives.
.
  1. arXiv:2404.04552  [pdf, other

    cs.DS

    Fast and Simple Sorting Using Partial Information

    Authors: Bernhard Haeupler, Richard Hladík, John Iacono, Vaclav Rozhon, Robert Tarjan, Jakub Tětek

    Abstract: We consider the problem of sorting a set of items having an unknown total order by doing binary comparisons of the items, given the outcomes of some pre-existing comparisons. We present a simple algorithm with a running time of $O(m+n+\log T)$, where $n$, $m$, and $T$ are the number of items, the number of pre-existing comparisons, and the number of total orders consistent with the outcomes of the… ▽ More

    Submitted 6 April, 2024; originally announced April 2024.

    ACM Class: F.2.2; G.2.2

  2. arXiv:2403.16936  [pdf, other

    cs.DS

    Minimum-cost paths for electric cars

    Authors: Dani Dorfman, Haim Kaplan, Robert E. Tarjan, Mikkel Thorup, Uri Zwick

    Abstract: An electric car equipped with a battery of a finite capacity travels on a road network with an infrastructure of charging stations. Each charging station has a possibly different cost per unit of energy. Traversing a given road segment requires a specified amount of energy that may be positive, zero or negative. The car can only traverse a road segment if it has enough charge to do so (the charge… ▽ More

    Submitted 25 March, 2024; originally announced March 2024.

    Comments: 9 pages, 2 figures, SOSA 2024

    MSC Class: 68W05 ACM Class: F.2.2

  3. arXiv:2311.11793  [pdf, other

    cs.DS

    Universal Optimality of Dijkstra via Beyond-Worst-Case Heaps

    Authors: Bernhard Haeupler, Richard Hladík, Václav Rozhoň, Robert Tarjan, Jakub Tětek

    Abstract: This paper proves that Dijkstra's shortest-path algorithm is universally optimal in both its running time and number of comparisons when combined with a sufficiently efficient heap data structure. Universal optimality is a powerful beyond-worst-case performance guarantee for graph algorithms that informally states that a single algorithm performs as well as possible for every single graph topolo… ▽ More

    Submitted 9 April, 2024; v1 submitted 20 November, 2023; originally announced November 2023.

    ACM Class: F.2.2; G.2.2

  4. arXiv:2307.07660  [pdf, other

    cs.DS

    Zip-zip Trees: Making Zip Trees More Balanced, Biased, Compact, or Persistent

    Authors: Ofek Gila, Michael T. Goodrich, Robert E. Tarjan

    Abstract: We define simple variants of zip trees, called zip-zip trees, which provide several advantages over zip trees, including overcoming a bias that favors smaller keys over larger ones. We analyze zip-zip trees theoretically and empirically, showing, e.g., that the expected depth of a node in an $n$-node zip-zip tree is at most $1.3863\log n-1+o(1)$, which matches the expected depth of treaps and bina… ▽ More

    Submitted 2 May, 2024; v1 submitted 14 July, 2023; originally announced July 2023.

    Comments: v2 to appear in the journal Algorithmica, 24 pages, 9 figures

    ACM Class: E.1

  5. arXiv:2307.02772  [pdf, ps, other

    cs.DS

    Efficiency of Self-Adjusting Heaps

    Authors: Corwin Sinnamon, Robert E. Tarjan

    Abstract: Since the invention of the pairing heap by Fredman et al., it has been an open question whether this or any other simple "self-adjusting" heap supports decrease-key operations on $n$-item heaps in $O(\log\log n)$ time. Using powerful new techniques, we answer this question in the affirmative. We prove that both slim and smooth heaps, recently introduced self-adjusting heaps, support heap operation… ▽ More

    Submitted 6 July, 2023; originally announced July 2023.

  6. arXiv:2305.19015  [pdf, other

    cs.DS

    Optimal energetic paths for electric cars

    Authors: Dani Dorfman, Haim Kaplan, Robert E. Tarjan, Uri Zwick

    Abstract: A weighted directed graph $G=(V,A,c)$, where $A\subseteq V\times V$ and $c:A\to R$, describes a road network in which an electric car can roam. An arc $uv$ models a road segment connecting the two vertices $u$ and $v$. The cost $c(uv)$ of an arc $uv$ is the amount of energy the car needs to traverse the arc. This amount may be positive, zero or negative. To make the problem realistic, we assume th… ▽ More

    Submitted 30 May, 2023; originally announced May 2023.

    Comments: 11 pages

    MSC Class: 68W05 ACM Class: F.2.2

  7. arXiv:2211.11009  [pdf, other

    cs.DS

    Optimal resizable arrays

    Authors: Robert E. Tarjan, Uri Zwick

    Abstract: A \emph{resizable array} is an array that can \emph{grow} and \emph{shrink} by the addition or removal of items from its end, or both its ends, while still supporting constant-time \emph{access} to each item stored in the array given its \emph{index}. Since the size of an array, i.e., the number of items in it, varies over time, space-efficient maintenance of a resizable array requires dynamic mem… ▽ More

    Submitted 29 May, 2023; v1 submitted 20 November, 2022; originally announced November 2022.

    Comments: Preliminary version appeared in SOSA 2023. Section 6.3 revised

    MSC Class: 68P05; 68Q25 ACM Class: F.2.2; E.2

  8. arXiv:2208.11791  [pdf, ps, other

    cs.DS

    A Simpler Proof that Pairing Heaps Take O(1) Amortized Time per Insertion

    Authors: Corwin Sinnamon, Robert Tarjan

    Abstract: The pairing heap is a simple "self-adjusting" implementation of a heap (priority queue). Inserting an item into a pairing heap or decreasing the key of an item takes O(1) time worst-case, as does melding two heaps. But deleting an item of minimum key can take time linear in the heap size in the worst case. The paper that introduced the pairing heap proved an O(log n) amortized time bound for each… ▽ More

    Submitted 24 August, 2022; originally announced August 2022.

    Comments: 13 pages, 1 figure, submitted to SOSA 2023

    MSC Class: 68P05 (Primary) 68W40 (Secondary) ACM Class: F.2.2; E.1; E.2

  9. arXiv:2201.07197  [pdf, ps, other

    cs.DS

    Finding Strong Components Using Depth-First Search

    Authors: Robert E. Tarjan, Uri Zwick

    Abstract: We survey three algorithms that use depth-first search to find the strong components of a directed graph in linear time: (1) Tarjan's algorithm; (2) a cycle-finding algorithm; and (3) a bidirectional search algorithm.

    Submitted 11 April, 2022; v1 submitted 18 January, 2022; originally announced January 2022.

    Comments: 27 pages. In memory of Pierre Rosenstiehl. A slightly revised version

    MSC Class: 68Q25 ACM Class: F.2.2

  10. arXiv:2108.04458   

    cs.DS

    A Tight Analysis of Slim Heaps and Smooth Heaps

    Authors: Corwin Sinnamon, Robert E. Tarjan

    Abstract: The smooth heap and the closely related slim heap are recently invented self-adjusting implementations of the heap (priority queue) data structure. We analyze the efficiency of these data structures. We obtain the following amortized bounds on the time per operation: $O(1)$ for make-heap, insert, find-min, and meld; $O(\log\log n)$ for decrease-key; and $O(\log n)$ for delete-min and delete, where… ▽ More

    Submitted 5 November, 2021; v1 submitted 10 August, 2021; originally announced August 2021.

    Comments: This paper was withdrawn by the authors due to a nontrivial error in Lemma 13. The proof does not adequately account for phantom links

  11. arXiv:2107.04919  [pdf, other

    cs.DS

    Analysis of Smooth Heaps and Slim Heaps

    Authors: Maria Hartmann, László Kozma, Corwin Sinnamon, Robert E. Tarjan

    Abstract: The smooth heap is a recently introduced self-adjusting heap [Kozma, Saranurak, 2018] similar to the pairing heap [Fredman, Sedgewick, Sleator, Tarjan, 1986]. The smooth heap was obtained as a heap-counterpart of Greedy BST, a binary search tree updating strategy conjectured to be \emph{instance-optimal} [Lucas, 1988], [Munro, 2000]. Several adaptive properties of smooth heaps follow from this con… ▽ More

    Submitted 10 July, 2021; originally announced July 2021.

    Comments: 22 pages, 9 figures

  12. arXiv:2003.01203  [pdf, other

    cs.DC cs.DS

    Concurrent Disjoint Set Union

    Authors: Siddhartha V. Jayanti, Robert E. Tarjan

    Abstract: We develop and analyze concurrent algorithms for the disjoint set union (union-find) problem in the shared memory, asynchronous multiprocessor model of computation, with CAS (compare and swap) or DCAS (double compare and swap) as the synchronization primitive. We give a deterministic bounded wait-free algorithm that uses DCAS and has a total work bound of… ▽ More

    Submitted 2 March, 2020; originally announced March 2020.

    Comments: 40 pages, combines ideas in two previous PODC papers

  13. arXiv:2003.00614  [pdf, ps, other

    cs.DS cs.DC

    Connected Components on a PRAM in Log Diameter Time

    Authors: S. Cliff Liu, Robert E. Tarjan, Peilin Zhong

    Abstract: We present an $O(\log d + \log\log_{m/n} n)$-time randomized PRAM algorithm for computing the connected components of an $n$-vertex, $m$-edge undirected graph with maximum component diameter $d$. The algorithm runs on an ARBITRARY CRCW (concurrent-read, concurrent-write with arbitrary write resolution) PRAM using $O(m)$ processors. The time bound holds with good probability. Our algorithm is bas… ▽ More

    Submitted 21 April, 2021; v1 submitted 1 March, 2020; originally announced March 2020.

    ACM Class: F.2.2

  14. arXiv:1907.06310  [pdf, other

    cs.DS

    A Foundation for Proving Splay is Dynamically Optimal

    Authors: Caleb C. Levy, Robert E. Tarjan

    Abstract: Consider the task of performing a sequence of searches in a binary search tree. After each search, we allow an algorithm to arbitrarily restructure the tree. The cost of executing the task is the sum of the time spent searching and the time spent optimizing the searches with restructuring operations. Sleator and Tarjan introduced this notion in 1985, along with an algorithm and a conjecture. The a… ▽ More

    Submitted 8 May, 2022; v1 submitted 14 July, 2019; originally announced July 2019.

    Comments: V1 was titled "New Paths from Splay to Dynamic Optimality." V2 is a major revision. V3 adds refinements. This work is based on the first author's Ph.D. thesis. It shares expository material with arXiv:1907.06309. We presented an earlier version at the Symposium on Discrete Algorithms. 29 pages, 7 figures

  15. arXiv:1907.06309  [pdf, other

    cs.DS

    Splaying Preorders and Postorders

    Authors: Caleb C. Levy, Robert E. Tarjan

    Abstract: Let $T$ 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 $T$'s preorder or $T$'s postorder takes linear time. Our proof uses the fact that preorders and postorders are pattern-avoiding: i.e. they contain no subsequences that… ▽ More

    Submitted 14 July, 2019; originally announced July 2019.

  16. arXiv:1812.06177  [pdf, ps, other

    cs.DS

    Simple Concurrent Labeling Algorithms for Connected Components

    Authors: S. Cliff Liu, Robert E. Tarjan

    Abstract: We study a class of simple algorithms for concurrently computing the connected components of an $n$-vertex, $m$-edge graph. Our algorithms are easy to implement in either the COMBINING CRCW PRAM or the MPC computing model. For two related algorithms in this class, we obtain $Θ(\lg n)$ step and $Θ(m \lg n)$ work bounds. For two others, we obtain $O(\lg^2 n)$ step and $O(m \lg^2 n)$ work bounds, whi… ▽ More

    Submitted 2 March, 2020; v1 submitted 14 December, 2018; originally announced December 2018.

    Comments: 24 pages

    ACM Class: F.2.2

  17. Zip Trees

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

    Abstract: 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… ▽ More

    Submitted 21 February, 2022; v1 submitted 18 June, 2018; originally announced June 2018.

    Comments: V5 is the final published version. V4 appeared in the Workshop on Algorithms and Data Structures in 2019. V1 was presented at Highlights of Algorithms in 2018. 14 pages, 3 figures

    Journal ref: ACM Transactions on Algorithms, 17(4), 34:1--12, 2021

  18. arXiv:1612.01514  [pdf, other

    cs.DC cs.DS

    A Randomized Concurrent Algorithm for Disjoint Set Union

    Authors: Siddhartha V. Jayanti, Robert E. Tarjan

    Abstract: The disjoint set union problem is a basic problem in data structures with a wide variety of applications. We extend a known efficient sequential algorithm for this problem to obtain a simple and efficient concurrent wait-free algorithm running on an asynchronous parallel random access machine (APRAM). Crucial to our result is the use of randomization. Under a certain independence assumption, for a… ▽ More

    Submitted 5 December, 2016; originally announced December 2016.

  19. arXiv:1511.07741  [pdf, ps, other

    cs.DS

    A Note on Fault Tolerant Reachability for Directed Graphs

    Authors: Loukas Georgiadis, Robert E. Tarjan

    Abstract: In this note we describe an application of low-high orders in fault-tolerant network design. Baswana et al. [DISC 2015] study the following reachability problem. We are given a flow graph $G = (V, A)$ with start vertex $s$, and a spanning tree $T =(V, A_T)$ rooted at $s$. We call a set of arcs $A'$ valid if the subgraph $G' = (V, A_T \cup A')$ of $G$ has the same dominators as $G$. The goal is to… ▽ More

    Submitted 24 November, 2015; originally announced November 2015.

  20. arXiv:1510.06535  [pdf, ps, other

    cs.DS

    Hollow Heaps

    Authors: Thomas Dueholm Hansen, Haim Kaplan, Robert E. Tarjan, Uri Zwick

    Abstract: We introduce the hollow heap, a very simple data structure with the same amortized efficiency as the classical Fibonacci heap. All heap operations except delete and delete-min take $O(1)$ time, worst case as well as amortized; delete and delete-min take $O(\log n)$ amortized time on a heap of $n$ items. Hollow heaps are by far the simplest structure to achieve this. Hollow heaps combine two novel… ▽ More

    Submitted 22 October, 2015; originally announced October 2015.

    Comments: 27 pages, 7 figures, preliminary version appeared in ICALP 2015

  21. arXiv:1506.03528  [pdf, other

    cs.DS

    Amortized Rotation Cost in AVL Trees

    Authors: Mahdi Amani, Kevin A. Lai, Robert E. Tarjan

    Abstract: An AVL tree is the original type of balanced binary search tree. An insertion in an $n$-node AVL tree takes at most two rotations, but a deletion in an $n$-node AVL tree can take $Θ(\log n)$. A natural question is whether deletions can take many rotations not only in the worst case but in the amortized case as well. A sequence of $n$ successive deletions in an $n$-node tree takes $O(n)$ rotations,… ▽ More

    Submitted 10 June, 2015; originally announced June 2015.

  22. arXiv:1407.5750  [pdf, other

    cs.DS

    Fibonacci Heaps Revisited

    Authors: Haim Kaplan, Robert E. Tarjan, Uri Zwick

    Abstract: The Fibonacci heap is a classic data structure that supports deletions in logarithmic amortized time and all other heap operations in O(1) amortized time. We explore the design space of this data structure. We propose a version with the following improvements over the original: (i) Each heap is represented by a single heap-ordered tree, instead of a set of trees. (ii) Each decrease-key operation d… ▽ More

    Submitted 22 July, 2014; originally announced July 2014.

  23. arXiv:1403.0252  [pdf, other

    cs.DS

    A Back-to-Basics Empirical Study of Priority Queues

    Authors: Daniel H. Larkin, Siddhartha Sen, Robert E. Tarjan

    Abstract: The theory community has proposed several new heap variants in the recent past which have remained largely untested experimentally. We take the field back to the drawing board, with straightforward implementations of both classic and novel structures using only standard, well-known optimizations. We study the behavior of each structure on a variety of inputs, including artificial workloads, worklo… ▽ More

    Submitted 2 March, 2014; originally announced March 2014.

  24. arXiv:1310.2118  [pdf, ps, other

    cs.DS

    Finding Dominators via Disjoint Set Union

    Authors: Wojciech Fraczak, Loukas Georgiadis, Andrew Miller, Robert E. Tarjan

    Abstract: The problem of finding dominators in a directed graph has many important applications, notably in global optimization of computer code. Although linear and near-linear-time algorithms exist, they use sophisticated data structures. We develop an algorithm for finding dominators that uses only a "static tree" disjoint set data structure in addition to simple lists and maps. The algorithm runs in nea… ▽ More

    Submitted 8 October, 2013; originally announced October 2013.

  25. arXiv:1210.8303  [pdf, ps, other

    cs.DS

    Dominator Tree Certification and Independent Spanning Trees

    Authors: Loukas Georgiadis, Robert E. Tarjan

    Abstract: How does one verify that the output of a complicated program is correct? One can formally prove that the program is correct, but this may be beyond the power of existing methods. Alternatively one can check that the output produced for a particular input satisfies the desired input-output relation, by running a checker on the input-output pair. Then one only needs to prove the correctness of the c… ▽ More

    Submitted 7 March, 2013; v1 submitted 31 October, 2012; originally announced October 2012.

    Comments: Rewritten abstract and introduction. Added references

    ACM Class: D.3.4; E.1; F.2.2; G.2.2

  26. arXiv:1112.0784  [pdf, ps, other

    cs.DS

    A New Approach to Incremental Cycle Detection and Related Problems

    Authors: Michael A. Bender, Jeremy T. Fineman, Seth Gilbert, Robert E. Tarjan

    Abstract: We consider the problem of detecting a cycle in a directed graph that grows by arc insertions, and the related problems of maintaining a topological order and the strong components of such a graph. For these problems, we give two algorithms, one suited to sparse graphs, and the other to dense graphs. The former takes the minimum of O(m^{3/2}) and O(mn^{2/3}) time to insert m arcs into an n-vertex… ▽ More

    Submitted 4 December, 2011; originally announced December 2011.

    ACM Class: E.1; F.2.0

  27. arXiv:1105.2397  [pdf, other

    cs.DS

    Incremental Cycle Detection, Topological Ordering, and Strong Component Maintenance

    Authors: Bernhard Haeupler, Telikepalli Kavitha, Rogers Mathew, Siddhartha Sen, Robert Endre Tarjan

    Abstract: We present two on-line algorithms for maintaining a topological order of a directed $n$-vertex acyclic graph as arcs are added, and detecting a cycle when one is created. Our first algorithm handles $m$ arc additions in $O(m^{3/2})$ time. For sparse graphs ($m/n = O(1)$), this bound improves the best previous bound by a logarithmic factor, and is tight to within a constant factor among algorithms… ▽ More

    Submitted 12 May, 2011; originally announced May 2011.

    Comments: 31 pages

    ACM Class: F.2.2; G.2.2; E.1

  28. arXiv:0903.0116  [pdf, other

    cs.DS

    Heaps Simplified

    Authors: Bernhard Haeupler, Siddhartha Sen, Robert E. Tarjan

    Abstract: The heap is a basic data structure used in a wide variety of applications, including shortest path and minimum spanning tree algorithms. In this paper we explore the design space of comparison-based, amortized-efficient heap implementations. From a consideration of dynamic single-elimination tournaments, we obtain the binomial queue, a classical heap implementation, in a simple and natural way.… ▽ More

    Submitted 28 February, 2009; originally announced March 2009.

    ACM Class: E.1

  29. arXiv:0803.0792  [pdf, other

    cs.DS

    Incremental Topological Ordering and Strong Component Maintenance

    Authors: Bernhard Haeupler, Siddhartha Sen, Robert E. Tarjan

    Abstract: We present an on-line algorithm for maintaining a topological order of a directed acyclic graph as arcs are added, and detecting a cycle when one is created. Our algorithm takes O(m^{1/2}) amortized time per arc, where m is the total number of arcs. For sparse graphs, this bound improves the best previous bound by a logarithmic factor and is tight to within a constant factor for a natural class… ▽ More

    Submitted 6 March, 2008; originally announced March 2008.

  30. arXiv:0711.2710  [pdf, ps, other

    cs.DS

    Finding a Feasible Flow in a Strongly Connected Network

    Authors: Bernhard Haeupler, Robert E. Tarjan

    Abstract: We consider the problem of finding a feasible single-commodity flow in a strongly connected network with fixed supplies and demands, provided that the sum of supplies equals the sum of demands and the minimum arc capacity is at least this sum. A fast algorithm for this problem improves the worst-case time bound of the Goldberg-Rao maximum flow method by a constant factor. Erlebach and Hagerup ga… ▽ More

    Submitted 3 December, 2007; v1 submitted 16 November, 2007; originally announced November 2007.

    Comments: 4 pages, submitted to Operations Research Letters, minor updates: typos corrected, speed-up = improvement of the worst-case time bound

  31. arXiv:0711.1682  [pdf, ps, other

    cs.DS

    Data Structures for Mergeable Trees

    Authors: Loukas Georgiadis, Haim Kaplan, Nira Shafrir, Robert E. Tarjan, Renato F. Werneck

    Abstract: Motivated by an application in computational topology, we consider a novel variant of the problem of efficiently maintaining dynamic rooted trees. This variant requires merging two paths in a single operation. In contrast to the standard problem, in which only one tree arc changes at a time, a single merge operation can change many arcs. In spite of this, we develop a data structure that support… ▽ More

    Submitted 11 November, 2007; originally announced November 2007.

    ACM Class: F.2.2

  32. arXiv:cs/0207061  [pdf, ps, other

    cs.DS

    Linear-Time Pointer-Machine Algorithms for Path-Evaluation Problems on Trees and Graphs

    Authors: Adam L. Buchsbaum, Loukas Georgiadis, Haim Kaplan, Anne Rogers, Robert E. Tarjan, Jeffery R. Westbrook

    Abstract: We present algorithms that run in linear time on pointer machines for a collection of problems, each of which either directly or indirectly requires the evaluation of a function defined on paths in a tree. These problems previously had linear-time algorithms but only for random-access machines (RAMs); the best pointer-machine algorithms were super-linear by an inverse-Ackermann-function factor.… ▽ More

    Submitted 14 November, 2006; v1 submitted 15 July, 2002; originally announced July 2002.

    Comments: 41 pages; 10 figures; 1 table; 65 references. This work is partially covered by the extended abstracts, ``Linear-Time Pointer-Machine Algorithms for Least Common Ancestors, MST Verification, and Dominators,'' Proc. 30th ACM Symp. on Theory of Computing, pp. 279-888, 1998, and ``Finding Dominators Revisited,'' Proc. 15th ACM-SIAM Symp. on Discrete Algorithms, pp. 862-871, 2004

    ACM Class: D.3.4; E.1; F.1.1; F.2.2; G.2.2

  33. Faster Parametric Shortest Path and Minimum Balance Algorithms

    Authors: Neal Young, Robert Tarjan, James Orlin

    Abstract: The parametric shortest path problem is to find the shortest paths in graph where the edge costs are of the form w_ij+lambda where each w_ij is constant and lambda is a parameter that varies. The problem is to find shortest path trees for every possible value of lambda. The minimum-balance problem is to find a ``weighting'' of the vertices so that adjusting the edge costs by the vertex weights… ▽ More

    Submitted 18 May, 2002; originally announced May 2002.

    ACM Class: F.2.2; G.2.2; G.1.6

    Journal ref: Networks 21(2):205-221 (1991)