Bitonic Sort - Batcher's Networks for Merging / Sorting a b...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Batcher’s Networks for Merging / Sorting L H max(a , b) b min(a , b) a Compare-exchange operation Building Block Comparator
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A sequence a 0 , a 1 , a 2 , . .., a m-1 , a m , . .., a n-1 of length n in which the first part a 0 , a 1 , a 2 , . .., a m-1 is monotonically increasing and the second part a m , . .., a n-1 is monotonically decreasing (where index 0 m n – 1) is called a bitonic sequence A sequence which can be made bitonic by a cyclic shift is also considered bitonic
Background image of page 2
A single compare-exchange step splits a bitonic sequence into two bitonic sequences L H L H L H L H a n-2 a n-1 a n/2-2 a n/2-1 a n/2 a n/2+1 a 0 a 1 High Bitonic Sequence Low Bitonic Sequence Every element in LBS is smaller than every element in HBS. Repeating log n times yields sorted sequence
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
7 8 10 19 16 5 14 20 High Low n = 8
Background image of page 4
7 8 10 19 20 16 14 5 5 14 20 High Low n = 8
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A C A L D E C P G H D O J K E N L P G M O N H I M I F J F B B K A G A G C H C H D F D F E B B E L M L M P I I P O J J O N K K N A D A D C B B C G F F G H E E H L J J L I K I K M O M O P N N P A B A B D C C
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/12/2010 for the course CS CDA 5110- taught by Professor Deo during the Spring '10 term at University of Central Florida.

Page1 / 13

Bitonic Sort - Batcher's Networks for Merging / Sorting a b...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online