SlideShare a Scribd company logo
1 of 12
Download to read offline
Parallel Sorting by
Regular Sampling
muwei@cn.ibm.com
Wednesday, June 27, 12
Speedup of Parallel
Sort
• Average memory latency 
• Overhead of scheduling and
synchronization
Wednesday, June 27, 12
Traditional Parallel Sort
Most parallel sorts suitable for multiprocessor
computers can be placed into one of two rough
categories: 
• Merge-based sorts
• Partition-based sorts
Wednesday, June 27, 12
Merge-based sorts
• Consist of multiple merge stages across
processors, and perform well only with a
small number of processors
• More larger the number of processors
utilized gets , more larger the overhead of
scheduling and synchronization hit
Wednesday, June 27, 12
Partition-based sorts
• Partitioning the data set into smaller
subsets such that all elements in one subset
are no greater than any element in another
• Sorting each subset in parallel
• The performance of partition-based sorts
primarily depends on how well the data can
be evenly partitioned into smaller ordered
subsets
Wednesday, June 27, 12
PSRS
• Data distribution is unkown
• Find pivots for partitioning data
Wednesday, June 27, 12
PSRS:Phase 1
• Each of p processors sorts a contiguous list
of size w=n/p using sequential Quicksort
• Define the regular sample of the locally
ordered X be a set of the following p(p -
1 ) elements
Wednesday, June 27, 12
PSRS:Phase 2
• Regular sample set, Y, is sorted using
sequential Quicksort
• Choose (p-1) pivots for partitioning X
• Each processor finds where each of the (p -
1) pivots divides its list, using a binary
search.
Wednesday, June 27, 12
PSRS:Phase 3
• Each processor i performs a p-way
Mergesort to merge  all the i-th sorted
sublists of p lists.
Wednesday, June 27, 12
PSRS Example
16 2 17 24 33 28 30 1 0 27 9 25 34 23 19 18 11 7 21 13 8 35 12 29 6 3 4 14 22 15 32 10 26 31 20 5
0 1 2 9 16 17 24 25 27 28 30 33
7 8 11 12 13 18 19 21 23 29 34 35
3 4 5 6 10 14 15 20 22 26 31 32
0 1 2 9 16 17 24 25 27 28 30 33
7 8 11 12 13 18 19 21 23 29 34 35
3 4 5 6 10 14 15 20 22 26 31 32
1610 13 22 23 27
1610 13 22 23 27
0 1 2 9 7 8 3 4 5 6 10 16 17 11 12 13 18 19 21 14 15 20 22 24 25 27 28 30 33 23 29 34 35 26 31 32
Wednesday, June 27, 12
Complexity Analysis
• Phase 1
• Phase 2
• Phase 3
Complexity for PSRS is :
Wednesday, June 27, 12
Q & A
Wednesday, June 27, 12

More Related Content

What's hot

Scrum In Ten Slides (v2.0) 2018
Scrum In Ten Slides (v2.0) 2018Scrum In Ten Slides (v2.0) 2018
Scrum In Ten Slides (v2.0) 2018pmengal
 
Retrospective - the most ignored event in Scrum
Retrospective - the most ignored event in ScrumRetrospective - the most ignored event in Scrum
Retrospective - the most ignored event in ScrumSanjay Saini
 
Introduction To Scrum For Managers
Introduction To Scrum For ManagersIntroduction To Scrum For Managers
Introduction To Scrum For ManagersRobert Dempsey
 
Agile Software Development Model
Agile Software Development ModelAgile Software Development Model
Agile Software Development ModelRitika Balagan
 
Sprint Report Template.pptx
Sprint Report Template.pptxSprint Report Template.pptx
Sprint Report Template.pptxgary965038
 
Agile Scrum Presentation-Detailed
Agile Scrum Presentation-DetailedAgile Scrum Presentation-Detailed
Agile Scrum Presentation-DetailedPrashaanth T R
 
Agile Practices - eXtreme Programming
Agile Practices - eXtreme ProgrammingAgile Practices - eXtreme Programming
Agile Practices - eXtreme ProgrammingAniruddha Chakrabarti
 
Agile estimation techniques workshop
Agile estimation techniques workshopAgile estimation techniques workshop
Agile estimation techniques workshopFrederic Vandaele
 
Scrum 101: Introduction to Scrum
Scrum 101: Introduction to ScrumScrum 101: Introduction to Scrum
Scrum 101: Introduction to ScrumArrielle Mali
 
Estimation techniques workshop - february 2014
Estimation techniques   workshop - february 2014Estimation techniques   workshop - february 2014
Estimation techniques workshop - february 2014Jesus Mendez
 
Planning Poker estimating technique
Planning Poker estimating techniquePlanning Poker estimating technique
Planning Poker estimating techniqueSuhail Jamaldeen
 
extreme Programming
extreme Programmingextreme Programming
extreme ProgrammingBilal Shah
 

What's hot (20)

Agile Methodology
Agile MethodologyAgile Methodology
Agile Methodology
 
Giới thiệu Scrum
Giới thiệu ScrumGiới thiệu Scrum
Giới thiệu Scrum
 
What is Scrum? SlideShare
What is Scrum? SlideShareWhat is Scrum? SlideShare
What is Scrum? SlideShare
 
Scrum In Ten Slides (v2.0) 2018
Scrum In Ten Slides (v2.0) 2018Scrum In Ten Slides (v2.0) 2018
Scrum In Ten Slides (v2.0) 2018
 
