Live data from Hacker News

Dynamic Progamming: First Principles

flawlessrhetoric.com

11–20 of 102 posts

Re: Dynamic Progamming: First Principles

#11
post #3

Favorite examples for applications of dynamic programming? Mine are sequence alignment/BLAST in bioinformatics, but I'm sure there are many of which I am not aware in other fields.

Image stitching is pretty fun!

That sounds like it could have some things in common with the DNA-sequence alignment of the parent comment, both dealing with overlap. Is that so?

Re: Dynamic Progamming: First Principles

#12

While dynamic programming is taught in almost all algorithms classes, I think I finally grokked it after implementing it in a few practice problems. Would strongly recommend giving a few exercises listed here a shot: https://leetcode.com/tag/dynamic-programming/

Personally, I prefer these more than the leet code problems: https://people.cs.clemson.edu/~bcdean/dp_practice/

Re: Dynamic Progamming: First Principles

#13
post #8

In O.R. graduate School, Professor Gene Woolsey told us that he'd rise from the grave and stand on our desks screaming 'No!No!No!' if we ever actually used it to solve a practical problem. IIRC, his complaints were about the speed of formulation, difficulty to understand and communicate the model to others, and the processing required to regenerate answers when the model changed. I believe Optiant used Dynamic Progra…

What were you supposed to use instead? My impression is that dynamic programming is sometimes sluggish but often better than the alternatives.

Re: Dynamic Progamming: First Principles

#14
post #3

Favorite examples for applications of dynamic programming? Mine are sequence alignment/BLAST in bioinformatics, but I'm sure there are many of which I am not aware in other fields.

There are lots of interesting competitive programming problems (and their related algorithms) that involve it. For example, it was important in the solution to a problem in the UKIEPC (UK & Irish programming contest to gear up for the ACM ICPC) this past weekend: https://domjudge.bath.ac.uk/domjudge/public/problem.php?id=3... :)

Re: Dynamic Progamming: First Principles

#15

While dynamic programming is taught in almost all algorithms classes, I think I finally grokked it after implementing it in a few practice problems. Would strongly recommend giving a few exercises listed here a shot: https://leetcode.com/tag/dynamic-programming/

It’s odd that there would be algorithms classes that don’t require some implementations.

Re: Dynamic Progamming: First Principles

#16
post #9
post #3

Favorite examples for applications of dynamic programming? Mine are sequence alignment/BLAST in bioinformatics, but I'm sure there are many of which I am not aware in other fields.

Line breaking. The Knuth-Plass algorithm I implemented is my all-time favorite piece of code.

That’s one of my favorites too, although I remember it being one of the easier implementations from my college course. We just did it with fixed width fonts, of course, but the results were still so impressing.

Re: Dynamic Progamming: First Principles

#17
HELLO YOUR PERIOD OF SUCESS IS NOW AT YOUR DOORSTEP WITH THE AIDS OF THE ILLUMINATI SOCIETY.JOIN NOW AND BE AMONG THE RICHEST PEOPLE ON PLANET EARTH.THE DOORS FOR NEW INNITIATIONS ARE NOW OPEN FOR ONLY THE WISE* WHATSAP...........+1 (770)609-5496 WHATSAP...........+1 (770)609-5496 WHATSAP...........+1 (770)609-5496

ARE YOU A BUSINESS MAN OR WOMAN , POLITICAL , MUSICIAN , STUDENT , THE YOU WANT TO BE RICH , FAMOUS, POWERFUL IN LIFE, JOIN THE ILLUMINATI brotherhood CULT TODAY AND GET INSTANT RICH SUM OF . 1MILLION DOLLARS IN AWEEK , AND A FREE HOME ANYWHERE YOU CHOOSE TO LIVE IN THIS WORLD AND ALSO GET 10, 000 ,000 U . S DOLLARS MONTHLY AS A SALARY. . . BENEFITS GIVEN TO NEW MEMBERS WHO JOIN THE ILLUMINATI . 1. A CASH REWARD OF USD $ 500, 000 USD 2. A NEW SLEEK DREAM CAR VALUED AT $300 ,000 USD 3. A DREAM HOUSE BOUGHT IN THE COUNTRY OF YOUR OWN CHOICE 4. ONE MONTH HOLIDAY ( FULLY PAID) TO YOUR DREAM TOURIST DESTINATION. 5. ONE YEAR GOLF MEMBERSHIP PACKAGE A V . I . P 6. TREATMENT IN ALL AIRPORTS IN THE WORLD 7. A TOTAL LIFESTYLE CHANGE ACCESS TO BOHEMIAN GROVE 8. MONTHLY PAYMENT OF $1, 000 ,000 USD INTO YOUR BANK ACCOUNT EVERY MONTH. 9. ONE MONTH BOOKED APPOINTMENT WITH TOP 5 WORLD LEADERS AND TOP 5 CELEBRITIES IN THE WORLD . IF YOU ARE INTERESTED MESSAGE THE AGENT NOW AT WHATSAP............+1[770]609-5496 OR EMAIL...................[illuminatidum666@gmail.com]

Re: Dynamic Progamming: First Principles

#19
post #8

In O.R. graduate School, Professor Gene Woolsey told us that he'd rise from the grave and stand on our desks screaming 'No!No!No!' if we ever actually used it to solve a practical problem. IIRC, his complaints were about the speed of formulation, difficulty to understand and communicate the model to others, and the processing required to regenerate answers when the model changed. I believe Optiant used Dynamic Progra…

What were you supposed to use instead? My impression is that dynamic programming is sometimes sluggish but often better than the alternatives.

Most optimization problems use Linear Programming if the problem has linear/continuous variables and Mixed Integer Programming if binary values (turning something on or off) is part of the solution. These are used in production pretty much everywhere. LP (linear programming) problems are extremely fast too. My company has a HUGE LP & MIP problems and the LPs are still only a few minutes to solve on nice hardware. MIP can be much trickier.
Post reply on HN