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

Автор simplifier, история, 21 месяц назад, По-английски

"I tried to Find out success using binary search....But ended up realizing that my life is not sorted..."

Conclusion--->>>There are no shortcuts, do it the hardworking way

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

»
21 месяц назад, # |
  Проголосовать: нравится +86 Проголосовать: не нравится

r/iam14andthisisdeep

»
21 месяц назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

sort(life.begin(),life.end());

problem solved

»
21 месяц назад, # |
  Проголосовать: нравится +18 Проголосовать: не нравится

I tried to calculate my chance for success using dp...But ended up realizing that my life is cyclic.

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

    Then Gaussian Elimination is coming into consideration.

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

      How can you use Gaussian elimination to solve a DP where subproblems have cyclic dependency ?

      Gaussian elimination is used to solve a system of linear equations. So ... how ?

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

        Maybe I'm not getting your point. But as I know, in some probabilities dp problems, dp equations are something like: $$$dp[i] = \sum\limits _{j\text{ is adjacent to }i} a[i][j] * dp[j]$$$, where $$$a[i][j]$$$ is some sorts of coefficient. In such case, the dp equations do turn into linear equations. :)

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

      but what if there are no solutions?

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

    I tried applying dp but then I realized, everything is just stupid greedy

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

I tried to find out the answer of life by representing it as $$$p \times q^{-1} (mod\,M)$$$ where $$$p$$$ and $$$q$$$ are coprime but I realized life doesn't have a prime modulo, neither is life even rational...

»
21 месяц назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

I thought past experience will help me in life but everyday is just addhoc

»
21 месяц назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

But when life starts to feel monotonic, you know what to do ;)

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

I tried to find the Shortest path to success using Dijkstra... But ended up realizing that my life is full of negative weight edges.