×

# Strongly connected component!

 -1 I have written the code for kosaraju's algorithm for finding the scc, Its giving wrong answer for this graph:- here's the code:- http://ideone.com/3uxMdo Whats wrong in the code? asked 21 May '14, 17:57 4★v_akshay 1.2k●9●16●25 accept rate: 13%

 0 Although, it is quite a long time after you asked. The mistake is that on line 59 it should have been !used[order[i]] instead !used[i] (since you do not want to check whether the index was used, but rather the node). answered 31 Oct '15, 07:12 0★dim131 1 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×1,217
×366
×36
×3

question asked: 21 May '14, 17:57

question was seen: 3,236 times

last updated: 31 Oct '15, 07:12