Write two java programs (sequential and parallel) to implement merge sort that do the following Create
Fantastic news! We've Found the answer you've been seeking!
Question:
Write two java programs (sequential and parallel) to implement merge sort that do the following
Create a class MergeSortArraySeq that develops a merge sort algorithm to sort an array of integer numbers in sequential.
MergeSortArrayThread that will develop merge sort algorithm to sort an array of integer numbers in parallel.
Methods to initialize the array with random numbers from 1-N (e.g., N=10,000, N=100,000).
Methods to Sort array in sequential/parallel.
Compare the time of both algorithms.
Draw a diagram to show the relationship between execution time in y-axis and the number of threads in x-axis. (i.e run your program with different number of threads)
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: