Unit 5
Unit 5
Valid shift s = 3
There will be only one valid shift in this example.
Prefix and Suffix of a string
Prefix: A string w is a prefix of a string x, denoted w ⊏
x,
if x = wy for some string y ∈∑*.
(a) (b)
(c) (d)
Approximation Algorithm for
Vertex Cover Problem
NP-Complete problems:
Boolean satisfiability problem (SAT)
Hamiltonian cycle problem.
Travelling salesman problem
Vertex cover problem