Which sort show the best average behavior?

Answer Posted / manoj ransing

The worst case behaviour or quick sort is n^2, but that of
heap sort is nlogn. The average case for both is nlogn.

Is This Answer Correct ?    3 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is hashmap not thread safe?

491


Can arraylist contain duplicates?

488


How would you use qsort() function to sort the name stored in an array of pointers to string?

565


Can we make hashmap synchronized?

481


What are the advantages of linked list over an array?

545






What are the 3 types of measurement?

538


Is linked list faster than array?

481


What is array and structure?

536


Why is it important to sort waste?

468


What is binary tree and its types?

493


Is map a collection?

487


How can we delete the first node from the singly linked list?

489


What is the relationship between a queue and its underlying array?

707


How would you reverse characters of an array without using indexing in the array.

501


Can you sort a hashmap?

499