Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Which of the following sorts is quickest when sorting the
following set: 1 2 3 5 4




1) Quick Sort


2) Bubble Sort


3) Merge Sort

Answer Posted / khushboo

BUbble sort

Quick Sort will take nlogn time and also merge sort

But bubble sort will take only O(n) as we can detect no
shift of position in first scan itself...

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are bit fields portable?

1162


How to declare pointer variables?

1248


Explain what are the standard predefined macros?

1122


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1254


Write a code to generate a series where the next element is the sum of last k terms.

1229


Explain pointers in c programming?

1121


What is meant by keywords in c?

1073


What is assignment operator?

1061


Apart from dennis ritchie who the other person who contributed in design of c language.

1406


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

1316


What are structure members?

1094


Explain what are multidimensional arrays?

1072


Is it acceptable to declare/define a variable in a c header?

1127


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1255


List the different types of c tokens?

1076