Question

Canvas →XC 6 D Question 10 5 pts When sorting n records, Quicksort has worst-case cost On) On 2) On logn) Olm Question 11 5 p

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Note: As per HOMEWORKLIB RULES I am allowed to answer only one question per post(But I have answered 2), so please do post the rest as a separate query. Sorry for the inconvenience caused.

10)
quick sort has the following recurrence
T(n)= T(n-1)+ O(n)
T(n)= O(n^2)

so the answer is option B

11)

the best case for any comparison based sorting is O(nlogn)

this is because any permutation of n elements which is n! must apper as leaves in the sorting. It is a big theorem. Please do read it once.

Add a comment
Know the answer?
Add Answer to:
Canvas →XC 6 D Question 10 5 pts When sorting n records, Quicksort has worst-case cost...
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