August 2023
Intermediate to advanced
265 pages
3h 55m
English
This chapter introduces you to recursion, which is illustrated in various Python code samples, followed by an introduction to basic concepts in combinatorics, such as combinations and permutations of objects.
The first part of this chapter shows you how to calculate the sum of an arithmetic series and the sum of a geometric series using iterative algorithms as well as recursive algorithms. These examples provide an introduction to recursion if you are new to this topic. Next, you will learn about calculating factorial values of positive integers as well as Fibonacci numbers.
The second part of this chapter discusses concepts in combinatorics, such as permutations and combinations. Note that a thorough ...
Read now
Unlock full access