Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud
by Paul J. Deitel, Harvey M. Deitel
11.1 Introduction
In this chapter, we concentrate on some key aspects of computer science thinking that go beyond programming fundamentals. Our focus on performance issues is a nice way to transition into the data science chapters, where we’ll use AI and big data techniques that can place extraordinary performance demands on a system’s resources.
We begin with a treatment of recursion. Recursive functions (or methods) call themselves, either directly or indirectly through other functions (or methods). Recursion can often help you solve problems more naturally when an iterative solution is not apparent. We’ll show examples and compare the recursive programming style to the iterative style we’ve used to this point. We’ll indicate where each might ...
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