Establishing the Algorithm of the Optimum Arrangement on Functional Design