+1 vote
421 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 216 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

561 users

...