←back to thread

Seam Carving (2018)

(andrewdcampbell.github.io)
70 points maxwell | 3 comments | | HN request time: 0.547s | source
Show context
Murky3515[dead post] ◴[] No.41084799[source]
[flagged]
_a_a_a_ ◴[] No.41084885[source]
[flagged]
replies(4): >>41085044 #>>41085141 #>>41087052 #>>41089622 #
1. Murky3515 ◴[] No.41085044[source]
There aren't many useful applications. People who think otherwise are on par with delusional interviewers that feel compelled to ask problems with DP solutions. The vast majority of us will go our entire careers without needing to solve the Towers of Hanoi or the Egg Drop Puzzle.
replies(2): >>41085667 #>>41087507 #
2. JohnKemeny ◴[] No.41085667[source]
Knapsack/subset sum, travelling salesman, longest common subsequence, dynamic time warp/edit distance/sequence alignment, Q-learning, line breaking/paragraph layout, ...
3. hinkley ◴[] No.41087507[source]
I cut almost a minute off of our startup time by removing a recursive nightmare one of my coworkers inflicted on some code I wrote by replacing the whole thing with DP.

But you’d have to look pretty close to see that’s what I did because unlike him I’m not obsessed with people thinking I’m clever. I’d rather be seen as wise.

(I started fixing it because we had found a couple mystery bugs caused by his solution not being reentrant. By the time I had full code branch coverage, it was actually six separate bugs I fixed)