Question: Professor Michener claims that there is no need to create a new source vertex in line 1 of JOHNSON. He claims that instead we can
Professor Michener claims that there is no need to create a new source vertex in line 1 of JOHNSON. He claims that instead we can just use G′ = G and let s be any vertex in V [G]. Give an example of a weighted, directed graph G for which incorporating the professor's idea into JOHNSON causes incorrect answers. Then show that if G is strongly connected (every vertex is reachable from every other vertex), the results returned by JOHNSON with the professor's modification are correct.
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
In this solution we assume that o is undefined in particular its not 0 Let G V E where V s ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
C-S-A (150).docx
120 KBs Word File
