Computer Science
What is sorting ? Name some popular sorting techniques.
Python Data Handling
5 Likes
Answer
Sorting refers to arranging elements of a sequence in a specific order — ascending or descending.
Sorting Techniques are as follows :
- Bubble Sort
- Insertion Sort
- Selection Sort
- Heap Sort
- Quick Sort
Answered By
1 Like
Related Questions
How is
del Danddel D[<key>]different from one another if D is a dictionary ?Create a dictionary named D with three entries, for keys 'a', 'b' and 'c'. What happens if you try to index a nonexistent key (D['d']) ? What does python do if you try to assign to a nonexistent key d.
(e.g., D['d'] = 'spam') ?Discuss Bubble sort and Insertion sort techniques.
What will be the output produced by following code fragments?
y = str(123) x = "hello" * 3 print (x, y) x = "hello" + "world" y = len(x) print (y, x)