Implementingthe8-puzzleDesign.pptVIP

  • 3
  • 0
  • 约1.08万字
  • 约 31页
  • 2016-11-23 发布于天津
  • 举报
Implementingthe8-puzzleDesign.ppt

Implementing the 8-puzzle Design (no corresponding text chapter) Possible Implementation of StateInfo Class solve() Pseudocode Revisited Possible Implementation of solve() Problems With The Implementation Recall a design goal for this program: Only the ProblemInfo and StateInfo classes should know any details about the problem domain The SolverInfo class should be applicable to domains other than the 8-puzzle Does the solve() method, as implemented, meet this goal? No. We therefore introduce the classes Action and ActionList to act as a layer of abstraction between the solver and the domain.

文档评论(0)

1亿VIP精品文档

相关文档