Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m kinda confused about these questions, could anyone explain to me? thanks! 1

ID: 3903953 • Letter: I

Question

I'm kinda confused about these questions, could anyone explain to me? thanks!

181. Suppose the recurrence equation T(p, q) = T (p, q-1) + ? (p) is used to describe radix sort. Considering only the sorting of the numbers on a particular digit, which sort is consistent with that equation? A. selection sort B. mergesort sort C. radix sort D. counting sort 182. Suppose the recurrence equation T (p, q-T (p, q- 1) + 0(plog p) is used to describe radix sort. Considering only the sorting of the numbers on a particular digit, which sort is consistent with that equation? A. counting sort B. mergesort sort C. radix sort D. selection sort

Explanation / Answer




1)Answer:
Counting Sort:
Counting sort is a sorting technique based on keys between a specific range. It works by counting the number of objects having distinct key values (kind of hashing).
2).Answer:
Merge Sort
The Merge sort is the Better to Use,The Merge Sort will uses the Divide and Conquer Strategy.
The Time Complexity of Merge sort is:?(n log(n))
->Many algorithms,particularly divide and conquer algorithms,have time complexities which are naturally
modeled by recurrence relations.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote