Yet Another Way To Find SCC's

Правка en6, от Tabriz-Talayi, 2026-11-23 20:15:45

I was recently tasked with finding a way to calculate SCCs in a directed graph by a teacher expecting me to reach Tarjan's or Kosaraju's algorithm, but I reached a completely different solution.

It's arguably a bit worse in both simplicity and complexity,
but I decided to write a blog about it anyway since I think I used some cool ideas, and who knows, maybe somebody else can utilize this either to find a useful variant or in some completely unrelated problem.
My teacher named it KS-SCC, hinting at the fact that it's dumb/useless (in Farsi), lmao.


Prerequisites

Idea & Proof of KS-SCC

Implementation of KS-SCC

KS-SCC Test Results (Complexity & Correctness)
Теги algorithms, scc, dfs, dsu

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en11 Английский Tabriz-Talayi 2026-11-24 07:47:11 619 Tiny change: '*UPD1:**\nIm exami' -> '*UPD1:**\n<br>\nIm exami'
en10 Английский Tabriz-Talayi 2026-11-23 23:21:02 36
en9 Английский Tabriz-Talayi 2026-11-23 23:11:16 114 Tiny change: 'o.\n<br>\nBut I think it' -> 'o.\n<br>\nI think it'
en8 Английский Tabriz-Talayi 2026-11-23 22:46:32 33
en7 Английский Tabriz-Talayi 2026-11-23 22:39:28 19496 Tiny change: '------------------------' -> '----------' (published)
en6 Английский Tabriz-Talayi 2026-11-23 20:15:45 0 (saved to drafts)
en5 Английский Tabriz-Talayi 2026-11-23 20:15:32 4 (published)
en4 Английский Tabriz-Talayi 2026-11-23 20:14:43 6381
en3 Английский Tabriz-Talayi 2026-11-23 19:59:24 631 Tiny change: 'n.\n<br>\nIt' -> 'n.\n<br>\n<br>\nIt'
en2 Английский Tabriz-Talayi 2026-11-23 19:11:34 36612 Tiny change: '\n\n<br>\n<br>\n\n' -> '\n\n<br>\n\n'
en1 Английский Tabriz-Talayi 2026-11-23 17:07:54 4147 Initial revision (saved to drafts)