Neeldhara
  • About
  • Research
    • Overview
    • People
    • Publications
    • Surveys
  • Teaching
    • Courses
    • Materials
  • Lists
    • Puzzles
    • Bookmarks
  • Exposition
    • Talks
    • Videos
  • Events
  • Blog

CS614. Advanced Algorithms. Exam 1.

CS614. Advanced Algorithms.

Exam 3

Back to the course page

EXACT MATCH (3 points)

Given a graph GGG and an integer kkk, the EXACT MATCH problem asks for an induced matching of size kkk, that is, kkk edges x1y1,…,xkykx_1 y_1, \ldots, x_k y_kx1​y1​,…,xk​yk​ such that the 2k2k2k endpoints are all distinct and there is no edge between {xi,yi}\left\{x_i, y_i\right\}{xi​,yi​} and {xj,yj}\left\{x_j, y_j\right\}{xj​,yj​} for any i≠ji \neq ji=j.

Prove that EXACT MATCH parameterized by kkk is as hard as INDEPENDENT SET parameterized by kkk.

Dominating Set on Restricted Classes

Consider the Dominating Set problem.

Problem 2.1 Understanding graph classes (1 point)

Let A\mathcal{A}A be the graphs excluding the star K1,4K_{1,4}K1,4​ as an induced subgraph. That is, a graph GGG belongs to A\mathcal{A}A if and only if there is no copy of a star on four leaves as an induced subgraph (but you may still have vertices of degree four or more).

Similarly, let B\mathcal{B}B be the graphs excluding the star K1,2K_{1,2}K1,2​ as an induced subgraph.

Which of the following is true?

  • A⊆B\mathcal{A} \subseteq \mathcal{B}A⊆B
  • B⊆A\mathcal{B} \subseteq \mathcal{A}B⊆A
  • neither of the above
Problem 2.2 An Easy Case (2 points)

Can you solve Dominating Set in polynomial time if your input graph does not contain the star K1,2K_{1,2}K1,2​ as an induced subgraph?

Problem 2.3 A Hard Case (4 points)

Prove that Dominating Set restricted to graphs excluding the star K1,4K_{1,4}K1,4​ as an induced subgraph is as hard as Dominating Set on general graphs.

Hint: look up the textbook (Theorem 13.15) reduction for Connected Dominating Set and adapt it.

PERMUTATION COMPOSITION (3 points)

The EXACT UNIQUE HITTING SET problem is the following:

Input: A universe UUU, a set AAA of subsets of UUU, and an integer kkk. Question: Does there exist a set X⊆UX \subseteq UX⊆U of size exactly kkk such that ∣A∩X∣=1|A \cap X|=1∣A∩X∣=1 for every A∈AA \in AA∈A?

In the PERMUTATION COMPOSITION problem, the input consists of a family P\mathcal{P}P of permutations of a finite universe UUU, additional permutation π\piπ of UUU, and an integer kkk, and the question is whether one can find a sequence π1,π2,…,πk∈P\pi_1, \pi_2, \ldots, \pi_k \in \mathcal{P}π1​,π2​,…,πk​∈P such that:

π=π1∘π2∘…∘πk.\pi=\pi_1 \circ \pi_2 \circ \ldots \circ \pi_k.π=π1​∘π2​∘…∘πk​.

Show a reduction from EXACT UNIQUE HITTING SET to PERMUTATION COMPOSITION.

NICE SUBSET (3 points)

Let G=(X,Y,E)G=\left(X, Y, E\right)G=(X,Y,E) be an undirected bipartite graph, that is, a graph whose nodes are divided into two sets, XXX and YYY, such that every edge in EEE connects a node in XXX to a node in YYY. The nodes in XXX are all labeled with non-negative integers.

Some of the nodes in YYY can be removed to leave a subset W⊆YW \subseteq YW⊆Y. A subset WWW is called nice with GGG if every node in XXX which has been assigned a number mmm is connected to exactly mmm nodes in WWW. An example of a nice set is in the image below.

The problem is to determine whether a nice WWW exists. Demonstrate a reduction from 3SAT to this problem.

Image showing an example

NP-completeness Examples (4 points)

Pick any two problems below and show that they are NP-complete.

Problem 5.1

Given an undirected graph GGG, does GGG contain a simple path that visits all but 9 vertices?

Problem 5.2

Given an undirected graph GGG, does GGG have a spanning tree in which every node has degree at most 32?

Problem 5.3

Given an undirected graph GGG, does GGG have a spanning tree with at most 5 leaves?

Problem 5.4

Given an undirected graph G=(V,E)G=(V, E)G=(V,E), what is the size of the largest subset of vertices S⊆VS \subseteq VS⊆V such that at most 50 edges in EEE have both endpoints in SSS?


© 2022 • Neeldhara Misra • Credits •

 

Corrections? Please leave a comment here or a PR in this repository, thanks!

I’d rather be a failure at something I love than a success at something I hate.

George Burns

You live and you learn — at any rate, you live.

Douglas Adams

A problem worthy of attack proves its worth by fighting back.

Paul Erdos

×