jencias's blog

By jencias, history, 112 minutes ago, In English

Hi codeforces! I’m stuck on the constructive part of a graph problem.

Problem: Given a mixed graph (N <= 100000, M <= 200000) with some fixed (directed) edges and some free (undirected) edges. I already used binary search and Tarjan's algorithm to find a state where a solution is guaranteed to exist (i.e., treating free edges as bidirectional yields exactly 1 SCC).How do I constructively assign a single direction to each free edge so the final directed graph remains a single SCC in O(N+M)?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
110 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by jencias (previous revision, new revision, compare).

»
109 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by jencias (previous revision, new revision, compare).