Содержание
- 2. KWIC Key Word In Context (KWIC) ● Search index searching for keywords with context sensitive display
- 3. Example ● ● Clouds are white Ottawa is beautiful Input: Titles Output: Index ● ● ●
- 4. Solution 1 Main Program/Subroutine with Shared Data ● ● Functional decomposition Components are subroutines Master Control
- 5. Solution 1 Strengths ● ● Centralized data – efficient representation of data Modular decomposition Weaknesses ●
- 6. Solution 2 Abstract Data Types ● ● Similar to one with data encapsulation data access via
- 7. Solution 2 Abstract Data Types Master Control Input Characters Output Alphabetic Shifts Input Medium Output Medium
- 8. Solution 2 Advantages ● ● Handles change well algorithm and data are encapsulated in individual modules
- 9. Solution 3 Implicit Invocation ● ● Similar to solution 1 shared data Two main differences data
- 10. Solution 3 Master Control Input Circular Shift Output Alphabetizer Input Medium Output Medium Subprogram call Implicit
- 11. Solution 3 Advantages ● Strong evolution path functional enhancements are easy new components can be attached
- 12. Solution 3 Disadvantages ● ● Difficult to control the ordering of processing Requires more storage capacity
- 13. Solution 4 Pipes & Filters ● Four filters input, shift, alphabetize, output each filter can compute
- 14. Solution 4 Advantages ● ● ● Intuitive flow of processing Reuse Evolution – new filters can
- 15. Solution 4 Disadvantage ● ● ● Virtually impossible to support an interactive system Is this a
- 16. Comparison
- 18. Скачать презентацию