Reminder: in case of any technical issues, you can use the lightweight website m1.codeforces.com, m2.codeforces.com, m3.codeforces.com. ×

themaskedhero's blog

By themaskedhero, history, 3 years ago, In English,

I have been looking for problems in which the solution looks at a famous algorithm, and applies it to the problem at hand. However, because of some special property of the problem, the algorithms complexity is reduced. An example is USACO 2016 February Platinum Fenced In (http://usaco.org/index.php?page=viewproblem2&cpid=625). The problem involves applying Kruskals algorithm in a clever way.

I was wondering if someone has more examples of these kinds of problems, specifically ones that use MST or max flow algorithms.

 
 
 
 
  • Vote: I like it
  • +24
  • Vote: I do not like it

»
3 years ago, # |
Rev. 3   Vote: I like it +18 Vote: I do not like it

Here's a max-flow problem of the type you want:

724E — Goods transportation

»
3 years ago, # |
  Vote: I like it +10 Vote: I do not like it

Another max-flow example: 704D - Капитан Америка

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Two well-known dp problems where you should decrease the number of states to get AC.
http://codeforces.com/contest/729/problem/F
http://codeforces.com/group/jx70Vs2WZm/contest/101064/problem/L