Algorithms
Abstract
This chapter defines an algorithm and develops pseudocode for expressing an algorithm. As examples, pseudocode is presented for the inner product, the Frobenius matrix norm, and matrix multiplication. Block matrices are briefly discussed using 2 × 2 block matrices. Algorithm efficiency is defined in terms of flop count, and Big-O notation is intuitively developed for expressing flop count. It is made clear that a larger flop count does not guarantee a faster algorithm. Higher memory requirements, poor coding, the ability parallelize one algorithm and not another are factors that must be considered. Truncation error occurs when only a finite number of terms of an infinite series are used; for instance, one could ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access