SlideShare a Scribd company logo
1 of 23
1
Bitonic Sort
in
Shared SIMD Array Processor
Anukul Chandra Panda, Pankaj K Sa
{pandaa,pankajksa}@nitrkl.ac.in
Banshidhar Majhi
bmajhi@nitrkl.ac.in
Presented By :
Dilruk G.A. (148209B)
Jagoda S.D. (148214K)
Index …
 Background of Sorting
 SIMD Array Processor
 Bitonic Sort Algorithm
 Conclusion
2
Background of Sorting
 Sorting of data is needed everywhere
• Data Structures, Joins in databases, Searching Algorithms
 Simple algorithms required O(n2)
• Selection Sort, Insertion Sort, Bubble Sort
 Even advanced algorithm take O(nLogn)
• Merge Sort, Heap Sort, Cube Sort
 Parallel sorting solve the problem
• Bitonic Sort, Parallel Merge Sort
3
SIMD Array Processor
 Special purpose
processor
• Ex: multi core, GPU
 Single Instruction ,
Multiple Data
• One instruction work on multiple
data items simultaneously
4
 Single Program Counter
 Multiple Processing Elements (PEs)
Bitonic Sorting Algorithm
 List A: (3, 4, 7, 8) monotonically increasing.
 List B: (6, 5, 2, 1) monotonically decreasing.
 List AB: (3, 4, 7, 8, 6, 5, 2, 1) Bitonic list.
 Bitonic list is two monotonic lists concatenated
together, one increasing and one decreasing.
 For n elements n/2 comparators are using.
 Repeatedly build Bitonic lists and then sort them.
 Just logn stages are required to sort the Bitonic list.
5
Bitonic Sorting Algorithm
6
Time Complexity
 In line 2 a shared memory access is needed.
 Line 26 need one more operation to write
data back to the array.
 Within nested loop 2 memory references are
multiplied
7
Bitonic Sort
12
15
16
14
13
17
11
10
8x monotonic lists: 16,11,14,10,17,15,12,13
4x bitonic lists: (16,11),(14,10),(17,15),(12,13)
Bitonic Sort
12
15
16
14
13
17
11
10
8x monotonic lists: 16,11,14,10,17,15,12,13
4x bitonic lists: (16,11),(14,10),(17,15),(12,13)
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
4x monotonic lists: (11,16),(14,10),(15,17),(13,12)
2x bitonic lists: (11,16,14,10),(15,17,13,12)
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
4x monotonic lists: (11,16),(14,10),(15,17),(13,12)
2x bitonic lists: (11,16,14,10),(15,17,13,12)
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
4x monotonic lists: (11,16),(14,10),(15,17),(13,12)
2x bitonic lists: (11,16,14,10),(15,17,13,12)
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
13
15
10
14
12
17
11
16
2x monotonic lists: (10,11,14,16),(17,15,13,12)
1x bitonic lists: (10,11,14,16,17,15,13,12)
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
13
15
10
14
12
17
11
16
sorting
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
14
15
10
13
16
17
11
12
13
15
10
14
12
17
11
16
sorting
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
14
15
10
13
16
17
11
12
13
15
10
14
12
17
11
16
sorting
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
14
15
10
13
16
17
11
12
17
15
10
13
16
14
11
12
13
15
10
14
12
17
11
16
sorting
Bitonic Sort
12
15
16
14
13
17
11
10
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
14
15
10
13
16
17
11
12
17
15
10
13
16
14
11
12
13
15
10
14
12
17
11
16
sorting
Bitonic Sort
12
15
16
14
13
17
11
10
Done
13
17
11
14
12
15
16
10
13
17
11
14
12
15
10
16
14
15
10
13
16
17
11
12
17
15
10
13
16
14
11
12
16
15
10
12
17
14
11
13
13
15
10
14
12
17
11
16
Bitonic Sorting Example …
20
Bitonic Sorting Example …
21
Bitonic Sorting Example
Tuesday, June 16, 2015 22
23

More Related Content

What's hot

Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked listLavanyaJ28
 
Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1DrSudeshna
 
2 marks- DS using python
2 marks- DS using python2 marks- DS using python
2 marks- DS using pythonLavanyaJ28
 
linked lists in data structures
linked lists in data structureslinked lists in data structures
linked lists in data structuresDurgaDeviCbit
 
Interactive exploration of complex relational data sets in a web - SemWeb.Pro...
Interactive exploration of complex relational data sets in a web - SemWeb.Pro...Interactive exploration of complex relational data sets in a web - SemWeb.Pro...
Interactive exploration of complex relational data sets in a web - SemWeb.Pro...Logilab
 
Memory segmentation-of-8086
Memory segmentation-of-8086Memory segmentation-of-8086
Memory segmentation-of-8086mudulin
 
Data Structures Notes 2021
Data Structures Notes 2021Data Structures Notes 2021
Data Structures Notes 2021Sreedhar Chowdam
 
Orange Data Mining and Data Visualization Tool
Orange Data Mining and Data Visualization ToolOrange Data Mining and Data Visualization Tool
Orange Data Mining and Data Visualization ToolSyeda Sania
 
