benes looping algorithm

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hebaahmed
    New Member
    • May 2010
    • 4

    benes looping algorithm

    if input and output:
    0 1 2 3 4 5 6 7 =>input
    5 7 1 2 6 4 0 3 =>output
    each element must go to the below one as 0 to 5, 1 to 7 etc
    i want to know if input 0 to 5 the next must be 4 but from output to 5 in input then take 4 in input to 6 in output then take 7 from output to 1 in input and etc
    i want know how to do this by java code please help me thanks
    note: in benes 0,1 /2,3/4,5/6,7 in each group if taken element the next must be the other
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Sorry? Could you explain how the algorithm works further? Provide another example with sample input/output and workflow.

    Comment

    Working...