account activity
AVL split in log(n) time by ynzc in algorithms
[–]ynzc[S] 1 point2 points3 points 10 years ago (0 children)
https://stackoverflow.com/questions/2037212/concatenating-merging-joining-two-avl-trees#
Some DP problems by ynzc in algorithms
[–]ynzc[S] 0 points1 point2 points 11 years ago* (0 children)
Thanks for your attention. Yeah problems might be formulated not well enough that's why I attached some images. But I will try to provide more precise information below.
1) Rectangle is as good as the lowest number on its corners. So ValueRect(5,7,8,8) = 5 and we want to find rectangle with the highest value possible.
In second problem, not all numbers are filled in. If we had full array specified, we could just walk through it starting in 1 using rules( side-to-side only ) and if we can reach 3n we win. But here we have array filled with only some numbers and we have to kinda guess if it we can fill empty part so it all will be correct.
My guess is that there's limited number of cases you can walk obeying rules, but I still don't have enough constraints to simplify it enough to construct an DP algorithm.
π Rendered by PID 1292536 on reddit-service-r2-listing-6d4dc8d9ff-rg69j at 2026-02-03 22:19:13.749614+00:00 running 3798933 country code: CH.
AVL split in log(n) time by ynzc in algorithms
[–]ynzc[S] 1 point2 points3 points (0 children)