answersLogoWhite

0


Best Answer

The default function is built inside of Python.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is default function used to sort only lists is?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

When would you use bubble sort?

Never. Bubble sort is often cited as an example of how not to write a sorting algorithm and is used purely as a programming exercise. It is never used in production code. Although reasonably efficient when sorting small lists, an insertion sort performs better on average. But for larger lists it has no practical uses. A merge sort is better for large lists, but if stability isn't an issue a quick sort is even better. Hybrid sorts typically use quick sort until a partition is small enough for an insertion sort to complete the job.


What fundamental mathematical principle underlies the effectiveness of the Quick sort algorithm to sort certain lists of data elements rapidly?

penis


What advantages of a sorted list over a linked list?

All lists are linked lists; there is no such thing as a separate "sorted list". There are algorithms that can sort a list, of course, but they all work on linked lists.


Ascending and descending order in HTML javascript?

You have the sort() method of Javascript arrays:---var a = [1,2,10,11];a.sort(); // gives [1, 10, 11, 2]---The default sort is lexicographic, sorting the values as strings.For numbers and descending sort, you can pass in a function:---function sortNum(a, b) {return a - b;}function sortDesc(a, b) {return b - a;}a.sort(sortNum); // gives [1, 2, 10, 11]a.sort(sortDesc); // gives [11, 10, 2, 1]---The function takes two arguments, and returns a negative number if the first element is smallest, a positive number if the first element is largest, and zero if they are equal.See related link.


Suppose you are comparing implementations of insertion sort and merge sort on the same machine For inputs of size n insertion sort runs in 8n2 steps while merge sort runs in 64n lg n steps For which v?

we can give the delay function to the faster processing sort we can give the delay function to the faster processing sort

Related questions

How do you sort variable in ascending or descending order both in php?

Assuming that the values are stored in an array, you can use the php function sort($array) to sort ascending, and rsort to sort descending. The following link gives a table that lists all of the built in PHP sort functions: http://php.net/manual/en/array.sorting.php


How can you add a default sort order of entries in BigGyan Cloud eLearning?

In the Fields tab, select a default sort field, choose ascending or descending then click the Save button.


What is chrobograghy?

A chronograph is similar to a stopwatch. Not only does it function as a sort of stopwatch, it can also calculate speed and distance.


When would you use bubble sort?

Never. Bubble sort is often cited as an example of how not to write a sorting algorithm and is used purely as a programming exercise. It is never used in production code. Although reasonably efficient when sorting small lists, an insertion sort performs better on average. But for larger lists it has no practical uses. A merge sort is better for large lists, but if stability isn't an issue a quick sort is even better. Hybrid sorts typically use quick sort until a partition is small enough for an insertion sort to complete the job.


Where can you find a list of doctors who use Twitter?

There aren't any lists of this sort.


What fundamental mathematical principle underlies the effectiveness of the Quick sort algorithm to sort certain lists of data elements rapidly?

penis


What advantages of a sorted list over a linked list?

All lists are linked lists; there is no such thing as a separate "sorted list". There are algorithms that can sort a list, of course, but they all work on linked lists.


Ascending and descending order in HTML javascript?

You have the sort() method of Javascript arrays:---var a = [1,2,10,11];a.sort(); // gives [1, 10, 11, 2]---The default sort is lexicographic, sorting the values as strings.For numbers and descending sort, you can pass in a function:---function sortNum(a, b) {return a - b;}function sortDesc(a, b) {return b - a;}a.sort(sortNum); // gives [1, 2, 10, 11]a.sort(sortDesc); // gives [11, 10, 2, 1]---The function takes two arguments, and returns a negative number if the first element is smallest, a positive number if the first element is largest, and zero if they are equal.See related link.


What is the recommended antifreeze and water mixture?

Climate dependent. 50/50 mix is a sort of default.


What are the advantages for bubble sort?

Bubble sort has no practical applications other than that it is often cited as an example of how not to write an algorithm. Insert sort is the best algorithm for sorting small lists of items and is often used in conjunction with quick sort to sort larger lists. Like insert sort, bubble sort is simple to implement and is a stable sort (equal items remain in the same order they were input). However, insert sort uses copy or move operations rather than swaps (which is actually three operations per swap) and is therefore quicker. The only time a bubble sort will work quicker than insert sort is when the array is already sorted, which renders the entire algorithm redundant. A modified algorithm that specifically tests if an array is sorted or not would be more efficient than a single-pass bubble sort.


What is the differences between sort acending and decending?

Sort ascending lists a group of items in order, starting with the smallest quantity first. Sort descending - is the reverse - starting with the largest, and ending with the smallest.


Suppose you are comparing implementations of insertion sort and merge sort on the same machine For inputs of size n insertion sort runs in 8n2 steps while merge sort runs in 64n lg n steps For which v?

we can give the delay function to the faster processing sort we can give the delay function to the faster processing sort