January 2017
Intermediate to advanced
606 pages
14h 1m
English
16.2 Generalized Eight Queens Problem
16.5 Fractal (Hilbert Curve and Sierpinski Triangle)
16.7 Guidelines on Using Recursion
In Chapter 8, we discussed recursion and its applications in detail. In this chapter, we focus on more advanced problems that can be solved using recursion.
In this section, we will use recursion to print a picture comprising several squares within each other. For this purpose, we need to import a graphical package, and matplotlib is one such choice (discussed in detail in the next chapter). It contains methods for 2D graphics that would be required ...