Exercise 3 - PowerPoint PPT Presentation

1 / 2
About This Presentation
Title:

Exercise 3

Description:

What is the largest integer value for a such that A' is asymptotically faster than A? Use the master method to show that the solution to the binary-search recurrence ... – PowerPoint PPT presentation

Number of Views:106
Avg rating:3.0/5.0
Slides: 3
Provided by: web2CcN
Category:
Tags: exercise | method

less

Transcript and Presenter's Notes

Title: Exercise 3


1
Exercise 3
  • Is 2n1 O(2n)? Is 22n O(2n)?
  • Use the substitution method, recursion-tree
    method, and master method to give tight
    asymptotic bounds for T(n) 4T(n/2) n2
  • The recurrence T(n)7T(n/2) n2 describes the
    running time of an algorithm A. A competing
    algorithm A has a running time T(n)aT(n/4)
    n2 . What is the largest integer value for a such
    that A is asymptotically faster than A?
  • Use the master method to show that the solution
    to the binary-search recurrence T(n)T(n/2)
    ?(1) is T(n) ?(lg n). (See Exercise 2.3-5 for a
    description of binary search.)
  • Can the master method be applied to the
    recurrence T(n)4T(n/2)n2lgn? Why or why not?
    Give an asymptotic upper bound for this
    recurrence.

2
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com