MHB NP Problems: Weighted Vertex Cover vs Weighted Independent Set

AI Thread Summary
The discussion revolves around a theorem connecting independent sets and vertex covers in graphs, specifically addressing the scenario where vertices have positive integer weights. It posits that if S is an independent set with maximum weight, then the complement V - S should be a vertex cover with minimum weight. The argument presented demonstrates that if S is indeed a maximum weight independent set, then any alternative vertex cover T with a lower weight would lead to a contradiction regarding the maximality of S. This reasoning is applied in both directions, confirming that the properties of maximum weight independent sets and minimum weight vertex covers are intrinsically linked under the conditions specified.
JohnDoe2013
Messages
3
Reaction score
0
There is a Theorem that states that if G = (V, E) is a graph, then S is an independent set $\Leftarrow\Rightarrow$ V - S is a vertex cover.

Suppose the vertices have positive integer weights. Does it follow from the theorem that:

S is an independent set with maximum weight $\Leftarrow\Rightarrow$ V - S is a vertex cover with minimum weight?
 
Technology news on Phys.org
I think so. If $S\subseteq V$, let $w(S)$ denote the sum of weights of vertices is $S$, and let $W=w(V)$. Suppose that $S$ is an independent set with maximum weight, but $V-S$ is not minimal, i.e., there exists a $T\subseteq V$ such that $T$ is a vertex cover and $w(T)<w(V-S)=W-w(S)$. Then $w(S)<W-w(T)=w(V-T)$ and $V-T$ is an independent set, a contradiction with maximality of $S$. The other direction is shown similarly.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
hi; i purchased 3 of these, AZDelivery 3 x AZ-MEGA2560-Board Bundle with Prototype Shield and each is reporting the error message below. I have triple checked every aspect of the set up and all seems in order, cable devices port, board reburn bootloader et al . I have substituted an arduino uno and it works fine; could you help please Thanks Martyn 'avrdude: ser_open(): can't set com-state for "\\.\COM3"avrdude: ser_drain(): read error: The handle is invalid.avrdude: ser_send(): write...
Back
Top