Russian flag problem

profileFluffy1237

The Russian flag problem is to rearrange an array of characters R, W, and B so that R is the first character, R is followed by a W, W is followed by a B, B is followed by another R, and the pattern repeats.  Design a linear algorithm (pseudo code) for this problem.

    • 12 years ago
    • 20
    Answer(2)

    Purchase the answer to view it

    blurred-text
    • attachment
      russianflag.pdf
    • attachment
      russianflagjavaprogram.pdf

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      russian_flag_algorithm_complete_solution.doc
    Bids(0)