Retrospective - the most ignored event in Scrum
Retrospective - the most ignored event in ScrumRetrospective - the most ignored event in Scrum
Retrospective - the most ignored event in Scrum
 
Introduction To Scrum For Managers
Introduction To Scrum For ManagersIntroduction To Scrum For Managers
Introduction To Scrum For Managers
 
Agile Software Development Model
Agile Software Development ModelAgile Software Development Model
Agile Software Development Model
 
Sprint Report Template.pptx
Sprint Report Template.pptxSprint Report Template.pptx
Sprint Report Template.pptx
 
Agile Methodology
Agile MethodologyAgile Methodology
Agile Methodology
 
Agile Scrum Presentation-Detailed
Agile Scrum Presentation-DetailedAgile Scrum Presentation-Detailed
Agile Scrum Presentation-Detailed
 
Scrum in a nutshell
Scrum in a nutshellScrum in a nutshell
Scrum in a nutshell
 
Agile Practices - eXtreme Programming
Agile Practices - eXtreme ProgrammingAgile Practices - eXtreme Programming
Agile Practices - eXtreme Programming
 
Agile Scrum Methodology
Agile Scrum MethodologyAgile Scrum Methodology
Agile Scrum Methodology
 
Scrum
ScrumScrum
Scrum
 
Agile estimation techniques workshop
Agile estimation techniques workshopAgile estimation techniques workshop
Agile estimation techniques workshop
 
Scrum 101: Introduction to Scrum
Scrum 101: Introduction to ScrumScrum 101: Introduction to Scrum
Scrum 101: Introduction to Scrum
 
Estimation techniques workshop - february 2014
Estimation techniques   workshop - february 2014Estimation techniques   workshop - february 2014
Estimation techniques workshop - february 2014
 
Planning Poker estimating technique
Planning Poker estimating techniquePlanning Poker estimating technique
Planning Poker estimating technique
 
Daily standup
Daily standupDaily standup
Daily standup
 
extreme Programming
extreme Programmingextreme Programming
extreme Programming
 

Viewers also liked

Viewers also liked (7)

parallel Merging
parallel Mergingparallel Merging
parallel Merging
 
Parallel sorting
Parallel sortingParallel sorting
Parallel sorting
 
Parallel sorting algorithm
Parallel sorting algorithmParallel sorting algorithm
Parallel sorting algorithm
 
Binary search
Binary search Binary search
Binary search
 
Binary search
Binary searchBinary search
Binary search
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Parallel sorting Algorithms
Parallel  sorting AlgorithmsParallel  sorting Algorithms
Parallel sorting Algorithms
 

Recently uploaded

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Recently uploaded (20)

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

parallel sorting by regular sampling

  • 1. Parallel Sorting by Regular Sampling muwei@cn.ibm.com Wednesday, June 27, 12
  • 2. Speedup of Parallel Sort • Average memory latency  • Overhead of scheduling and synchronization Wednesday, June 27, 12
  • 3. Traditional Parallel Sort Most parallel sorts suitable for multiprocessor computers can be placed into one of two rough categories:  • Merge-based sorts • Partition-based sorts Wednesday, June 27, 12
  • 4. Merge-based sorts • Consist of multiple merge stages across processors, and perform well only with a small number of processors • More larger the number of processors utilized gets , more larger the overhead of scheduling and synchronization hit Wednesday, June 27, 12
  • 5. Partition-based sorts • Partitioning the data set into smaller subsets such that all elements in one subset are no greater than any element in another • Sorting each subset in parallel • The performance of partition-based sorts primarily depends on how well the data can be evenly partitioned into smaller ordered subsets Wednesday, June 27, 12
  • 6. PSRS • Data distribution is unkown • Find pivots for partitioning data Wednesday, June 27, 12
  • 7. PSRS:Phase 1 • Each of p processors sorts a contiguous list of size w=n/p using sequential Quicksort • Define the regular sample of the locally ordered X be a set of the following p(p - 1 ) elements Wednesday, June 27, 12
  • 8. PSRS:Phase 2 • Regular sample set, Y, is sorted using sequential Quicksort • Choose (p-1) pivots for partitioning X • Each processor finds where each of the (p - 1) pivots divides its list, using a binary search. Wednesday, June 27, 12
  • 9. PSRS:Phase 3 • Each processor i performs a p-way Mergesort to merge  all the i-th sorted sublists of p lists. Wednesday, June 27, 12
  • 10. PSRS Example 16 2 17 24 33 28 30 1 0 27 9 25 34 23 19 18 11 7 21 13 8 35 12 29 6 3 4 14 22 15 32 10 26 31 20 5 0 1 2 9 16 17 24 25 27 28 30 33 7 8 11 12 13 18 19 21 23 29 34 35 3 4 5 6 10 14 15 20 22 26 31 32 0 1 2 9 16 17 24 25 27 28 30 33 7 8 11 12 13 18 19 21 23 29 34 35 3 4 5 6 10 14 15 20 22 26 31 32 1610 13 22 23 27 1610 13 22 23 27 0 1 2 9 7 8 3 4 5 6 10 16 17 11 12 13 18 19 21 14 15 20 22 24 25 27 28 30 33 23 29 34 35 26 31 32 Wednesday, June 27, 12
  • 11. Complexity Analysis • Phase 1 • Phase 2 • Phase 3 Complexity for PSRS is : Wednesday, June 27, 12
  • 12. Q & A Wednesday, June 27, 12