Process Matrix by DP