-
Notifications
You must be signed in to change notification settings - Fork 7
[Bitonic Sort] what is rotation ? and is there any formal algorithm for it ? #65
Comments
|
@CauchyComplete I think it should be for each i, there is one k for each i, right ? e.g. for: i=1 k could be 5, i=2 k could be another number. |
@doduythao Maybe an example would clarify it. As I understood from the class, given this sequence <1,2,3,4> a rotation would be <2,3,4,1> and of course there are more rotations like <3,4,1,2> |
@CauchyComplete I followed your pseudocode, but I got wrong result. |
@LLJE Bitonic merge needs bitonic sequence as an input, and outputs a sorted sequence |
@ppnchb Ah, I see. I confused it with bitonic sort. Thanks. |
@doduythao It's one k all i, not k_i for each i. |
@doduythao I believe the discussion here answers your question, right? |
Thanks. I know got the "Note that I'm denoting S[i+2n]==S[i] where S has length of 2n." |
I don't understand the definition of rotation in the lecture. Also is there any formal algorithm for bitonic merge func ? (like the formal in odd-even merge). Any one can help ? Thank in advance my savior
The text was updated successfully, but these errors were encountered: