Understanding Depth & Breadth-First Search in Swift
In this series, we’ve explored various advanced data structures such as binary search trees and graphs. Once built, these structures can exhibit properties like other collections. As such, their contents can also be explored through a process called Traversal. In this chapter, we’ll review this process and will introduce the concepts of Depth-First and Breadth-First Search.