question archive Conduct a mathematical analysis on the code snippet below: for (int x = 0; x <= SHUFFLE_EXCHANGES; x++) { int number1 = r
Subject:Computer SciencePrice: Bought3
Conduct a mathematical analysis on the code snippet below:
for (int x = 0; x <= SHUFFLE_EXCHANGES; x++)
{
int number1 = r.nextInt(DECK_SIZE);
int number2 = r.nextInt(DECK_SIZE);
Card temp = deck[number1];
deck[number1] = deck[number2];
deck[number2] = temp;
}
}
I computed its frequenct count = 7n+9 hoping it would help in performing the mathematical analysis