Terminé

Urgent Mathematics project (2 Hours)

If f(n)=2n2+n+12 and g(n)=n2

, please show f(n)=Θ(g(n)). (Hint: you need to

find c1, c2, and no to make c1g(n) ≤ f(n) ≤ c2g(n)) (20 points)

2. What are the big O notations of best case, worst case, and average case of

Merge Sort? (15 points)

3. (1) The Insertion Sort below can output an ascending array. Please modify

the pseudocode to make it output a descending array. (10 points)

(2)Please give an array with 5 elements, which is the worst case of the

modified insertion sort code. (5 points)

(3)Please give an array with 5 elements, which is the best case of the

modified insertion sort code. (5 points)

4. What is the big O notation of the following program (please show detailed

steps for full credits):

for (int i=1; i<n; i*=2)

for (int j=i; j<n; j++)

{//other constant time statements ;}

(30 points)

5. If a modified merge sort method splits the input array into three equal-sized

subarrays, what is the recurrence relation T(n) of this merge sort method?

(15 points)

Compétences : Traitement de Données

Concernant l'employeur :
( 31 commentaires ) Nairobi, Kenya

Nº du projet : #32774536

Décerné à:

(4 Commentaires)
2.9

4 freelances font une offre moyenne de 13 $ pour ce travail

Matthewos982

Hello There! I am ready to start right now I am a professional Data entry, Lead Generation, Web Scraping, Excel,Research, And Web research Expert. I'm here to provide you High Quality Task in very fast turnaround tim Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)
0.2
Vivekkr841409

I am perfect for this work because I have experience in this work I will done our project within time

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0
anasbt4983

Hi, I read and understand all your requirements and intrested in working with you. I'm ready and available 24/7. Message me on the chat box so that can we can discuss more :) Thanks

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0