Design & Analysis Algorithms

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

Basic Recurrence

T(n) = aT(n/b) + f(n)
- a = number of subproblems
- b = subproblem size
- f(n) = cost of non-recursive work at each node

2
New cards

Size per node at level i

n/b^i

3
New cards

Number of nodes at level i

a^i

4
New cards

Cost per node at level i

f(n/b^i)

5
New cards

Total cost at level i

number of nodes * cost per node
a^i  * f(n/b^i)

6
New cards

Height of the tree

log_b(n)

7
New cards

Number of leaves

a^(log_b(n)) = n^(log_b(a))

8
New cards

Total cost of the entire recursion tree

T(n) = ∑ (from i = 0 to log_b(n)) [a^i * f(n/b^i)]

9
New cards

Explore top flashcards

Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)
Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)