> DFS Properties (question 8D)
> ...
Please put this on the review agenda Monday.
I have not figured out how to post on piazza, but it is mainly for
students to talk to each other.
> the second and third antecedents clauses can't BOTH be true
> ... This is enough to invalidate the statement
What rule(s) of logic are you using to back this assertion up?
A truth table is the final way to determine if a propositional
statement is always true, never true, or somewhere in between.
--Allen
(A := v is white) AND (B := DFS of an UNDIRECTED graph) AND (C := there is an edge v->w) AND (D := w is black) --> ( E := the graph is NOT connected).
The problems instance sets A = true, B = true, C = false, D = true and E = true. C is false since an UNDIRECTED graph doesn't have polarity to an edge and C specifies direction. This set of truth values corresponds to line 5 in the truth table. So, the statement must be true.
$$
\begin{tabular}{| c | c | c | c | c || c | }
\hline
A & B & C & D & E & if (A and B and C and D) then E \\
\hline
T & T & T & T & T & T \\
T & T & T & T & F & F \\
T & T & T & F & T & T \\
T & T & T & F & F & T \\
T & T & F & T & T & T \\
T & T & F & T & F & T \\
T & T & F & F & T & T \\
T & T & F & F & F & T \\
T & F & T & T & T & T \\
T & F & T & T & F & T \\
T & F & T & F & T & T \\
T & F & T & F & F & T \\
T & F & F & T & T & T \\
T & F & F & T & F & T \\
T & F & F & F & T & T \\
T & F & F & F & F & T \\
F & T & T & T & T & T \\
F & F & T & T & T & T \\
F & F & T & T & F & T \\
F & F & T & F & T & T \\
F & F & T & F & F & T \\
F & F & F & T & T & T \\
F & F & F & T & F & T \\
F & F & F & F & T & T \\
F & F & F & F & F & T \\
\hline
\end{tabular}
$$
Or, if you interpret all antecedents to be true (where v->w exists as one aspect of an undirected edge), and w has already been visited (i.e. black) this contradicts the white path theorem that states that if there is a path between a white vertex (say v) and another vertex (say w) in the same connected component, then there must be a path of white vertices to w, where w is white itself (since by definition if there is an edge v->w, v and w are in the same connected component). Therefore, the conclusion must be false (that the graph is not connected). This corresponds to line 2 in the truth table, which corresponds to a false statement.
Are the above answer(s) now correct?
--Allen
_______________________________________________
If you think your text beginning "Or, if you interpret all antecedents to be
true..." is a sound proof, put it in the 2-column format with
numbered lines and justifications.
This allows you to inspect each little piece separately.
The intention of "v->w" is that there is an edge between v and w.
If you see what looks like a notation error or syntax error on the exam,
ASK. All questions are supposed to make sense, at least grammatically.
Your truth table is missing some cases because it has less than 32
lines. The main question is, are there any other cases besides
line 2 that make the statement false?
You don't need to list all of the other 31 if they are all true -- just
say it.
Recall that in your first message you said something like
"since D is false, the whole statement is false".
My purpose in referring to a truth table was this statement.
See you all Monday.
--Allen