2. Exercises ”Discrete Computational Biology”, WS 2011/12
2. Exercises ”Discrete Computational Biology”, WS 2011/12
2. Exercises ”Discrete Computational Biology”, WS 2011/12
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Saarland University<br />
Center for Bioinformatics<br />
Dr. Marc Hellmuth<br />
Á<br />
<strong>2.</strong> <strong>Exercises</strong> <strong>”Discrete</strong> <strong>Computational</strong> <strong>Biology”</strong>, <strong>WS</strong> <strong>2011</strong>/<strong>12</strong><br />
Exercise 1: (5 Credits)<br />
Give an example of an undirected graph G = (V,E) with |V| > 1 vertices such that:<br />
(a) χ(G) = 1, (b) χ(G) = 2, (c) χ(G) = ∆(G)+1, (d) χ(G) = |V|.<br />
Moreover, prove that χ(G) on your examples is correct.<br />
Exercise 2: (5 Credits)<br />
Let G = (V,E) be an undirected graph. Prove or disprove:<br />
(a) If χ(G) = |V| then χ(G) = ∆(G)+1.<br />
(b) If χ(G) = ∆(G)+1 then χ(G) = |V|.<br />
Exercise 3: (5 Credits)<br />
WritepseudocodeforanalgorithmthattestsifanundirectedgraphG = (V,E)isbipartite<br />
and runs in O(|V|+|E|) time.<br />
Exercise 4: (<strong>12</strong>+8=20 Credits)<br />
Problem 3-COL: Given a graph G. Is G 3-colorable<br />
Problem SCHED: Given a set of courses C that all take one time unit, a set of students<br />
S, and a set R = {(S i ,C j ) | S i ∈ S wants to visit C j ∈ C}. Two courses C i and C j are<br />
in conflict if there is some student S k ∈ S such that (S k ,C i ) ∈ R and (S k ,C j ) ∈ R. A<br />
schedule is conflict-free if no two courses that are in conflict are scheduled at the same<br />
time. Is there a conflict-free schedule requiring K time units<br />
3-COL is NP-complete.<br />
(a) Prove that SCHED is NP-complete.<br />
(b) Let C = {C 1 ,...,C 5 } and S = {S 1 ,...,S 6 }. The courses the students plan to take<br />
are:<br />
student: S 1 S 2 S 3 S 4 S 5 S 6<br />
courses: C 2 ,C 3 C 3 ,C 1 C 1 ,C 5 C 5 ,C 2 C 4 ,C 1 C 2 ,C 4<br />
What is the minimal number of time units that are required for a conflict-free<br />
schedule Prove your result.
Exercise 5: (5 Credits)<br />
Let G = (V,E) be an undirected graph and G be its complement. Prove or disprove:<br />
(a) If G is bipartite then G is bipartite.<br />
(b) There are graphs with χ(G) = χ(G).<br />
Deadline: Wednesday - Nov 16, <strong>2011</strong> - 2pm