Lecture Notes Page 1 Honours Algorithm Design COMP-362 Lecture notes by Alexandre Tomberg Prof. Patrick Hayden McGill University Fall 2008
Lecture Notes Page 2 Table of Contents December-03-08 12:16 PM
Lecture Notes Page 3
Lecture Notes Page 4 Dynamic Programming September-04-08 11:46 AM
Lecture Notes Page 5
Lecture Notes Page 6
Lecture Notes Page 7 String Theory September-09-08 11:57 AM
Lecture Notes Page 8
Lecture Notes Page 9 Approximation Algorithm December-03-08 6:43 PM
Lecture Notes Page 10
Lecture Notes Page 11 Dynamic Programming (in disguise) September-11-08 11:39 AM
Lecture Notes Page 12
Lecture Notes Page 13
Lecture Notes Page 14
Lecture Notes Page 15
Lecture Notes Page 16 Independent Set September-11-08 12:40 PM
Lecture Notes Page 17 Greedy Selection September-16-08 11:40 AM
Lecture Notes Page 18 Greedy Weighted Selection Given: While If then Return:
Lecture Notes Page 19
Lecture Notes Page 20
Lecture Notes Page 21 Introduction to Linear Programming September-18-08 11:39 AM
Lecture Notes Page 22 Solving Linear Programming Problems. Linear Programming in General.
Lecture Notes Page 23 Standard Form Duality
Lecture Notes Page 24
Lecture Notes Page 25
Lecture Notes Page 26 Flows October-01-08 10:39 AM
Lecture Notes Page 27 Cuts October-01-08 10:51 AM
Lecture Notes Page 28
Lecture Notes Page 29
Lecture Notes Page 30
Lecture Notes Page 31
Lecture Notes Page 32
Lecture Notes Page 33
Lecture Notes Page 34
Lecture Notes Page 35
Lecture Notes Page 36 Ford -Folkerson Algorithm September-25-08 12:37 PM Ford-Folkerson (G,s,t,c): While do: return Edmonds-Karp:
Lecture Notes Page 37
Lecture Notes Page 38
Lecture Notes Page 39 Applications of Max Flow September-30-08 12:08 PM
Lecture Notes Page 40
Lecture Notes Page 41
Lecture Notes Page 42
Lecture Notes Page 43
Lecture Notes Page 44 Symplex Algorithm October-07-08 11:39 AM
Lecture Notes Page 45
Lecture Notes Page 46
Lecture Notes Page 47
Lecture Notes Page 48
Lecture Notes Page 49
Lecture Notes Page 50
Lecture Notes Page 51
Lecture Notes Page 52 Max Flow & Simplex October-09-08 12:04 PM
Lecture Notes Page 53
Lecture Notes Page 54 Polytime algorithms October-09-08 12:37 PM
Lecture Notes Page 55
Lecture Notes Page 56 Circuit - Satisfiability (Sat) October-14-08 11:50 AM
Lecture Notes Page 57
Lecture Notes Page 58 NP-Complete problems October-14-08 12:35 PM
Lecture Notes Page 59
Lecture Notes Page 60 Independent Set October-16-08 11:42 AM
Lecture Notes Page 61
Lecture Notes Page 62 Vertex Cover October-16-08 12:08 PM
Lecture Notes Page 63 Hamiltonian Cycle October-16-08 12:19 PM
Lecture Notes Page 64
Lecture Notes Page 65
Lecture Notes Page 66 3D -matching October-16-08 12:29 PM
Lecture Notes Page 67
Lecture Notes Page 68 Integer Linear Programming October-21-08 12:19 PM
Lecture Notes Page 69
Lecture Notes Page 70 Subset Sum October-21-08 12:30 PM
Lecture Notes Page 71 Feed forward Neural Nets October-23-08 11:55 AM
Lecture Notes Page 72
Lecture Notes Page 73
Lecture Notes Page 74
Lecture Notes Page 75
Lecture Notes Page 76
Lecture Notes Page 77 Complement of NP October-23-08 12:04 PM
Lecture Notes Page 78 k-colorability October-30-08 11:39 AM
Lecture Notes Page 79 How to deal with NP-hardness October-30-08 11:48 AM
Lecture Notes Page 80
Backtrack (problem P) Lecture Notes Page 81
Lecture Notes Page 82 Branch & Bound (problem P): while choose expand for each if else if return (best)
Lecture Notes Page 83
Lecture Notes Page 84 Approximate solutions of Vertex Cover problem November-04-08 11:48 AM
Lecture Notes Page 85
Lecture Notes Page 86
Lecture Notes Page 87
Lecture Notes Page 88
Lecture Notes Page 89 Set Cover November-06-08 11:39 AM
Lecture Notes Page 90
Lecture Notes Page 91
Lecture Notes Page 92
Lecture Notes Page 93 k-cluster November-06-08 12:21 PM
Lecture Notes Page 94
Lecture Notes Page 95 Metric Traveling Salesman Problem November-06-08 12:45 PM
Lecture Notes Page 96 Approximability November-11-08 11:41 AM
Lecture Notes Page 97
Lecture Notes Page 98 Probabilistically Checkable Proofs (PCP) November-11-08 11:53 AM
Lecture Notes Page 99
Lecture Notes Page 100
Lecture Notes Page 101
Lecture Notes Page 102
Lecture Notes Page 103
Lecture Notes Page 104 Dealing with NP- hardness November-13-08 12:23 PM
Lecture Notes Page 105
Lecture Notes Page 106 Tree Width November-18-08 11:41 AM
Lecture Notes Page 107
Lecture Notes Page 108
Lecture Notes Page 109
Lecture Notes Page 110
Lecture Notes Page 111
Lecture Notes Page 112
Lecture Notes Page 113
Lecture Notes Page 114 Control-flow graphs November-20-08 12:19 PM
Lecture Notes Page 115 Finding Tree Decompositions November-20-08 12:31 PM
Lecture Notes Page 116 Final Exam November-27-08 12:25 PM
Lecture Notes Page 117 NPC Reductions Map December-03-08 11:03 AM
Lecture Notes Page 118 Computation & Time Travel November-25-08 11:41 AM