Quantum data processing
Quantum data processingQuantum data processing
Quantum data processingAshok Patra
 
Address translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhuteAddress translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhuteAniket Bhute
 
Data structures Basics
Data structures BasicsData structures Basics
Data structures BasicsDurgaDeviCbit
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure shameen khan
 
Introduction data structure
Introduction data structureIntroduction data structure
Introduction data structureMuhammad Ismail
 

What's hot (20)

Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
 
Data structure
Data structureData structure
Data structure
 
Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1
 
Linked Lists
Linked ListsLinked Lists
Linked Lists
 
2 marks- DS using python
2 marks- DS using python2 marks- DS using python
2 marks- DS using python
 
linked lists in data structures
linked lists in data structureslinked lists in data structures
linked lists in data structures
 
02. the linked lists (1)
02. the linked lists (1)02. the linked lists (1)
02. the linked lists (1)
 
Sql ppt
Sql pptSql ppt
Sql ppt
 
Interactive exploration of complex relational data sets in a web - SemWeb.Pro...
Interactive exploration of complex relational data sets in a web - SemWeb.Pro...Interactive exploration of complex relational data sets in a web - SemWeb.Pro...
Interactive exploration of complex relational data sets in a web - SemWeb.Pro...
 
Memory segmentation-of-8086
Memory segmentation-of-8086Memory segmentation-of-8086
Memory segmentation-of-8086
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Data Structures Notes 2021
Data Structures Notes 2021Data Structures Notes 2021
Data Structures Notes 2021
 
Orange Data Mining and Data Visualization Tool
Orange Data Mining and Data Visualization ToolOrange Data Mining and Data Visualization Tool
Orange Data Mining and Data Visualization Tool
 
Quantum data processing
Quantum data processingQuantum data processing
Quantum data processing
 
Bt export
Bt exportBt export
Bt export
 
Address translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhuteAddress translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhute
 
Data structures Basics
Data structures BasicsData structures Basics
Data structures Basics
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
Data structures using C
Data structures using CData structures using C
Data structures using C
 
Introduction data structure
Introduction data structureIntroduction data structure
Introduction data structure
 

Viewers also liked

su vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaisu vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaimenngan
 
Dracula Presentation with Answers
Dracula Presentation with AnswersDracula Presentation with Answers
Dracula Presentation with Answersalexteacherproa
 
Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Asanka Dilruk
 
sự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáisự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáimenngan
 
11 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 211 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 2Asanka Dilruk
 
Displays for advertising
Displays for advertisingDisplays for advertising
Displays for advertisingSerigrafiarte
 
Military service in Swaziland
Military service in SwazilandMilitary service in Swaziland
Military service in SwazilandDerik Lu
 
Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015kiptisia
 
SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表Yi Tseng
 
‫فايروس الاختصارات
‫فايروس الاختصارات ‫فايروس الاختصارات
‫فايروس الاختصارات Groh-alroh
 
karakteristik komponen komponenn
karakteristik komponen komponennkarakteristik komponen komponenn
karakteristik komponen komponennrosmariasinurat19
 
Bitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array ProcessorBitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array ProcessorAsanka Dilruk
 

Viewers also liked (20)

Day 6
Day 6Day 6
Day 6
 
su vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaisu vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doai
 
销售人员手册080905
销售人员手册080905销售人员手册080905
销售人员手册080905
 
Dracula Presentation with Answers
Dracula Presentation with AnswersDracula Presentation with Answers
Dracula Presentation with Answers
 
Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0Model-Driven Testing with UML 2.0
Model-Driven Testing with UML 2.0
 
sự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáisự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoái
 
11 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 211 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 2
 
Displays for advertising
Displays for advertisingDisplays for advertising
Displays for advertising
 
Evaluation question 5
Evaluation question 5Evaluation question 5
Evaluation question 5
 
Evaluation question 5
Evaluation question 5Evaluation question 5
Evaluation question 5
 
Military service in Swaziland
Military service in SwazilandMilitary service in Swaziland
Military service in Swaziland
 
Potassium humte
Potassium humtePotassium humte
Potassium humte
 
Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015
 
SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表
 
‫فايروس الاختصارات
‫فايروس الاختصارات ‫فايروس الاختصارات
‫فايروس الاختصارات
 
La comida marroquí
La comida marroquíLa comida marroquí
La comida marroquí
 
HydraFS
HydraFSHydraFS
HydraFS
 
La ciudad de tanger
La ciudad de tanger La ciudad de tanger
La ciudad de tanger
 
karakteristik komponen komponenn
karakteristik komponen komponennkarakteristik komponen komponenn
karakteristik komponen komponenn
 
Bitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array ProcessorBitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array Processor
 

Similar to BitonicSortSIMD

UNIT 2 _ Data Processing and Aanalytics.pptx
UNIT 2 _ Data Processing and Aanalytics.pptxUNIT 2 _ Data Processing and Aanalytics.pptx
UNIT 2 _ Data Processing and Aanalytics.pptxYUVARAJS470834
 
