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

Автор hmehta, история, 7 лет назад, По-английски

TCO19 Algorithm Round 2B and Parallel Rated Round is scheduled to start at 11:00 UTC -4 on June 4, 2019. Registration is open for the Round in the Arena or Applet and it closes 5 minutes before the match begins, so make sure that you are all ready to go.
Click here to see what time it starts in your area.

Algorithm Round 2 Qualified Competitors (https://tco19.topcoder.com/algorithm/byes/, https://tco19.topcoder.com/algorithm/round-1a and https://tco19.topcoder.com/algorithm/round-1b) are eligible to compete in Round 2B. Those who have already qualified for Round 4 (https://tco19.topcoder.com/algorithm/round-4) from online stages are not eligible to compete.

All the best!

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

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

i have not qualified for the round 2 is there still a way to qualify for the regionals?

»
7 лет назад, скрыть # |
 
Проголосовать: нравится -40 Проголосовать: не нравится

Upvote if you didn't like first problem

»
7 лет назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

Can Someone explain approach for 2nd Problem?? Thanks in advance.

  • »
    »
    7 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +21 Проголосовать: не нравится

    Just try all divisors of $$$n$$$. For each divisor $$$d$$$, call the same algorithm recursively on $$$n/d-1$$$. During steps other than the first, don't consider $$$d=1$$$.

    In fact, this problem is OEIS A167439.

    • »
      »
      »
      7 лет назад, скрыть # ^ |
       
      Проголосовать: нравится +33 Проголосовать: не нравится

      Is there any analysis for the complexity of the algorithm?

    • »
      »
      »
      7 лет назад, скрыть # ^ |
      Rev. 2  
      Проголосовать: нравится 0 Проголосовать: не нравится

      Yeah, I saw that pretty quickly but then I spent over 30 minutes staring at the problem and trying to figure out what additional shortcuts needed to be done and couldn't come up with any.

      I felt pretty certain that doing that would require calling the getAllDivisors() function on too many unique values to be able to run in time because of the subtractions by 1.

  • »
    »
    7 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +10 Проголосовать: не нравится

    Let test N and N-1 separately, so we can assume that there's no 1 in sequence.

    Take a look at $$$a_0$$$, each consequent number is divisible by $$$a_0$$$, so N is also divisible by $$$a_0$$$.

    Now if we divide everything by $$$a_0$$$ we'll receive another sequence with sum of $$$\frac{N}{a_0}$$$ and first element 1. Let's drop that 1 and solve the problem for $$$\frac{N}{a_0} - 1$$$. Just build dp on top of that.

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

Is there a link for schedule of future TCO online rounds? The TCO algorithm page is absolutely unnavigatable.

»
7 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

Hard looks interesting. How to solve?

  • »
    »
    7 лет назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +40 Проголосовать: не нравится

    Outline (I'm on the phone now):

    Obviously, optimal strategy is same for both players.

    If d is max difference, you will never play more than 2d+1 because playing 1 is at least as good for all possible choices of the other player. (This is the main observation you needed.)

    Then, write linear equations for the 2d+1 probabilities using "principle of indifference", there is a unique solution. (Some more proofs needed to argue correctness.)

  • »
    »
    7 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +33 Проголосовать: не нравится

    Based on discussion with Egor.

    Basic lemma from game theory: For all $$$p_k \gt 0$$$ we should have expected winning of exactly $$$0$$$ against pure strategy "say $$$k$$$".

    $$$p_1$$$ is not zero, otherwise we can shift everything to the left. So, $$$\sum_{k=2}^{d+1} p_k \ge 1/2$$$. Now it is easy to see that for all $$$k \gt 2d+1$$$ $$$p_k=0$$$ (because we are certainly winning strictly more than 0 against this pure strategy). Now we can see than $$$p_k=p_{2d+2-k}$$$ (because everything is symmetric), and we have $$$d+1$$$ variables and $$$d+1$$$ linear equations.

»
7 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

If I'm not wrong then positive score in round 3 fetches a topcoder TShirt?

  • »
    »
    7 лет назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится 0 Проголосовать: не нравится

    Right. Also looks like getting positive score was enough to qualify to Round 3 from all prev rounds. So you weren't actually competing against other people, only against yourself :D

    Upd. not really, only 200 people qualify to Round 3, I thought it was 250

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

Where we can find editorials for this round ??

»
7 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -10 Проголосовать: не нравится

I think it's fair that if less than 200 have positive score on round 2A (in our case 132), then on round 2B 200+(200-round_2a_qualified) go on. Proof by (incorrect) feature scaling :)

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

Does Topcoder still have problems with sending T-shirt to Russia?