+1 vote
399 views
in Operating System by
reopened

The number of comparisons required for bubble sorting of an array of n elements is ________

a) n(n-1)/2

b) n/2

c) log2

d) log10n

1 Answer

0 votes
by (8.1k points)
selected
 
Best answer
A) n(n-1)/2

Is the right answer

Related questions

+2 votes
1 answer 196 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

537 users

...