+1 vote
734 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) log2n 

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 467 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!

Recent Badges

laxman Ji Earned a badge
HelloWorld Earned a badge
codelikepro Earned a badge

5.7k questions

5.1k answers

108 comments

650 users

...