Topics in Dynamic programming and Economic Networks