G-Store: High-Performance Graph Store for Trillion-Edge Processing
G-Store: High-Performance Graph Store for Trillion-Edge ProcessingG-Store: High-Performance Graph Store for Trillion-Edge Processing
G-Store: High-Performance Graph Store for Trillion-Edge ProcessingPradeep Kumar
 
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...Hsien-Hsin Sean Lee, Ph.D.
 
Modern Database Systems - Lecture 02
Modern Database Systems - Lecture 02Modern Database Systems - Lecture 02
Modern Database Systems - Lecture 02Michael Mathioudakis
 
Advance computer architecture
Advance computer architectureAdvance computer architecture
Advance computer architecturesuma1991
 
Analysis and design of algorithms part2
Analysis and design of algorithms part2Analysis and design of algorithms part2
Analysis and design of algorithms part2Deepak John
 
Merge sort analysis and its real time applications
Merge sort analysis and its real time applicationsMerge sort analysis and its real time applications
Merge sort analysis and its real time applicationsyazad dumasia
 
A Cost-Effective and Scalable Merge Sort Tree on FPGAs
A Cost-Effective and Scalable Merge Sort Tree on FPGAsA Cost-Effective and Scalable Merge Sort Tree on FPGAs
A Cost-Effective and Scalable Merge Sort Tree on FPGAsTakuma Usui
 
FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...
FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...
FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...Ryohei Kobayashi
 

Similar to BitonicSortSIMD (20)

UNIT 2 _ Data Processing and Aanalytics.pptx
UNIT 2 _ Data Processing and Aanalytics.pptxUNIT 2 _ Data Processing and Aanalytics.pptx
UNIT 2 _ Data Processing and Aanalytics.pptx
 
G-Store: High-Performance Graph Store for Trillion-Edge Processing
G-Store: High-Performance Graph Store for Trillion-Edge ProcessingG-Store: High-Performance Graph Store for Trillion-Edge Processing
G-Store: High-Performance Graph Store for Trillion-Edge Processing
 
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
 
Matlab-1.pptx
Matlab-1.pptxMatlab-1.pptx
Matlab-1.pptx
 
Modern Database Systems - Lecture 02
Modern Database Systems - Lecture 02Modern Database Systems - Lecture 02
Modern Database Systems - Lecture 02
 
Cache recap
Cache recapCache recap
Cache recap
 
Cache recap
Cache recapCache recap
Cache recap
 
Cache recap
Cache recapCache recap
Cache recap
 
Cache recap
Cache recapCache recap
Cache recap
 
Cache recap
Cache recapCache recap
Cache recap
 
Cache recap
Cache recapCache recap
Cache recap
 
Cache recap
Cache recapCache recap
Cache recap
 
Advance computer architecture
Advance computer architectureAdvance computer architecture
Advance computer architecture
 
16-sorting.ppt
16-sorting.ppt16-sorting.ppt
16-sorting.ppt
 
Analysis and design of algorithms part2
Analysis and design of algorithms part2Analysis and design of algorithms part2
Analysis and design of algorithms part2
 
MaPU-HPCA2016
MaPU-HPCA2016MaPU-HPCA2016
MaPU-HPCA2016
 
Aa sort-v4
Aa sort-v4Aa sort-v4
Aa sort-v4
 
Merge sort analysis and its real time applications
Merge sort analysis and its real time applicationsMerge sort analysis and its real time applications
Merge sort analysis and its real time applications
 
A Cost-Effective and Scalable Merge Sort Tree on FPGAs
A Cost-Effective and Scalable Merge Sort Tree on FPGAsA Cost-Effective and Scalable Merge Sort Tree on FPGAs
A Cost-Effective and Scalable Merge Sort Tree on FPGAs
 
FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...
FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...
FACE: Fast and Customizable Sorting Accelerator for Heterogeneous Many-core S...
 

More from Asanka Dilruk

Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs Asanka Dilruk
 
Agile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical StudyAgile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical StudyAsanka Dilruk
 
Oracle DB Performance Tuning Tips
Oracle DB Performance Tuning TipsOracle DB Performance Tuning Tips
Oracle DB Performance Tuning TipsAsanka Dilruk
 
Understanding Android Security
Understanding Android SecurityUnderstanding Android Security
Understanding Android SecurityAsanka Dilruk
 
Windows OS Architecture in Summery
Windows OS Architecture in SummeryWindows OS Architecture in Summery
Windows OS Architecture in SummeryAsanka Dilruk
 

More from Asanka Dilruk (6)

oracle tables
oracle tablesoracle tables
oracle tables
 
Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs
 
Agile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical StudyAgile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical Study
 
Oracle DB Performance Tuning Tips
Oracle DB Performance Tuning TipsOracle DB Performance Tuning Tips
Oracle DB Performance Tuning Tips
 
Understanding Android Security
Understanding Android SecurityUnderstanding Android Security
Understanding Android Security
 
Windows OS Architecture in Summery
Windows OS Architecture in SummeryWindows OS Architecture in Summery
Windows OS Architecture in Summery
 

BitonicSortSIMD