1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Doss [256]
2 years ago
7

What is the probability that random permutation of n numbers gets sorted after 1 pass of bubble sort

Mathematics
1 answer:
Len [333]2 years ago
5 0

It means the probability of a random permutation of n numbers gets sorted after 1 pass of bubble sort is n!

According to the statement

we have to find the probability of random permutation of the N numbers.

So, according to the definition of A random permutation is a random ordering of a set of objects, that is, a permutation-valued random variable.

In this we order of select the objects randomly.

So, Let There are n−1 comparisons, so 2n−1 possible sequences of actions - swap or don't swap.

To find the permutations, start with 1,2,3,4,5 and undo a sequence.

For example, if let n=5, there are 24=16 out of 5!

which is 5! =120 that end after one round of bubble sort.

So, It means the probability of a random permutation of n numbers gets sorted after 1 pass of bubble sort is n!

Learn more about probability of a random permutation here brainly.com/question/14615273

#SPJ4

You might be interested in
A 1-unit by 3-unit rectangle is shown below. what is the area of the shaded rectangle?
prisoha [69]

Answer:

3 units would be the area

8 0
3 years ago
Find the value of r so that the line through (2,8) and (r,-4) has a slope of -3
crimeas [40]

Answer:

  6

Step-by-step explanation:

The slope (m) is given by ...

  m = (y2 -y1)/(x2 -x1)

Filling in the given values, we have an equation we can solve for r.

  -3 = (-4 -8)/(r -2)

  r -2 = -12/-3 . . . . . multiply by (r-2)/-3

  r = 6 . . . . . . . . . . . add 2

4 0
3 years ago
Simplify the following expression. - (5a - 9b)
natta225 [31]

Answer:

-5a + 9b

Step-by-step explanation:

- (5a - 9b)

Distribute the minus sign

-5a + 9b

4 0
3 years ago
Terry's investment of $2,200 in the stock market earned $528 in two years. Find the simple interest rate for this investment
boyakko [2]

Answer:

I think 12%, I'm not entirely sure. . . .

Step-by-step explanation:


8 0
3 years ago
How do i do this? teacher didn’t help me much and i don’t understand this.
Mandarinka [93]
Answer:

1. 17.3 millions phones were sold

2. 2011

3. I don’t have answer for it yet
4 0
4 years ago
Other questions:
  • Parallelogram L M N O is shown. Angle L is (2 x + 10) degrees and angle O is (x + 20) degrees.
    15·2 answers
  • The mean monthly utility bill for a sample of households in a city is $70, with a standard deviation of $8. Between what two val
    15·1 answer
  • A box contains 8 books. It is 1/6 full. If the box were completely full, how many books would be in the box? A) 14 books B) 48 b
    9·1 answer
  • Find the missing factor B that makes the equality true. -35x^6=(-5x^2)(B)<br> B=
    11·2 answers
  • Last saturday, marissa walked her dog 1 1/2 miles. Sally walked her dog 2 times far. How many miles total did both girls walk th
    5·1 answer
  • Brainliest question please please help me now plz
    12·1 answer
  • 8 rows of 7 squares.<br> What is 56 ÷ 7?
    6·1 answer
  • Can someone please help!!!!
    14·1 answer
  • Meena is helping her school librarian to arrange books on the shelves. Based on this situation, answer the following questions:
    11·1 answer
  • While at a pet store, your friend bought 10 goldfish each costing the same amount. Your friend also bought a fish take for $50.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!