Question

8 Sorting Algorithms: Bubble, selection, insertion, quick, merge, bucket, radix, counting. 1. A..Which of the above...

8 Sorting Algorithms:

Bubble, selection, insertion, quick, merge, bucket, radix, counting.



1. A..Which of the above sorting algorithms does TimSort use?

2. Which of the above algorithms sort a REVERSE ORDER list in O(n2 ) (worst case)?

3. Which of the above algorithms sort a REVERSE ORDER list in O(nlogn) (worst case)?

4. Which of the above algorithms sort an ordered list , a reverse ordered list, and a random list (all three) in 0(nlogn) (worst case)?

5. Which of the above algorithms sort an ordered list , a reverse ordered list, and a random list (all three) in 0(n2 )(worst case)?

6. Which algorithm takes almost double the amount of space of the original list while it is sorting?

7. Which of the 3 traversal methods would we use to print out a binary search tree as sorted?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) Timsort is a hybrid stable sorting technique which derived from merge sort and insertion sort

2) Bubble, selection, insertion, quick, bucket

3) Merge Sort

4) Merge Sort in all way it take O(nlongn)

5) Selection Sort take O(n2) in all cases

6) counting sort almost take double space O(n+k) where n is size and k is range

7)Merge sort, bucket , Quick

Add a comment
Know the answer?
Add Answer to:
8 Sorting Algorithms: Bubble, selection, insertion, quick, merge, bucket, radix, counting. 1. A..Which of the above...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT