Skip to Content
Advanced Algorithms and Data Structures
book

Advanced Algorithms and Data Structures

by Marcello La Rocca
July 2021
Intermediate to advanced
768 pages
25h 23m
English
Manning Publications
Content preview from Advanced Algorithms and Data Structures

appendix E. Recursion

If you are reading this book, you are probably already familiar with loops. As discussed in appendix A, for, while, and do-while loops (and some more, depending on the language) all are examples of iteration.

Iterative loops are one straightforward way to repeatedly perform similar actions on a series of elements. Usually loops go hand in hand with certain data structures, for example, containers like lists and arrays.

Loops tend to work well when the data structure has a linear shape; sometimes, though, things are more complicated and a simple loop might not be enough to immediately solve the issue. We will see, for example, how trees and graphs are more challenging than lists. There are workarounds to use loops with ...

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.
Start your free trial

You might also like

A Common-Sense Guide to Data Structures and Algorithms

A Common-Sense Guide to Data Structures and Algorithms

Jay Wengrow
Data Structures & Algorithms in Python

Data Structures & Algorithms in Python

John Canning, Alan Broder, Robert Lafore

Publisher Resources

ISBN: 9781617295485Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link