Chengwei LEI, Ph.D.    Associate Professor

Department of Computer and Electrical Engineering and Computer Science
California State University, Bakersfield

 

Dynamic Programming

 


Solution

 


My personal "magic spell" for Dynamic Programming:

Who am I? Where did I come from? Where am I going?


 

Solution


 

Other Examples

The Knapsack Problem and Warehouse Optimization | inVia Robotics

 

 




 

 


 

Can you update your algorithm if there are more than one coin in different cells?

 

 


 

Can you update your algorithm if there are some blocks in some of the cells?

 

 


 

Can you update your algorithm if the robot can start from any cell?

 

 


 

Can you update your algorithm if robot can start from any cell
and you can choose the robot moving combination (right+down  /  left+down  /  right+up  /  left+down)
?