Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 40 CSE 331 Dec 11, 2009. Announcements Solutions to HW 10 and graded HW 9 at end of the lecture Review session on Monday: see blog for details.

Similar presentations


Presentation on theme: "Lecture 40 CSE 331 Dec 11, 2009. Announcements Solutions to HW 10 and graded HW 9 at end of the lecture Review session on Monday: see blog for details."— Presentation transcript:

1 Lecture 40 CSE 331 Dec 11, 2009

2 Announcements Solutions to HW 10 and graded HW 9 at end of the lecture Review session on Monday: see blog for details Blog post on finals is up Turn in your HW 10 by 1:10PM

3 Finals Noon – 2:30 NSC 210 Wed, Dec 16

4 Longest vs Shortest Paths

5 Two sides of the “same” coin Shortest Path problem Can be solved by a polynomial time algorithm Is there a longest path of length n-1? Given a path can verify in polynomial time if the answer is yes

6 Poly time algo for longest path?

7 P vs NP question P : problems that can be solved by poly time algorithms NP : problems that have polynomial time verifiable witness to optimal solution Is P=NP? Alternate NP definition: Guess witness and verify!

8 Proving P ≠ NP Pick any one problem in NP and show it cannot be solved in poly time Pretty much all known proof techniques provably will not work

9 Proving P = NP Will make cryptography collapse Compute the encryption key! Prove that all problems in NP can be solved by polynomial time algorithms NP NP-complete problems Solving any ONE problem in here in poly time will prove P=NP!

10 If you are curious for more CSE431: Algorithms CSE 396: Theory of Computation

11 High level view of CSE 331 Problem Statement Algorithm Problem Definition “Implementation” Analysis Correctness+Runtime Analysis Data Structures Three general techniques

12 Now relax…

13 13 Coding Theory

14 14 The setup C(x) x y = C(x)+error x Give up Mapping C  Error-correcting code or just code  Encoding: x  C(x)  Decoding: y  X  C(x) is a codeword

15 15 Different Channels and Codes Internet – Checksum used in multiple layers of TCP/IP stack Cell phones Satellite broadcast – TV Deep space telecommunications – Mars Rover

16 16 “Unusual” Channels Data Storage – CDs and DVDs – RAID – ECC memory Paper bar codes – UPS (MaxiCode) Codes are all around us

17 17 Redundancy vs. Error-correction Repetition code: Repeat every bit say 100 times – Good error correcting properties – Too much redundancy Parity code: Add a parity bit – Minimum amount of redundancy – Bad error correcting properties Two errors go completely undetected Neither of these codes are satisfactory 1 1 1 0 011 0 0 0 01

18 18 Two main challenges in coding theory Problem with parity example – Messages mapped to codewords which do not differ in many places Need to pick a lot of codewords that differ a lot from each other Efficient decoding – Naive algorithm: check received word with all codewords

19 19 The fundamental tradeoff Correct as many errors as possible with as little redundancy as possible Can one achieve the “optimal” tradeoff with efficient encoding and decoding ?

20 20 Datastream Algorithms

21 21 Data Streams (one application) Databases are huge – Fully reside in disk memory Main memory – Fast, not much of it Disk memory – Slow, lots of it – Random access is expensive – Sequential scan is reasonably cheap Main memory Disk Memory

22 22 Data Streams (one application) Given a restriction on number of random accesses to disk memory How much main memory is required ? For computations such as join of tables Main memory Disk memory

23 Whatever your impression of the 331 IT WAS

24 Hopefully it was fun!

25 Thanks!


Download ppt "Lecture 40 CSE 331 Dec 11, 2009. Announcements Solutions to HW 10 and graded HW 9 at end of the lecture Review session on Monday: see blog for details."

Similar presentations


Ads by Google