Chapter 12. PROGRAM ALGORITHMS

This chapter is more theory oriented than the previous ones. You'll learn about programming algorithms that are common across all programming languages. An algorithm is a common procedure or methodology for performing a certain task. To keep things familiar, you'll see the algorithms in Visual Basic, but the concepts you learn here are important no matter which programming language you use.

The highlights of this chapter include the following:

  • Counters and accumulators enable you to keep running counts and totals.

  • The use of temporary variables is vital for data swapping.

  • The bubble sort is a fundamental data-sorting technique.

  • The binary search is a far more efficient search technique than the simple sequential search. ...

Get Absolute Beginner's Guide to Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.