Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce independent set problem to set packing problem #17

Closed
GiggleLiu opened this issue Jul 3, 2024 · 1 comment · Fixed by #85
Closed

Reduce independent set problem to set packing problem #17

GiggleLiu opened this issue Jul 3, 2024 · 1 comment · Fixed by #85
Assignees
Milestone

Comments

@GiggleLiu
Copy link
Owner

No description provided.

@GiggleLiu GiggleLiu added this to the v0.1 milestone Jul 3, 2024
@SciCodePhy
Copy link
Collaborator

Reduce Independent Set Problem to Set Packing Problem

I. Definitions and Background

I-A. Independent Set Problem (IS)

See "Reduce 3-SAT to Independent SAT Problem" issue.

I-B. Set Packing Problem

  • Pairwise Disjoint: For a collection of sets, any two of them don't share elements.

Input:

  • An universe $U$ (need to check: whether $U$ needs to be a finite set);
  • A collection of $U$'s subsests: $S={S_1, S_2, \cdots S_m }$ (aka: family);
  • A collection of some of the above subsets (aka: subfamily) that is pairwise disjoint. This subfamily is called a packing, while the size of the packing is the number of subsets included.

Output:

  • Whether there is a packing of size $k$.

II. Proof (IS <= Set Packing)

The reduction is as follows [Ref. 1]:

Given an undirected graph $G=(V,E)$ and $k$, we aim to generate $(U, S, k)$.

  • Step-0: $k$ are the same;

  • Step-1: Each edge $(u,v)\in E$ -> Create an element $x_{u,v}$ in $U$;

  • Step-2: Each vertex $v \in V$ -> Create a subset ${S_{u,v}|(u,v)\in E }$.

    It can be proven that:

  • $(G,k)$ is an yes-instance if and only if generated $(U,S,k)$ is an yes-instance;

  • This transformation is within polynomial time.

III. References

Core References:

  1. https://kgardner.people.amherst.edu/courses/f19/cosc311/mini/mini10solutions.pdf

@SciCodePhy SciCodePhy linked a pull request Aug 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants