Optimization of Bride's Problem by Dynamic Programming using Java 1.1