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

Автор topovik, история, 4 года назад, По-английски

Hi for everyone.

At this blog I want to offer you some tasks on D&C optimization.

About this algorithm you can learn here.

When you can use this and other DP optimizations you can learn at this blog.

Some tasks on D&C optimization.

834D - The Bakery

673E - Levels and Regions

321E - Ciel and Gondolas

868F - Yet Another Minimization Problem

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

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

I think that it is quite hard to solve 321E with D&C Optimization because the runtime is multiplied by 2. I tried several times and barely passed the time limit. I think there are very fast solutions to this problem but I am not sure if they used D&C optimization.

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

    Author solve uses D&C optmization, so you can read this here

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

      Well, the runtime is now multiplied by 2 due to change in servers. So I am not sure if the author's solution can pass so easily this time.

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

        How do you solve it without this optimization? I had to do some dumb input reading tricks to get AC.

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

Did you solve these tasks? These will be useful after you solve tasks and can tell about idea of these tasks

»
4 года назад, # |
Rev. 2   Проголосовать: нравится +8 Проголосовать: не нравится

https://codeforces.net/contest/1175/problem/G this task can't be solved using D&C optimization (Um_nik wrote it during the contest and get WA). Yes, here can be used D&C but it is another approach.

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

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