Enhancing Sorting Performance with Parallel Algorithms

Slide Note
Embed
Share

Sorting is a crucial task in computer science, with data sizes increasing, parallel algorithms offer improved performance. This study explores enhancing Quick Sort using parallel computing, determining optimal processor numbers for efficiency gains.


Uploaded on Oct 10, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Farida Kassamnath Anup Rawka

  2. Improving Quick Sort Algorithm Performance By Using Parallel Algorithms. Motivation: Sorting is among the fundamental problems of computer science. Sorting of different datasets is present in most applications, ranging from simple user applications to complex software. Today, in this modern age, the amount of data to be sorted is often so big, that even the most efficient sequential sorting algorithms become the bottleneck of the application. It may be a database or scientific data. With the appearance of parallel computing, new possibilities have appeared to remove this bottleneck and improve the performance of known sorting algorithms by modifying them for parallel execution.

  3. AIM: We wanted to find the trade off point after which parallel quick sort and Hyper Quick sort s performance started decreasing as the number of processors increases.

  4. ! ! ! Observations: ! !! Sequential!Quick! sort! 10^3! 10^4! 10^5! 10^6! ! 1424! 1928! 2413! 2896! ! !Input! 10^3! 10^4! 10^5! 10^6! 10^3! 10^4! 10^5! 10^6! N=2! N=4! N=8! N=16! N=32! N=64! !! 418! 436! 558! 612! 188! 194! 217! 254! 206! 278! 348! 416! 98! 119! 142! 196! 121! 137! 158! 195! 48! 61! 67! 78! 382! 393! 416! 450! 98! 112! 152! 164! 613! 650! 778! 813! 213! 233! 278! 398! 1168! 1610! 1812! 2002! 482! 548! 645! 831! Parallel! HyperQuick! Sort! ! N= number of processors Time is in msec.

  5. Speed up achieved by Parallel Quick Sort over Sequential Sort. Speed up(N=8) = Running time of sequential Sort algorithm Best case run time achieved by Parallel Sort = 2896 = 14.85 195 Speed up achieved by Hyper Quick Sort over Sequential Sort. Speed up(N=8) = Running time of sequential Sort algorithm Best case run time achieved by Hyper Quick Sort = 2896 = 37.12 78 Speed Up calculated over data set of size 10^6

  6. Speed up achieved by Hyper Quick Sort over Parallel Sort. Speed up(N=8) = Running time of Parallel Sort algorithm Running time achieved by Hyper Quick Sort = 195 = 2.5 78

  7. Conclusion: The basis of comparison is the running time, number of comparison and speed up achieved. 1) From the graphs it is obvious that Hyper Quick Sort and Parallel Quick Sort performs much more better than Sequential sort as they take the advantage of parallelism to reduce the waiting time. 2) The performance of Parallel Quick Sort is low as compared to Hyper Quick Sort due to the improper load balancing. 3) It is observed that when the number of processors increases after a particular number the performance of Parallel and Hyper Quick Sort decreases because of MPI communication overheads.

  8. THANK YOU

More Related Content