Communication-optimal parallel parenthesis matching

  • Authors:
  • Chun-Hsi Huang;Xin He;Min Qian

  • Affiliations:
  • Department of Computer Science and Engineering, University of Connecticut, Storrs, CT 06269, USA;Department of Computer Science and Engineering, State University of New York at Buffalo, Buffalo, NY 14260, USA;Department of Computer Science and Engineering, University of Connecticut, Storrs, CT 06269, USA

  • Venue:
  • Parallel Computing
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We provide the first non-trivial lower bound, p-3p.np, where p is the number of the processors and n is the data size, on the average-case communication volume, @s, required to solve the parenthesis matching problem, assuming problem instances are uniformly distributed, and present a parallel algorithm that takes linear (optimal) computation time and optimal expected message volume, @s+p. The kernel of the algorithm is to solve the all nearest smaller values problem. Provided np=@W(p), we present an algorithm that achieves optimal sequential computation time and uses only a constant number of communication phases, with the message volume in each phase bounded above by (np+p) in the worst case and p in the average case. Experiments have been performed on two clusters: an SGI Intel Linux Cluster and a Sun cluster of workstations, both showing low communication overhead and good speedups.