We present a parallel algorithm for the Huffman Coding problem. We reduce the Huffman Coding problem to the Concave Least Weight Subsequence problem and give a parallel algorithm that solves the latter problem in O( p n log n) time with n processors on a C
1 Introduction Throughout this paper, a tree is a regular binary tree (i.e. a binary tree in which each internal node has two children). The level of a node in a tree is its distance from the root. The problem of constructing a Hu man tree is, given a sequence of n non-negative real numbers, x; x;:::; xn, to construct a tree with n leaves where the leaves of the tree are in one-to-one correspondence with elements of the sequence, to minimize the following cost function 1 2 1
c(T )=
n X i=1
xi`i
(1)
where`i is the level of the leaf corresponding to xi . The value xi associated with a leaf v is called the weight of v. The Hu man tree problem, also called the Hu man Coding problem, can be solved in O(n log n) sequential time 9], linear time if the input sequence is sorted. Yet, despite substantial e ort, no good parallel algorithm is known for the problem. Currently, the best NC algorithm for the Hu man coding problem takes O(log n) time with roughly n CREW PRAM processors 3]. An approximate solution for the Hu man coding problem can be computed in O(log n log n) time using a linear number of CREW processors 10, 16]. In this paper we present the rst sublinear time, o(n )-work parallel algorithm for the Hu man coding problem. At the heart of our algorithm is the reduction of the Hu man coding problem to the Concave Least Weight Subsequence (CLWS) problem. This reduction leads to a new linear time (if the input sequence of weights is sorted) sequential algorithm for the Hu man coding problem. The CLWS problem has a number of applications, including paragraph breaking. A good parallel algorithm for this problem is thus interesting in its own right. Hirschberg and Larmore 7] de ne the Least Weight Subsequence (LWS) problem as follows: Given an integer n, and a real-valued weight function w(i; j ) de ned for integers 0 i< j n, nd a sequence of integers= (0=<<:::< k?< k= n) such that w( )= Pk? w( i; i ) i is minimized. Thus, the LWS problem reduces trivially to the
minimum path problem on a weighted directed acyclic graph. The Single Source LWS problem is to nd such a minimal sequence 0=<<:::< k?< k= m for all m n. The weight function is said to be concave if for all 0 i i< j j n, 2 2 2 2 0 1 1 1=0+1 0 1 1 0 1 0 1
w(i; j )+ w(i; j ) w(i; j )+ w(i; j ): 0 0 1 1 0 1 1 0
(2)
This correspondence need not preserve order. The paragraph breaking problem is to nd the best way of breaking a paragraph of text into lines, a problem that must be handled by text processing software such as TEX. 1 2
1
Approximating Huffman Codes in Parallel Piotr ...Hu man trees (cf., e.g., H51], vL76]).... introduce an approximate problem of constructing, ...
A work efficient parallel algorithm for constructing Huffman codes Given an alphabet \Sigma = fa 1; : : : ; a n g and a corresponding list of ...
Constructing Huffman Tre... 暂无评价 11页 免费... Approximating Huffman Codes in Parallel (Revised ...Hu man trees (cf., e.g., H51], vL76])....
CONSTRUCTING NODE-DISJOINT ROUTES IN K-ARY N-CUBES Khaled Day, and Abdel...1992. Introduction to Parallel Algorithms and Architectures: Arrays . Trees ....
Parallel Prefix Sum On GPU Based on slides by...Key principle: Balanced Trees –––– Build ...Constructing the binary tree for (unsigned offset ...
2008Multilevel-Huffman Test-Data Compression for ...LFSR cell to drive the XOR trees’ extra input...in parallel, for a number CSR en IEEE ...
So Huffman coding table cannot be used with optimal mode that got bad ...Constructing scrambling index matrix To needed length, intercepting x, y and...
+ d j f h i c e Huffman Code Tree 0 1 0 E A E: 0 A: 10 S...? Merging v0 and v1 Merging v0’ and v2 Constructing a Spanning Tree ...
Optimal Parallel Algorithms for Constructing and Maintaining a Balanced m-way ...Parallel Algorithms for Minimal Spanning Trees of Directed Graphs Yixin Zhang ...
TENG, Constructing trees in parallel, Report CSD-TR-883, Purdue University,...HUFFMAN, A method for the construction of minimum redundancy codes, ...
热门文档