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

Answer Posted / manasi

The Time Complexity of Bubble sort,insertion sort and
selection sort is same i.e. O(n^2). So all sorting
algorithms will take same time to sort the elements.
Please correct me if im wrong..

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of arrays are there in visual basic?

681


Explain the term run-time stack?

799


What does adt stands for?

677


Define the term “percolate down”?

799


What is concept of data structure?

655


What are the difference between malloc() and calloc()?

749


What are scalar values?

683


Define graph traversals?

724


Which is the slowest sorting algorithm?

724


How do you declare A pointer to array of three chars

742


How can a binary tree be represented using the rotation?

712


What is doubly linked list?

720


Which sorting is best?

689


How much time does it take to learn data structures?

706


Sorting is not possible by using which of the methods?

698