Chapter Opener Photo

7 PROBLEM SOLVING AND ALGORITHMS

In Chapter 6, we looked at machine code, which uses binary numbers to represent operations, and assembly language, which uses mnemonics to represent operations. Assembly languages are a step in the right direction, but the programmer still must think in terms of individual machine instructions. We also introduced pseudocode, an artificial language designed for expressing algorithms. We begin this chapter with a brief discussion of problem solving in general.

Computer science is sometimes defined as “the study of algorithms and their efficient implementation in a computer.” The focus of this chapter is on algorithms: their role in problem solving, strategies for developing them, techniques for following and testing them. We choose classic searching and sorting algorithms as the context for the discussion on algorithms.

Because algorithms operate on data, we examine ways to structure data so that it can be more efficiently processed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.108.54