Advanced Algorithm Q.19

0. When a bitonic sequence 20 30 40 50 60 55 45 35 is subjected to compare-exchange of diametrically opposite elements, the lower-higher sides are defined using a diameter passing between 20 and 30. If the lower-higher sides were defined using a diameter passing between 30 and 40 instead, which two elements swap places?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *