Блог пользователя tyristik

Автор tyristik, история, 23 часа назад, По-английски

During the past week I've been working on implementing and optimizing Gauss elimination algorithm for sparse systems of linear equations (SLE). I took 2028E - Alice's Adventures in the Rabbit Hole as a reference: constructed 2e5 linear equations and put them into my solver. And starting from 20s runtime was able to optimize my algorithm to 1s (300847774), comfortably passing intended 2s TL.

Now I wanna try my implementation somewhere else. Can you share some other problems which are solvable by constructing big sparse SLE?

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

»
22 часа назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
  • »
    »
    17 часов назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thanks! Got AC in 0.43s (300892471) using long double for calculations. innocentkitten wrote in the editorial that it would be too slow to directly solve SLE, but was wrong :D

»
17 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Try https://mirror.codeforces.com/contest/1844/problem/G.

I've actually tested some sparse SLE heuristics when preparing this problem, and they didn't come close to working on caterpillar trees. Your implementation is much better than mine, so I'm curious how well it does.

»
16 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится