[algogeeks] apple problem

2010-09-30 Thread Christi Massey
A table composed of N*M cells,each having a certain quantity of apples, is given. you start from the upper-left corner. At each step you can go down or right one cell.Design an algorithm to find the maximum number of apples you can collect ,if you are moving from upper-left corner to bottom-right

Re: [algogeeks] apple problem

2010-09-30 Thread Yan Wang
Top-Down DP will work well. On Thu, Sep 30, 2010 at 2:27 AM, Christi Massey masseychri...@gmail.com wrote: A table composed of N*M cells,each having a certain quantity of apples, is given. you start from the upper-left corner. At each step you can go down or right one cell.Design an algorithm

Re: [algogeeks] apple problem

2010-09-30 Thread Yan Wang
Top-Down DP = DP implemented recursively with storing and checking the states. On Thu, Sep 30, 2010 at 2:27 AM, Christi Massey masseychri...@gmail.com wrote: A table composed of N*M cells,each having a certain quantity of apples, is given. you start from the upper-left corner. At each step you

Re: [algogeeks] apple problem

2010-09-30 Thread Christi Massey
will you plz explain this problen in detail.if possible by designing its algorithm -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to