Parallel Techniques for Construction of Trees and Related Problems

Total Page:16

File Type:pdf, Size:1020Kb

Parallel Techniques for Construction of Trees and Related Problems Parallel techniques for construction of trees and related problems By Teresa Maria Przytycka Magister, Warsaw University A THESIS SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY in THE FACULTY OF GRADUATE STUDIES Department of Computer Science We accept this thesis as conforming to the required standard THE UNIVERSITY OF BRITISH COLUMBIA August, 1990 © Teresa Przytycka, 1990 In presenting this thesis in partial fulfilment of the requirements for an advanced degree at the University of British Columbia, I agree that the Library shall make it freely available for reference and study. I further agree that permission for extensive copying of this thesis for scholarly purposes may be granted by the head of my department or by his or her representatives. It is understood that copying or publication of this thesis for financial gain shall not be allowed without my written permission. Department of CompcU-e^ 2cc'&r? c£ The University of British Columbia Vancouver, Canada DE-6 (2/88) Abstract The concept of a tree has been used in various areas of mathematics for over a century. In particular, trees appear to be one of the most fundamental notions in computer science. Sequential algorithms for trees are generally well studied. Unfortunately many of these sequential algorithms use methods which seem to be inherently sequential. One of the contributions of this thesis is the introduction of several parallel techniques for the construction of various types of trees and the presentation of new parallel tree construction algorithms using these methods. Along with the parallel tree construction techniques presented here, we develop techniques which have broader applications. We use the Parallel Random Access Machine as our model of computation. We consider two basic methods of constructing trecs:tree expansion and tree synthesis. In the tree expansion method, we start with a single vertex and construct a tree by adding nodes of degree one and/or by subdividing edges. We use the parallel tree expansion technique to construct the tree representation for graphs in the family of graphs known as cographs. In the tree synthesis method, we start with a forest of single node subtrees and construct a tree by adding edges or (for rooted trees) by creating parent nodes for some roots of the trees in the forest. We present a family of parallel and sequential algorithms to construct various approximations to the Huffman tree. All these algorithms apply the tree synthesis method by constructing a tree in a level-by-level fashion. To support one of the algorithms in the family we develop a technique which we call the cascading sampling technique. One might suspect that the parallel tree synthesis method can be applied only to trees of polylogarithmic height, but this is not the case.We present a technique which we call the valley filling technique and develop its accelerated version called the accelerated valley filling technique. We present an application of this technique to an optimal parallel algorithm for construction of minimax trees. ii Table of Contents Abstract ii List of Figures vi Acknowledgements viii CHAPTER 1: INTRODUCTION 1 1.1. The Computation Model 2 1.2. Parallel Construction of Trees 5 1.3. A systematic approach to algorithmic problems 8 1.4. Basic definitions and notation 9 CHAPTER 2: BASIC TECHNIQUES FOR DESIGN OF PARALLEL ALGORITHMS 12 2.1. Brent's scheduling principle 12 2.2. Prefix sum computation 13 2.3. List ranking , 15 2.4. Euler tour technique 17 2.5. Tree Contraction 18 2.5.1. A tree contraction algorithm 20 2.5.2. Bottom-up Algebraic Tree Computations 25 2.5.2. Top-down Algebraic Tree Computations 31 2.6. Cascading sampling 32 2.7. Parallel divide and conquer and the All Dominating Neighbors problem 40 iii 2.7.1. The ADN problem and the visibility tree 42 2.7.2. An optimal algorithm for the ADN problem 44 2.7.3. Applications 47 2.7.3.1. The All Strictly Dominating Neighbors (ASDN) problem 49 2.7.3.2. Computing horizontal neighbors for vertices of a monotone polygon 50 2.8. Summary 53 CHAPTER 3: PARALLEL TREE EXPANSION - CONSTRUCTION OF TREE REPRESENTATION FOR COGRAPHS 55 3.1. Definitions and basic properties 57 3.2. Bunches and lines in a cotree 60 3.3. A top level description of the cotree construction algorithm 68 3.4. Implementation of the reduce operation 73 3.5. Adjacency matrix construction from the cotree representation of a cograph 75 3.6. Reduction of the processor requirements 77 3.7. An application of the cotree construction algorithm - construction a tree representation for a parity graph 78 3.8. Summary 80 CHAPTER 4 : PARALLEL LEVEL-BY-LEVEL TREE SYNTHESIS: CONSTRUCTION OF BINARY TREES WITH ALMOST OPTIMAL WEIGHTED PATH LENGTH 82 4.1. Basic Construction Scheme (BC©) 86 4.2. Approximate sorting and merging of approximately sorted sequences 99 4.3. General Construction Scheme (9^/6) 101 iv 4.4. Parallel interpretations of $"5/6 102 4.4.1. 0(log n) time n^°fog^ ^RJ^ processors parallel interpretation of gcs with error bounded by 0.172 103 4.4.2 A 0(klog n log*n) time n processor parallel interpretation of gcs with error bounded by l/n^ 104 4.1.3.0(k2log n) time n2 processor parallel interpretation of gcs with error bounded by 4- 110 4.5. Sequential interpretations of the 9^<^ 121 4.6. Summary 124 CHAPTER 5 : VALLEY FILLING TECHNIQUE AND CONSTRUCTION OF MINIMAX TREES 127 5.1. Valley Filling Technique 130 5.2. Level tree and its construction 132 5.2.1. Construction of level tree 135 5.2.2. Computing the load function 137 5.3. An optimal algorithm for alphabetic minimax tree problem 139 5.4. Other versions of the minimax tree problem 142 5.4.1. t-ary alphabetic minimax trees 142 5.4.2. Non-alphabetic t-ary minimax trees 148 5.4.3. Minimax trees with real weights 153 5.5. Summary 153 CHAPTER 6 : CONCLUDING REMARKS 156 REFERENCES 164 Index 169 v List of figures Figure 2.1. A prefix sum computation 14 Figure 2.2. Prune and Bypass operations 21 Figure 2.3. Interpretation of Trees as Binary Trees 22 Figure 2.4. A tree contraction sequence 24 Figure 2.5. New labelling of edges after Prune and Bypass operations 28 Figure 2.6. Distribution by sampling 39 Figure 2.7. Visibility sequences 43 Figure 2.8. Hidden sequences (bold) 44 Figure 2.9. Hidden sequences (bold lines) 52 Figure 3.1. A cograph and its cotree 60 Figure 3.2. Notation concerning subtrees 60 Figure 3.3. A 0-bunch and a 1-bunch 62 Figure 3.4. Replacing a bunch by its representative 63 Figure 3.5. Relations ZQ(V,U,W) and Zj^u.w) 64 Figure 3.6. Restricting of the possible positions of nodes v,u,w satisfying Z0(v,u,w) 65 Figure 3.7. A nonbranching node 66 Figure 3.8. A 0-line and a 1-line 66 Figure 3.9. Replacing a line by its representative 67 Figure 3.10. A tree containing 3 brunching nodes, 2 bunches and 1 line 68 Figure 3.11. Substitution of fragments for corresponding representatives 70 Figure 3.12. The worst case configuration for case (2) 72 Figure 3.13. Converting a cotree to a binary tree 76 Figure 4.1. The hierarchical data structure used by the n2-processor algorithm 115 vi Figure 4.2. The summary of results of Chapter 4 125 Figure 5.1. A valley filling step 132 Figure 5.2. Level intervals 133 Figure 5.3. Embedded minimax tree 134 Figure 5.4. A level tree 135 Figure 5.5. Introducing the ordering of children 137 Figure 5.6. Binarization of a level tree 138 Figure 5.7. Construction of a balanced forest 139 Figure 5.8. A regular t-ary alphabetic minimax tree and a t-ary alphabetic minimax tree 142 Figure 5.9. Path compaction (t = 5) 145 Figure 5.10: Leaflets compaction (t = 4) 147 Figure 5.11. A stair 150 Figure 5.12. Treads cutting 150 Figure 5.13. Stair climbing 151 Figure 5.14. Cliff climbing 152 Figure 6.1. Generalizations of the parallel dynamic expression evaluation problem 159 vii Acknowledgements First of all, I would like to thank my supervisor, David Kirkpatrick, for his guidance, the support, and the encouragement that he has given me through my years at the University of Biritish Columbia. I had the very good fortune to have studied under his supervision. I am also indebted to Derek Corneil for his guidance and hospitality during may half year visit to the University of Toronto. I would like to extend my gratitude to the members of my committee Feng Gao, Maria Klawe, and Nick Pippenger for their suggestions on ways in which I could improve my presentation. I would like also to thank Jozef, my husband and coauthor of several papers, for his love, encouragement, and introducing me to knot theory, topology, and hyperbolic geometry. Finally I would like to thank all UBC graduate students, faculty, and staff who made my graduate study a rewarding experience. Special thanks to Nou Dadoun and Lisa Higham for many stimulating discussions and reading of various drafts of papers (and translating several of them into English); to Yueli, Jadranka, and Hilde for putting up with me as an office mate. This research has been founded in part by the University of British Columbia Graduate Fellowship, the I.W. Killam Predoctoral Fellowship and the B.C. Advanced Systems Institute Graduate Student Scholarship.
Recommended publications
  • The Euler Tour Technique: Evaluation of Tree Functions
    05‐09‐2015 PARALLEL AND DISTRIBUTED ALGORITHMS BY DEBDEEP MUKHOPADHYAY AND ABHISHEK SOMANI http://cse.iitkgp.ac.in/~debdeep/courses_iitkgp/PAlgo/index.htm THE EULER TOUR TECHNIQUE: EVALUATION OF TREE FUNCTIONS 2 1 05‐09‐2015 OVERVIEW Tree contraction Evaluation of arithmetic expressions 3 PROBLEMS IN PARALLEL COMPUTATIONS OF TREE FUNCTIONS Computations of tree functions are important for designing many algorithms for trees and graphs. Some of these computations include preorder, postorder, inorder numbering of the nodes of a tree, number of descendants of each vertex, level of each vertex etc. 4 2 05‐09‐2015 PROBLEMS IN PARALLEL COMPUTATIONS OF TREE FUNCTIONS Most sequential algorithms for these problems use depth-first search for solving these problems. However, depth-first search seems to be inherently sequential in some sense. 5 PARALLEL DEPTH-FIRST SEARCH It is difficult to do depth-first search in parallel. We cannot assign depth-first numbering to the node n unless we have assigned depth-first numbering to all the nodes in the subtree A. 6 3 05‐09‐2015 PARALLEL DEPTH-FIRST SEARCH There is a definite order of visiting the nodes in depth-first search. We can introduce additional edges to the tree to get this order. The Euler tour technique converts a tree into a list by adding additional edges. 7 PARALLEL DEPTH-FIRST SEARCH The red (or, magenta ) arrows are followed when we visit a node for the first (or, second) time. If the tree has n nodes, we can construct a list with 2n - 2 nodes, where each arrow (directed edge) is a node of the list.
    [Show full text]
  • Area-Efficient Algorithms for Straight-Line Tree Drawings
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Computational Geometry 15 (2000) 175–202 Area-efficient algorithms for straight-line tree drawings ✩ Chan-Su Shin a;∗, Sung Kwon Kim b;1, Kyung-Yong Chwa a a Department of Computer Science, Korea Advanced Institute of Science and Technology, Taejon 305-701, South Korea b Department of Computer Science and Engineering, Chung-Ang University, Seoul 156-756, South Korea Communicated by R. Tamassia; submitted 1 October 1996; received in revised form 1 November 1999; accepted 9 November 1999 Abstract We investigate several straight-line drawing problems for bounded-degree trees in the integer grid without edge crossings under various types of drawings: (1) upward drawings whose edges are drawn as vertically monotone chains, a sequence of line segments, from a parent to its children, (2) order-preserving drawings which preserve the left-to-right order of the children of each vertex, and (3) orthogonal straight-line drawings in which each edge is represented as a single vertical or horizontal segment. Main contribution of this paper is a unified framework to reduce the upper bound on area for the straight-line drawing problems from O.n logn/ (Crescenzi et al., 1992) to O.n log logn/. This is the first solution of an open problem stated by Garg et al. (1993). We also show that any binary tree admits a small area drawing satisfying any given aspect ratio in the orthogonal straight-line drawing type. Our results are briefly summarized as follows.
    [Show full text]
  • 15–210: Parallel and Sequential Data Structures and Algorithms
    Full Name: Andrew ID: Section: 15{210: Parallel and Sequential Data Structures and Algorithms Practice Final (Solutions) December 2016 • Verify: There are 22 pages in this examination, comprising 8 questions worth a total of 152 points. The last 2 pages are an appendix with costs of sequence, set and table operations. • Time: You have 180 minutes to complete this examination. • Goes without saying: Please answer all questions in the space provided with the question. Clearly indicate your answers. 1 • Beware: You may refer to your two< double-sided 8 2 × 11in sheet of paper with notes, but to no other person or source, during the examination. • Primitives: In your algorithms you can use any of the primitives that we have covered in the lecture. A reasonably comprehensive list is provided at the end. • Code: When writing your algorithms, you can use ML syntax but you don't have to. You can use the pseudocode notation used in the notes or in class. For example you can use the syntax that you have learned in class. In fact, in the questions, we use the pseudo rather than the ML notation. Sections A 9:30am - 10:20am Andra/Charlie B 10:30am - 11:20am Andres/Emma C 12:30pm - 1:20pm Anatol/John D 12:30pm - 1:20pm Aashir/Ashwin E 1:30pm - 2:20pm Nathaniel/Sonya F 3:30pm - 4:20pm Teddy/Vivek G 4:30pm - 5:20pm Alex/Patrick 15{210 Practice Final 1 of 22 December 2016 Full Name: Andrew ID: Question Points Score Binary Answers 30 Costs 12 Short Answers 26 Slightly Longer Answers 20 Neighborhoods 20 Median ADT 12 Geometric Coverage 12 Swap with Compare-and-Swap 20 Total: 152 15{210 Practice Final 2 of 22 December 2016 Question 1: Binary Answers (30 points) (a) (2 points) TRUE or FALSE: The expressions (Seq.reduce f I A) and (Seq.iterate f I A) always return the same result as long as f is commutative.
    [Show full text]
  • Dynamic Trees 2005; Werneck, Tarjan
    Dynamic Trees 2005; Werneck, Tarjan Renato F. Werneck, Microsoft Research Silicon Valley www.research.microsoft.com/˜renatow Entry editor: Giuseppe Italiano Index Terms: Dynamic trees, link-cut trees, top trees, topology trees, ST- trees, RC-trees, splay trees. Synonyms: Link-cut trees. 1 Problem Definition The dynamic tree problem is that of maintaining an arbitrary n-vertex for- est that changes over time through edge insertions (links) and deletions (cuts). Depending on the application, one associates information with ver- tices, edges, or both. Queries and updates can deal with individual vertices or edges, but more commonly they refer to entire paths or trees. Typical operations include finding the minimum-cost edge along a path, determining the minimum-cost vertex in a tree, or adding a constant value to the cost of each edge on a path (or of each vertex of a tree). Each of these operations, as well as links and cuts, can be performed in O(log n) time with appropriate data structures. 2 Key Results The obvious solution to the dynamic tree problem is to represent the forest explicitly. This, however, is inefficient for queries dealing with entire paths or trees, since it would require actually traversing them. Achieving O(log n) time per operation requires mapping each (possibly unbalanced) input tree into a balanced tree, which is better suited to maintaining information about paths or trees implicitly. There are three main approaches to perform the mapping: path decomposition, tree contraction, and linearization. 1 Path decomposition. The first efficient dynamic tree data structure was Sleator and Tarjan’s ST-trees [13, 14], also known as link-cut trees or simply dynamic trees.
    [Show full text]
  • Massively Parallel Dynamic Programming on Trees∗
    Massively Parallel Dynamic Programming on Trees∗ MohammadHossein Bateniy Soheil Behnezhadz Mahsa Derakhshanz MohammadTaghi Hajiaghayiz Vahab Mirrokniy Abstract Dynamic programming is a powerful technique that is, unfortunately, often inherently se- quential. That is, there exists no unified method to parallelize algorithms that use dynamic programming. In this paper, we attempt to address this issue in the Massively Parallel Compu- tations (MPC) model which is a popular abstraction of MapReduce-like paradigms. Our main result is an algorithmic framework to adapt a large family of dynamic programs defined over trees. We introduce two classes of graph problems that admit dynamic programming solutions on trees. We refer to them as \(poly log)-expressible" and \linear-expressible" problems. We show that both classes can be parallelized in O(log n) rounds using a sublinear number of machines and a sublinear memory per machine. To achieve this result, we introduce a series of techniques that can be plugged together. To illustrate the generality of our framework, we implement in O(log n) rounds of MPC, the dynamic programming solution of graph problems such as minimum bisection, k-spanning tree, maximum independent set, longest path, etc., when the input graph is a tree. arXiv:1809.03685v2 [cs.DS] 14 Sep 2018 ∗This is the full version of a paper [8] appeared at ICALP 2018. yGoogle Research, New York. Email: fbateni,[email protected]. zDepartment of Computer Science, University of Maryland. Email: fsoheil,mahsaa,[email protected]. Supported in part by NSF CAREER award CCF-1053605, NSF BIGDATA grant IIS-1546108, NSF AF:Medium grant CCF-1161365, DARPA GRAPHS/AFOSR grant FA9550-12-1-0423, and another DARPA SIMPLEX grant.
    [Show full text]
  • Design and Analysis of Data Structures for Dynamic Trees
    Design and Analysis of Data Structures for Dynamic Trees Renato Werneck Advisor: Robert Tarjan Outline The Dynamic Trees problem ) Existing data structures • A new worst-case data structure • A new amortized data structure • Experimental results • Final remarks • The Dynamic Trees Problem Dynamic trees: • { Goal: maintain an n-vertex forest that changes over time. link(v; w): adds edge between v and w. ∗ cut(v; w): deletes edge (v; w). ∗ { Application-specific data associated with vertices/edges: updates/queries can happen in bulk (entire paths or trees at once). ∗ Concrete examples: • { Find minimum-weight edge on the path between v and w. { Add a value to every edge on the path between v and w. { Find total weight of all vertices in a tree. Goal: O(log n) time per operation. • Applications Subroutine of network flow algorithms • { maximum flow { minimum cost flow Subroutine of dynamic graph algorithms • { dynamic biconnected components { dynamic minimum spanning trees { dynamic minimum cut Subroutine of standard graph algorithms • { multiple-source shortest paths in planar graphs { online minimum spanning trees • · · · Application: Online Minimum Spanning Trees Problem: • { Graph on n vertices, with new edges \arriving" one at a time. { Goal: maintain the minimum spanning forest (MSF) of G. Algorithm: • { Edge e = (v; w) with length `(e) arrives: 1. If v and w in different components: insert e; 2. Otherwise, find longest edge f on the path v w: · · · `(e) < `(f): remove f and insert e. ∗ `(e) `(f): discard e. ∗ ≥ Example: Online Minimum Spanning Trees Current minimum spanning forest. • Example: Online Minimum Spanning Trees Edge between different components arrives. • Example: Online Minimum Spanning Trees Edge between different components arrives: • { add it to the forest.
    [Show full text]
  • MATHEMATICAL ENGINEERING TECHNICAL REPORTS Balanced
    MATHEMATICAL ENGINEERING TECHNICAL REPORTS Balanced Ternary-Tree Representation of Binary Trees and Balancing Algorithms Kiminori MATSUZAKI and Akimasa MORIHATA METR 2008–30 July 2008 DEPARTMENT OF MATHEMATICAL INFORMATICS GRADUATE SCHOOL OF INFORMATION SCIENCE AND TECHNOLOGY THE UNIVERSITY OF TOKYO BUNKYO-KU, TOKYO 113-8656, JAPAN WWW page: http://www.keisu.t.u-tokyo.ac.jp/research/techrep/index.html The METR technical reports are published as a means to ensure timely dissemination of scholarly and technical work on a non-commercial basis. Copyright and all rights therein are maintained by the authors or by other copyright holders, notwithstanding that they have offered their works here electronically. It is understood that all persons copying this information will adhere to the terms and constraints invoked by each author’s copyright. These works may not be reposted without the explicit permission of the copyright holder. Balanced Ternary-Tree Representation of Binary Trees and Balancing Algorithms Kiminori Matsuzaki and Akimasa Morihata Abstract. In this paper, we propose novel representation of binary trees, named the balanced ternary-tree representation. We examine flexible division of binary trees in which we can divide a tree at any node rather than just at the root, and introduce the ternary-tree representation for the flexible division. Due to the flexibility of division, for any binary tree, balanced or ill-balanced, there is always a balanced ternary tree representing it. We also develop three algorithms for generating balanced ternary-tree representation from binary trees and for rebalancing the ternary-tree representation after a small change of the shape. We not only show theoretical upper bounds of heights of the ternary-tree representation, but also report experiment results about the balance property in practical settings.
    [Show full text]
  • Dynamic Trees in Practice
    Dynamic Trees in Practice ROBERT E. TARJAN Princeton University and HP Labs and RENATO F. WERNECK Microsoft Research Silicon Valley Dynamic tree data structures maintain forests that change over time through edge insertions and deletions. Besides maintaining connectivity information in logarithmic time, they can support aggregation of information over paths, trees, or both. We perform an experimental comparison of several versions of dynamic trees: ST-trees, ET-trees, RC-trees, and two variants of top trees (self-adjusting and worst-case). We quantify their strengths and weaknesses through tests with various workloads, most stemming from practical applications. We observe that a simple, linear- time implementation is remarkably fast for graphs of small diameter, and that worst-case and randomized data structures are best when queries are very frequent. The best overall performance, however, is achieved by self-adjusting ST-trees. Categories and Subject Descriptors: E.1 [Data Structures]: Trees; G.2.1 [Discrete Mathe- matics]: Combinatorics—Combinatorial Algorithms; G.2.2 [Discrete Mathematics]: Graph Theory—Network Problems General Terms: Algorithms, Experimentation Additional Key Words and Phrases: dynamic trees, link-cut trees, top trees, experimental evalu- ation 1. INTRODUCTION The dynamic tree problem is that of maintaining an n-vertex forest that changes over time. Edges can be added or deleted in any order, as long as no cycle is ever created. In addition, data can be associated with vertices, edges, or both. This data can be manipulated individually (one vertex or edge at a time) or in bulk, with operations that deal with an entire path or tree at a time.
    [Show full text]
  • Optimal Logarithmic Time Randomized Suffix Tree Construction
    Optimal Logarithmic Time Randomized Suffix Tree Construction Martin Farach∗ S. Muthukrishnan† Rutgers University Univ. of Warwick November 10, 1995 Abstract The suffix tree of a string, the fundamental data structure in the area of combinatorial pattern matching, has many elegant applications. In this paper, we present a novel, simple sequential algorithm for the construction of suffix trees. We are also able to parallelize our algorithm so that we settle the main open problem in the construction of suffix trees: we give a Las Vegas CRCW PRAM algorithm that constructs the suffix tree of a binary string of length n in O(log n) time and O(n) work with high probability. In contrast, the previously known 2 work-optimal algorithms, while deterministic, take Ω(log n) time. We also give a work-optimal randomized comparison-based algorithm to convert any string over an unbounded alphabet to an equivalent string over a binary alphabet. As a result, we ob- tain the first work-optimal algorithm for suffix tree construction under the unbounded alphabet assumption. ∗Department of Computer Science, Rutgers University, Piscataway, NJ 08855, USA. ([email protected], http://www.cs.rutgers.edu/∼farach) Supported by NSF Career Development Award CCR-9501942. Work done while this author was a Visitor Member of the Courant Institute of NYU. †[email protected]; Partly supported by DIMACS (Center for Discrete Mathematics and Theoretical Computer Science), a National Science Foundation Science and Technology Center under NSF contract STC-8809648. Partly supported by Alcom IT. 1 Introduction Given a string s of length n, the suffix tree Ts of s is the compacted trie of all the suffixes of s.
    [Show full text]
  • Parallel Probabilistic Tree Embeddings, K-Median, and Buy-At-Bulk Network Design
    Parallel Probabilistic Tree Embeddings, k-Median, and Buy-at-Bulk Network Design Guy E. Blelloch Anupam Gupta Kanat Tangwongsan Carnegie Mellon University {guyb, anupamg, ktangwon}@cs.cmu.edu ABSTRACT (2) Small Distortion: ET ∼D[dT (x; y)] ≤ β · d(x; y) for all x; y 2 X, This paper presents parallel algorithms for embedding an arbitrary n-point metric space into a distribution of dominating trees with where dT (·; ·) denotes the distance in the tree T , and ET ∼D draws O(log n) expected stretch. Such embedding has proved useful a tree T from the distribution D. The series work on this prob- in the design of many approximation algorithms in the sequen- lem (e.g., [Bar98, Bar96, AKPW95]) culminated in the result of tial setting. We give a parallel algorithm that runs in O(n2 log n) Fakcharoenphol, Rao, and Talwar (FRT) [FRT04], who gave an ele- work and O(log2 n) depth—these bounds are independent of ∆ = gant optimal algorithm with β = O(log n). This has proved to be maxx;y d(x;y) , the ratio of the largest to smallest distance. Moreover, instrumental in many approximation algorithms (see, e.g., [FRT04] minx6=y d(x;y) and the references therein). For example, the first polylogarithmic O(n) when ∆ is exponentially bounded (∆ ≤ 2 ), our algorithm can approximation algorithm for the k-median problem was given using 2 2 be improved to O(n ) work and O(log n) depth. this embedding technique. Remarkably, all these algorithms only Using these results, we give an RNC O(log k)-approximation require pairwise expected stretch, so their approximation guaran- algorithm for k-median and an RNC O(log n)-approximation for tees are expected approximation bounds and the technique is only buy-at-bulk network design.
    [Show full text]
  • Optimal Tree Contraction in the EREW Model
    From: CONCURRENT COMPUTATIONS Edited by Stuart K. Bradley W. and Stuart C. Publishing Chapter 9 Optimal Tree Contraction in the EREW Model Gary L. Miller Shang-Hua Teng Abstract A deterministic parallel algorithm for parallel tree contraction is presented in this paper. The algorithmtakes T time and uses (P processors, where n the number of vertices in a tree using an Exclusive Read and Exclusive Write (EREW) Parallel Random Access Machine (PRAM). This algorithm improves the results of Miller and who use the CRCW randomized PRAM model to get the same complexity and processor count. The algorithm is optimal in the sense that the product P is equal to the input size and gives an time algorithm when log Since the algorithm requires space, which is the input size, it is optimal in space as well. Techniques for prudent parallel tree contraction are also discussed, as well as implementation techniques for connection machines. work was supported in by National Science Foundation grant DCR-8514961. University of Southern California, Angeles, CA 139 140 L CONTRACTION 9.1 In this paper we exhibit an optimal deterministic Exclusive Read and Exclusive Write (EREW) Parallel Random Access Machine (PRAM) algorithm for parallel tree contraction for trees using time and (P processors. For example, we can dynamically evaluate an arithmetic expression of size n over the operations of addition and multiplication using the above time and processor bounds. In particular, suppose that the arithmetic expression is given as a tree of pointers where each vertex is either a leaf with a particular value or an internal vertex whose value is either the sum or product of its children’s values.
    [Show full text]
  • Constructing Trees in Parallel
    Purdue University Purdue e-Pubs Department of Computer Science Technical Reports Department of Computer Science 1989 Constructing Trees in Parallel Mikhail J. Atallah Purdue University, [email protected] S. R. Kosaraju L. L. Larmore G. L. Miller Report Number: 89-883 Atallah, Mikhail J.; Kosaraju, S. R.; Larmore, L. L.; and Miller, G. L., "Constructing Trees in Parallel" (1989). Department of Computer Science Technical Reports. Paper 751. https://docs.lib.purdue.edu/cstech/751 This document has been made available through Purdue e-Pubs, a service of the Purdue University Libraries. Please contact [email protected] for additional information. CONSTRUCTING TREES IN PARALLEL M. J. Atallah S. R. Kosaraju L. L. Larmore G. L. Miller S-H. Teng CSD-TR-883 May 1989 - 1 - Constructing Trees in Parallel M. J. AtalIah' s. R. Kosarajut L. L. Larmoret G. L. Miller! S-H. Teng! Abstract 1 Introduction OCIog" n) time, n"/logn processor as well as D(log n) In this paper we present several new parallel algo­ time, n 3 /logn processor CREW deterministic paral­ rithms. Each algorithm uses substantially fewer pro­ lel algorithIllB are presented for constructing Huffman cessors than used in previously known algorithms. The codes from a given list of frequencies. The time can four problems considered are: The Tree Construction be reduced to O(logn(log logn)") on a CReW model, Problem, The Huffman Code Problem, The Linear using only n 2J(loglogn)2 processors. Also presented Context Free Language Recognition Problem, and The is an optimal O(logn) time, OCn/logn) processor Optimal Binary Search Tree Problem.
    [Show full text]