kate.codecat's blog

By kate.codecat, history, 11 months ago, In English

My ICT teacher asked me to give a short lecture at school on a programming topic I'm interested in. I chose finding strongly connected components in a directed graph. I'd like to include a problem to have some context.

Can you recommend simple SCC problems with no other algorithm needed I can use for the lecture?

  • Vote: I like it
  • -17
  • Vote: I do not like it

»
11 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

CSES- Flight Routes Check

https://cses.fi/problemset/task/1682

CSES- Planets and Kingdoms

https://cses.fi/problemset/task/1683

CSES- Coin Collector

https://cses.fi/problemset/task/1686

The first one does not require knowledge of Strongly Connected Components but it can be solved using the concept. The second one is probably the most instructive. The third one requires applying DP to the constructed components, you can take it up if you have time