CPSC 421 OOP Strategy Design Pattern

12345678910111213141516171819202122232425
Across
  1. 2. The algorithm uses data the client should not know about or had _____ we want to leave out of the client
  2. 3. Strategy lets the algorithm vary _____ from clients that use it
  3. 6. The advantage is that it allows a _____ of implementation
  4. 9. In the Motivation, the class _____ implements a strategy so that each row has a fixed number of items
  5. 11. Strategy is a _____ Pattern
  6. 12. A related pattern
  7. 13. Applicable to many related classes that differ only in _____
  8. 14. Applicable when different _____ of an algorithm are needed, often for different space/time tradeoffs
  9. 19. One disadvantage is that the client must pick which _____ to use
  10. 20. In the Motivation, the class _____ implements the TEX algorithm that optimizes line breaks an entire paragraph at a time
  11. 22. In the Motivation, the class _____ is a Compositor with a simple strategy for determining line breaks
  12. 24. A related pattern is the _____ Method
  13. 25. The _____ maintains a reference to a Strategy
Down
  1. 1. The _____ implements the algorithm using the Strategy interface
  2. 4. A good design moves the _____ statement into its own Strategy class
  3. 5. The _____ declares an interface common to all supported algorithms
  4. 7. Applicable when there are multiple _____ statements in the operations
  5. 8. Another disadvantage is the _____ overhead between Strategy and Context
  6. 10. The Strategy Pattern is an alternative to _____ of the Context
  7. 15. AKA: _____
  8. 16. In the Motivation, the (abstract) class _____ implements line-breaking strategies
  9. 17. In the Motivation, the class _____ maintains and updates line breaks of text
  10. 18. Advantageous for _____ of related algorithms
  11. 21. Define a family of algorithms, _____ each one, and make them interchangeable
  12. 23. Another disadvantage is that it increases the number of _____