Depth- and Breadth-First Search | Math ∩ Programming
Yes, precisely. I am aware that the usual algorithms involving depth-first search have one color the nodes many various colors to indicate different degrees of processing. I wanted to use a set (despite its inefficiency) simply to make the point that the ...