1Chapter 2: Algorithm D is c ov ery an d D es ign Invitation to Computer Science, C++ Version, Third Edition ff fi Objectives In this chapter, you will learn about: fl Representing algorithms fl Examples of algorithmic problem solving ff ffi I n tr o d u ctio n fl This chapter discusses algorithms and algorithmic problem solving using three problems: Searching lists Finding maxima and minima Matching patterns ff R ep r esen tin g A l g o r ith m s fl Natural language Language spoken and written in everyday life Examples: English, Spanish, Arabic, etc. Problems with using natural language for algorithms !
- data values from the outside world
- continuation condition
- characters of pattern
- natural language
- natural-language
- algorithm
- string
- pattern
- operations
- loop