What are the average number of comparisons required to sort
3 elements?
Answer Posted / jaiprakash
n(n-1)/2(bubble sort)
n=3
(3*2)/2=3(n)
ans:n
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is difference between union All statement and Union?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is volatile variable how do you declare it?
What is character constants?
Which driver is a pure java driver
What is dangling pointer in c?
If fflush wont work, what can I use to flush input?
How do you determine the length of a string value that was stored in a variable?
Subtract Two Number Without Using Subtraction Operator
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How do you print an address?
What is the use of pointers in C?
What is the difference between array and structure in c?
What are the complete rules for header file searching?