CPSC 421 OOP Strategy Design Pattern

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