Stuck on problem B. Blurred Pictures of SWERC18

Revision en2, by Christian_D, 2020-01-02 11:21:45

The problem is here. My latest attempt is here.

I've implemented a version of this algorithm. It works for the smaller tests, however in the worst case (100000x100000 matrix, nothing blurry) my implementation still takes about 13 seconds.

I've optimized it as far as I'm able to. Is there something I'm missing? Or another approach entirely? I'm stuck.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Christian_D 2020-01-02 11:21:45 0 (published)
en1 English Christian_D 2020-01-02 11:20:52 599 Initial revision (saved to drafts)