Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 20 CSE 331 July 30, 2013. Longest path problem Given G, does there exist a simple path of length n-1 ?

Similar presentations


Presentation on theme: "Lecture 20 CSE 331 July 30, 2013. Longest path problem Given G, does there exist a simple path of length n-1 ?"— Presentation transcript:

1 Lecture 20 CSE 331 July 30, 2013

2 Longest path problem Given G, does there exist a simple path of length n-1 ?

3 Longest vs Shortest Paths

4 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

5 Poly time algo for longest path?

6 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!

7 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

8 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!

9 Nice survey on P vs. NP

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

11 What can I do with algorithms? 11

12 12 Coding Theory

13 13 Communicating with my 3 year old C(x) x y = C(x)+error x Give up “Code” C “Akash English” C(x) is a “codeword”

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 Interested in more? CSE 545 20

21 Group Testing Overview Test soldier for a disease WWII example: syphillis 21

22 Group Testing Overview Test an army for a disease WWII example: syphillis What if only one soldier has the disease? Can pool blood samples and check if at least one soldier has the disease 22

23 Compressed Sensing 23 http://www-stat.stanford.edu/~candes/stats330/index.shtml

24 Moving your data to the cloud 24 http://1sdiresource.com/pile.jpg http://myhosting.com/blog/2011/06/cloud-storage-vps-vps-remote-fill-storage/

25 What if the cloud was bad? 25 http://area.autodesk.com/userdata/forum/h/harry_potter_clouds_scene.jpg

26 It all comes back to the same thing 26 Coding Theory Complexity Theory LIST DECODING

27 Passwords Fast matching Secure “Cancelable” One can forget them!

28 Fingerprints Fast matching Secure “Cancelable” Cannot forget them! ? ?

29 Fingerprints as Passwords Or making “Forgot password” links obsolete Fast & Secure ? Only Fast Only Secure

30 Fingerprint Matching Fingerprint readings are inconsistent Matching Algorithms exist even in practice…

31 Security for fingerprints? Stored fingerprints can be stolen Easy Main idea: obfuscate the fingerprint! Use error correcting codes Hard


Download ppt "Lecture 20 CSE 331 July 30, 2013. Longest path problem Given G, does there exist a simple path of length n-1 ?"

Similar presentations


Ads by Google