Study on parallel merging of arrays using PVM
DOI:
https://doi.org/10.52846/ami.v38i4.392Abstract
The algorithm for merging is inspired by the method proposed in [1]. In the algorithm we partition the two arrays in subpartitions, and we sent each subpartition (Ai,Bi) to be merged by the child processes created on other hosts of the virtual machine. Then with the merged subpartitions received from the child processes we directly assemble in the parent process the merge of the two primary sequences.
For partitioning there the following alternatives:
1. We compute the partitions in the master process and we send only the two partitions for merging to a slave process. In this case the disadvantage is that the master performs a greater effort to compute the partitions but sends less data to the children (sends only the partitions).
2. We send at least one of the sets in its entirety to the child for computing the partitioning. In this case more data is sent but the parent does not have to compute
In the implementation of the algorithm we chose the first alternative, because in a real application the chosen variant varies in each case with the speed of the processors or the speed of data transmission.
Downloads
Published
Issue
Section
License
- The copyright to this article is transferred to body Annals of the University of Craiova, Mathematics and Computer Science Series effective if and when the article is accepted for publication.
- The copyright transfer covers the exclusive right to reproduce and distribute the article, including reprints, translations, photographic reproductions, microform, electronic form (offline, online) or any other reproductions of similar nature.
- An author may make his/her article published by body Annals of the University of Craiova, Mathematics and Computer Science Series available on his/her home page provided the source of the published article is cited and body Annals of the University of Craiova, Mathematics and Computer Science Series is mentioned as copyright owner.
- The author warrants that this contribution is original and that he/she has full power to make this grant. The author signs for and accepts responsibility for releasing this material on behalf of any and all co-authors. After submission of this agreement signed by the corresponding author, changes of authorship or in the order of the authors listed will not be accepted by body Annals of the University of Craiova, Mathematics and Computer Science Series.
Final submission (accepted paper for publication) must be accompanied by a signed copyright transfer form. The copyright transfer form is available [ here ].