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
The inequality (2) is also called the quadrangle inequality 18]. The LWS problem with the restriction that the weight function is concave is called the Concave Least Weight Subsequence (CLWS) problem. Hirschberg and Larmore 7] show that the LWS problem can be solved in O(n ) sequential time, while the CLWS problem can be solved in O(n log n) time. Galil and Giancarlo 5] give an O(n log n) time bound for the Convex Least Weight Subsequence problem (i.e., when the weight function satis es the reverse of the inequality (2) ). Wilber 17] gives an O(n)-time algorithm for the CLWS problem. Linear time algorithms for this problem are also given by Klawe 12], Larmore and Schieber 15], and Galil and Park 6]. The best known sequential algorithm for the convex case is by Klawe and Kleitman 13]. Their algorithm requires O(n (n)) time, where is the inverse of Ackerman function. All of these algorithms actually solve the single source problems. In the parallel setting, the CLWS problem seems to be more di cult than the corresponding convex problem. Lam and Chan 14] present an O(log n log log n)-time, n= log log n-processor CREW PRAM algorithm to solve the convex problem. On the other hand, the best current NC algorithm for the CLWS problem uses concave matrix multiplication techniques 1, 2, 3] and p requires O(log n) time with n= log n processors. In this paper, we present an O( n log n)time n-processor CREW PRAM algorithm to solve the CLWS problem. This paper is organized as follows. In Section 2, we give a parallel algorithm for the CLWS problem. In Section 3, we reduce the Hu man coding problem to the CLWS problem. We conclude with some open questions. 2 2 2 2 2
2 The Parallel Single Source CLWS Algorithm Consider an instance of the concave least weight subsequence problem over 0; n] de ned by a weight function w, and let lws (i; j ) denote the least weight subsequence problem on i; j] de ned by restricting w to pairs within that interval. Let W (i; j ) be the weight of an optimal solution to lws (i; j ). For convenience, we let W (i; i)= 0 for all i. De ne and
f (j )= W (0; j ) 8< unde ned for j= 0 pred (j )=: minfi j i< j; f (j )= f (i)+ w(i; j )g for 0< j n F (j )= (f (j ); pred(j )) 2
Thus f (j ) is equal to the weight of a least weight subsequence for the interval 0; j] and pred (j )
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, ...
热门文档