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

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

A – Keyboard

Спойлер

B – Futon

Спойлер

C – Neq Min

Спойлер

D – Squares

Спойлер

E – Lamps

Спойлер

F – Random Max

Спойлер
  • Проголосовать: нравится
  • +49
  • Проголосовать: не нравится

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

Great! Thank you for the editorial.

For solution D, I am sorry for a stupid question, but can you please explain why squaring v gives the number of overlapping configurations?

I understand that v gives the number of ways an A-length segment can overlap with a B-length segment within a N-length interval. But how does squaring v gives the overlapping configurations of squares?

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

    If you have two overlapping squares, and projected them onto the $$$x$$$ axis, their segments will overlap, likewise the $$$y$$$ axis.

    Perhaps this diagram could help illustrate:

    Diagram

    Thus there is a bijection between two choices of overlapping segments ($$$v^2$$$) to choices of overlapping squares.

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

Just a small note, about the cumulative distribution formula. I will just consider positive numbers for now.

$$$\displaystyle\int_{0}^{\infty} xP(x)dx = \displaystyle\int_{0}^{\infty} P(\ge x)dx = \displaystyle\int_{0}^{\infty} 1 - P(\le x)dx$$$

This is because the probability $P(x)$ is added in the range $$$[0,x]$$$. So they are equal. You can solve similarly for -ve numbers.

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

In E why did not you just consider 2^(number of configurations in which it can be lighted) -1. (when not lighted at all). -- yup got it -- say in x number of ways a square can be ignited then considering all the squares which do not have influence on current square, our answer also includes those cases say(y) when one of those squares changes its state hence total ways would be x*y. Alternatively we can consider the above way you have mentioned.

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

    You mean something like $$$(2^{p} - 1) \cdot 2^{K - p}$$$? That's the same formula, just expressed differently

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

      I got it now. but previously i was reffering to the case when there are two sets {A,B} for given square , the one igniting any one from A lights current square and from other set does not. So I was initially thinking answer like 2^(size(A)) -1 for each square. Nice editorial btw. hopefully you will keep on writing in future.