Dynamic Programming Algorithm?

Posted by scardin on Stack Overflow See other posts from Stack Overflow or by scardin
Published on 2010-04-22T15:24:57Z Indexed on 2010/04/22 16:03 UTC
Read the original article Hit count: 613

I am confused about how best to design this algorithm. A ship has x pirates, where the age of the jth pirate is aj and the weight of the jth pirate is wj. I am thinking of a dynamic programming algorithm, which will find the oldest pirate whose weight is in between twenty-fifth and seventy-fifth percentile of all pirates. But I am clueless as to how to proceed.

© Stack Overflow or respective owner

Related posts about algorithm-design

Related posts about dynamic-programming