Apply Template Method Pattern to Back Tracing Algorithm

Xia Yong-fen · Microcomputer Information · 2009

Describes Template Method Pattern and how to apply Template Method Pattern to implement back tracing algorithm in Java language,the implementation makes the algorithm achieve the goal of extensibility,flexibility and pluggability,promote maintainability and reuseability of the algorithm.At last,demonstrates how to apply to problem of N_Queen,permutation and sum of subset.

Read the paper · More papers on PaperTik