A list is ordered from smaller to largest when a sort is
called. Which sort would take the longest time to execute?

Answer Posted / rahul

Bubble Sort cannot be the answer, Because the MODIFIED BUBBLE SORT takes complexity of O(n) when the elements are arranged in a particular order..

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does selection sort work?

550


How does quick sort work?

525


How can we delete any specific node from the linked list?

510


Can value be null in treemap?

512


Define a relation?

550






What does arraylist remove do?

519


When is a binary search algorithm best applied?

661


What are linked list?

558


What is the difference between an array and vector?

523


What are the disadvantages of linked list?

464


What is a bubble sort and how do you perform it?

661


Will it create any problem if we add elements with key as user defined object into the treemap?

525


Write the algorithm for converting infix expression to postfix expression?

562


Define an abstract data type (adt)?

572


Why linked list is required?

450