Skip to content

BhawanaAd/Parallel-Sorting-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Parallel-Sorting-Algorithm

Overview

This project implements and compares both Merge Sort and Quick Sort algorithms in both sequential and parallel versions using C++. The parallel implementations leverage multithreading to significantly accelerate sorting performance for large datasets. A web-based visualization interface is provided to demonstrate the algorithms in action and compare their performance metrics.

Features

"Algorithm Implementations" Merge Sort (Sequential) - Traditional divide and conquer approach Parallel Merge Sort - Multithreaded implementation with threshold optimization Quick Sort (Sequential) - In-place partitioning algorithm Parallel Quick Sort - Concurrent partitioning and recursive sorting

Performance Optimization

Thread Management: Efficient thread creation and synchronization Threshold Switching: Automatic fallback to std::sort for small subarrays (size < 5000) Load Balancing: Parallel execution of independent subproblems

Web Visualization

Real-time Sorting Animation: Visual representation of sorting process Performance Metrics: Execution time comparison across all algorithms Thread Activity Monitoring: Real-time thread utilization tracking Interactive Charts: Bar charts for time comparison and speedup analysis

Prerequisties

  1. C++ Compiler with C++11 support (g++, clang++)
  2. Web Browser with JavaScript support (Chrome, Firefox, Safari)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published