Efficient Permutation-Based Range-Join Algorithms on N-Dimensional Meshes
نویسندگان
چکیده
ÐIn this paper, we present four efficient parallel algorithms for computing a nonequijoin, called range-join, of two relations on N-dimensional mesh-connected computers. Range-joins of relations R and S are an important generalization of conventional equijoins and band-joins and are solved by permutation-based approaches in all proposed algorithms. In general, after sorting all subsets of both relations, the proposed algorithms permute every sorted subset of relation S to each processor in turn, where it is joined with the local subset of relation R. To permute the subsets of S efficiently, we propose two data permutation approaches, namely, the shifting approach which permutes the data recursively from lower dimensions to higher dimensions and the Hamiltonian-cycle approach which first constructs a Hamiltonian cycle on the mesh and then permutes the data along this cycle by repeatedly transferring data from each processor to its successor. We apply the shifting approach to meshes with different storage capacities which results in two different join algorithms. The Basic Shifting Join (BASHJ) algorithm can minimize the number of subsets stored temporarily at a processor, but requires a large number of data transmissions, while the Buffering Shifting Join (BUSHJ) algorithm can achieve a high parallelism and minimize the number of data transmissions, but requires a large number of subsets stored at each processor. For constructing a Hamiltonian cycle on a mesh, we propose two different methods which also result in two different join algorithms. The Recursive Hamiltonian-Cycle Join (REHCJ) algorithm uses a single processor to construct a Hamiltonian cycle recursively, while the Parallel Hamiltonian-Cycle Join (PAHCJ) algorithm uses all processors to construct a Hamiltonian cycle in parallel. We analyze and compare these algorithms. The results shows that both Hamiltonian cycle algorithms require less storage and local join operations than the shifting algorithms, but more data movement steps.
منابع مشابه
Eecient Parallel Permutation-based Range-join Algorithms on Mesh-connected Computers
This paper proposes three eecient parallel algorithms for computing the range-join of two relations on a two-dimensional n m mesh-connected computer, where n and m are the numbers of the rows and columns respectively. The proposed algorithms sort all subsets of both relations, and then eeciently permute all sorted subsets of one relation to each processor in meshes, where they are joined with t...
متن کاملEfficient Parallel Permutation-Based Range-Join Algorithms on Mesh-Connected Computers
This paper proposes three eecient parallel algorithms for computing the range-join of two relations on two-dimensional n m mesh-connected computers, where n and m are the numbers of the rows and columns respectively. After sorting all subsets of both relations, all proposed algorithms permute all sorted subsets of one relation to each processor in the computers, where they are joined with the s...
متن کاملAn Efficient Permutation-Based Parallel Range-Join Algorithm on N-Dimensional Torus Computers
This paper proposes a parallel algorithm to compute the range-join of two relations on N-dimensional torus computers. The algorithm eeciently permutes all subsets of one relation to each processor in turn, where they are joined with the subset of the other relation at that processor using a local range-join algorithm. The analysis shows that the torus algorithm is more eecient than a previous a...
متن کاملRouting and Sorting on Meshes with Row and Column Buses
We give improved deterministic algorithms for permutation routing and sorting on meshes with row and column buses. Among our results, we obtain a fairly simple algorithm for permutation routing on two-dimensional meshes with buses that achieves a running time of n + o(n) and a queue size of 2. We also describe an algorithm for routing on r-dimensional networks with a running time of (2? 1=r)n+ ...
متن کاملPermutation Routing and Sorting on Meshes with Row and Column Buses
We study the problems of permutation routing and sorting on several models of meshes with xed and reconngurable row and column buses. We describe two fast and fairly simple deterministic algorithms for permutation routing on two-dimensional networks, and a more complicated algorithm for multi-dimensional networks. The algorithms are obtained by converting two known oo-line routing schemes into ...
متن کامل