Introducing Python Programming

Thomas Mailund · Apress eBooks · 2021

Many textbooks on algorithms will present the algorithms in so-called pseudo-code , something that looks like it is written in a real programming language while it is in fact written in an approximation to such a language but where the abstractions and programming constructs are chosen to make the algorithms look as simple as necessary. Since the goal of these books is to present the essentials of an algorithm and not distract the reader with unnecessary language artifacts, it is a sensible approach. It does, however, occasionally hide too many details from the reader, and since the pseudo-code cannot be run by a computer, it is not possible to experiment with it to test different approaches to how an algorithm could be implemented in practice. In this book, we will not use pseudo-code but present all algorithms in the Python programming language. Python is a very high-level language, and in many ways, Python implementations of common algorithms look very similar to pseudo-code versions of them, but with Python, you get a working implementation.

Read the paper · More papers on PaperTik