Algorithm Analysis (CSC 301 2015F) : EBoards

CSC301.01 2015F, Class 40: Looking Ahead: P vs. NP


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit

Questions

For the last problem, what should I choose when I have multiple trees with the same frequency?

The shorter tree.

For the last problem, do I need to include characters with a frequency of zero?

Yes.

For the class rating problem, aren't a and c the same problem?

I believe that a may require n steps (since there may be at least n 0's) but c should be doable in O(logn).

Do you have an example of the task completion done yet?

Not yet.

Is the "max-flow with shortest path" approach correct?

Yes.

Will you bring random numbers to class on Wednesday?

Yes.

Path Length

Design an algorithm that finds out whether a weighted graph contains an acyclic path of length l. (Alternately, that finds the path.)

Ideas

We are confident that exhaustive search will work

Running Times

Basic complexity classes

NP-Complete problems

TSP

Satisfiability (SAT)