{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture6

# Lecture6 - Algorithms in Systems Engineering IE170 Lecture...

This preview shows pages 1–5. Sign up to view the full content.

Algorithms in Systems Engineering IE170 Lecture 6 Dr. Ted Ralphs

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
IE170 Lecture 6 1 References for Today’s Lecture Required reading CLRS Chapter 4 References R. Sedgewick, Algorithms in C++ (Third Edition), 1998.
IE170 Lecture 6 2 Analyzing Recurrences Last time, we analyzed merge sort using a recursion tree . General methods for analyzing recurrences Note that when we analyze a recurrence, we may not get or need an exact answer. We may prove the running time is in O ( f ) or Θ( f ) for some simpler function f . When taking the ratio of two integers, it usually doesn’t matter whether we round up or down.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
IE170 Lecture 6 3 A Few Examples This recurrence arises in algorithms that loop through the input to eliminate one item. T ( n ) = ( 1 n = 1 T ( n - 1) + n n > 1 This recurrence arises in algorithms that halve the input in one step. T ( n ) = ( 1 n = 1 T ( n/ 2) + 1 n > 1 This recurrence arises in algorithms that halve the input in one step, but have to scan through the data at each step.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 9

Lecture6 - Algorithms in Systems Engineering IE170 Lecture...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online