Point Lookout: a free weekly publication of Chaco Canyon Consulting
Volume 22, Issue 16;   April 27, 2022:

Depth First or Breadth First?


When investigating candidate solutions to a problem, we tend to focus first on what we believe is the "best bet." But a more systematic approach can sometimes yield dramatic advantages by reducing the cost of the investigation and the time it requires.
Aedes aegypti mosquito in Dar es Salaam, Tanzania

Aedes aegypti mosquito in Dar es Salaam, Tanzania. This mosquito species is one of the species that carries the yellow fever virus. The Panama Canal, as we know it today, is not the result of the first attempt to cross the isthmus. The first attempt, by French engineer Ferdinand de Lesseps, began construction in 1881. It would have produced a sea-level canal. It encountered a number of obstacles, which led to a halt in construction in 1889. Major obstacles were the scale of earth moving required, geological instability, heavy seasonal rainfall, and yellow fever. These obstacles were well known in advance of the French effort, but they weren't resolved before the resources were depleted.

Image (cc) which="by 1.2 only" by Muhammad Mahdi Karim courtesy Wikipedia.

Some problems are at least partially susceptible to analytic solution. To solve these problems, approaches that entail a degree of mathematical modeling or analysis can be fruitful. But other problems stubbornly resist such approaches. For these problems we can usually devise candidate solutions by other means, but choosing among the candidates requires experimentation. Because modeling the effects of a solution mathematically is just too difficult, we must actually try a candidate to see how well it works — a practice we sometimes call "piloting." And when we try candidate solutions, we encounter a dilemma: do we proceed depth first, or breadth first? The choice we make can account for much of the difference between success and failure.

What do these two terms — depth first and breadth first — mean in the context of problem solving?

Depth-first search for problem solutions
When we search for solutions to a problem by piloting, we begin by implementing one solution in whole or in part. Soon we come to a place where we recognize an obstacle — a sub-problem. If we dive into solving that sub-problem, we're doing a depth-first exploration.
Breadth-first search for problem solutions
An alternative to depth-first exploration is breadth-first. In breadth-first exploration, when we encounter a sub-problem, we decide to set aside the sub-problem "for now," and investigate what else might lie in wait up ahead on our original path.

Which approach is better? Easy (but not very helpful) answer: "It depends." We must use our judgment about whether to solve sub-problems as we find them, or whether to set them aside for now to continue work on the larger problem.

Here are Which approach is better?
Easy (but not very helpful)
answer: "It depends."
five guidelines for making choices between depth-first and breadth-first approaches to searching for solutions to problems. In what follows I assume that we have two or more candidate solutions and that mathematical modeling doesn't provide much guidance for choosing among them.

Consider irrevocability
Fair comparison of different solutions requires assurance that we compare solutions using similar conditions. Some problem solutions alter the environments in which we evaluate those solutions. Solutions that alter the environment irrevocably are obviously troublesome to evaluate, because they make fair evaluation of other solutions difficult. But even more troublesome are solutions that alter the environment without revealing that they have done so.
Be certain that you understand how each solution alters the evaluation environment.
Consider the burden of comparing candidate solutions
A strategy for comparing candidates might seem simple until we consider resource and schedule constraints. Complexity enters because studying the suitability of a candidate solution might have effects on budget or schedule or both. Or making the comparison might consume the time of people with special knowledge who are needed elsewhere.
Reducing the field of candidate solutions is advantageous because it reduces the risk of irrevocable or hidden alteration of the evaluation environment. More important though, eliminating candidates limits the need to compare them one to another.
Keep the immediate goal in mind
While the ultimate goal is finding a solution that meets our needs, when evaluating a particular solution, the immediate goal can differ. For example, if we can eliminate a candidate solution rapidly or with minimal resource expenditure, we can reduce the total cost of evaluating candidates.
The overall goal of identifying an acceptable solution can sometimes "hijack" the effort to evaluate suitability of a given candidate solution, biasing the evaluator in favor of approving a candidate. Solution evaluation must remain objective. Eliminating a candidate solution can be almost as valuable as finding an acceptable solution.
Understand the advantages of depth-first searches
Searching for solutions depth-first elevates the probability of uncovering information that can make the overall search more effective in some circumstances. For example, when investigating an obstacle that one candidate exposes, investigators might discover attributes of candidates that are more likely to render them vulnerable to the same or similar obstacles. And that can make the rest of the search for solutions more effective.
Likewise, investigating an obstacle for one candidate can uncover information that enables elimination of other candidates. If that seems possible, you might have found a screening test. To determine whether a given candidate fails, apply that test. As you find more kinds of failures, you can add to your catalog of tests. This makes exploring future candidates cheaper.
Understand the advantages of breadth-first searches
Searching for solutions breadth-first elevates the probability of uncovering information that can make the overall search more effective, albeit in different circumstances. For example, when investigating an obstacle that one candidate exposes, investigators might be able to predict conditions that expose additional obstacles not yet discovered. Subjecting the candidate solution, or other candidate solutions, to those conditions can expose obstacles earlier in the investigation, speeding discovery of an acceptable solution.
If it's possible to explore more than one solution at a time, then breadth-first search has clear advantages. In breadth-first search, what we learn from investigating one candidate can probably be applied immediately to the investigation of another. By contrast, in depth-first search, obstacles encountered by one solution are not as likely to apply to other solutions because the path of exploring the solution space can differ dramatically from one candidate to the next.

If only a few candidate solutions are available, the advantages of breadth-first and depth-first investigations probably don't differ by much. But as the number of candidates increases, the value of choosing wisely can be significant. Go to top Top  Next issue: Rational Scope Management  Next Issue

How to Spot a Troubled Project Before the Trouble StartsProjects never go quite as planned. We expect that, but we don't expect disaster. How can we get better at spotting disaster when there's still time to prevent it? How to Spot a Troubled Project Before the Trouble Starts is filled with tips for executives, senior managers, managers of project managers, and sponsors of projects in project-oriented organizations. It helps readers learn the subtle cues that indicate that a project is at risk for wreckage in time to do something about it. It's an ebook, but it's about 15% larger than "Who Moved My Cheese?" Just . Order Now! .

Your comments are welcome

Would you like to see your comments posted here? rbrenEMudcCzvnDHFfOEmner@ChacTcmtXTCJBjZfSFjIoCanyon.comSend me your comments by email, or by Web form.

About Point Lookout

Thank you for reading this article. I hope you enjoyed it and found it useful, and that you'll consider recommending it to a friend.

Point Lookout is a free weekly email newsletter. Browse the archive of past issues. Subscribe for free.

Support Point Lookout by joining the Friends of Point Lookout, as an individual or as an organization.

Do you face a complex interpersonal situation? Send it in, anonymously if you like, and I'll give you my two cents.

Related articles

More articles on Problem Solving and Creativity:

A team raises a wall of a new home sponsored by the U.S. Department of Housing and Urban DevelopmentWorkplace Barn Raisings
Until about 75 years ago, barn raising was a common custom in the rural United States. People came together from all parts of the community to help construct one family's barn. Although the custom has largely disappeared in rural communities, we can still benefit from the barn raising approach in problem-solving organizations.
The Fram, Amundsen's shipBreaking the Rules
Many outstanding advances are due to those who broke rules to get things done. And some of those who break rules get fired or disciplined. When is rule breaking a useful tactic?
XP-80 prototype Lulu-Belle on the groundNew Ideas: Generation
When groups work together to solve problems, they employ three processes repeatedly: they generate ideas, they judge those ideas, and they experiment with those ideas. We first examine idea generation.
Eugene F. Kranz, flight director, at his console on May 30, 1965, in the Control Room in the Mission Control Center at HoustonDesign Errors and Group Biases
Design errors can cause unwanted outcomes, but they can also lead to welcome surprises. The causes of many design errors are fundamental attributes of the way groups function. Here is Part II of our exploration.
stacks of gold coinsCost Concerns: Comparisons
When we assess the costs of different options for solving a problem, we must take care not to commit a variety of errors in approach. These errors can lead to flawed decisions. One activity at risk for error is comparing the costs of two options.

See also Problem Solving and Creativity and Project Management for more related articles.

Forthcoming issues of Point Lookout

A micrometer capable of measuring to |plusmn .01 mmComing July 13: What Do We Actually Know?
Precision in both writing and speech can be critical in determining the success of collaborations in the modern workplace. Precision is especially important when we distinguish between what we surmise or assume and what we actually know. Available here and by RSS on July 13.
A mallet. The same object can be either a tool or a weaponAnd on July 20: Overt Verbal Abuse at Work
Verbal abuse in the workplace involves using written or spoken language to disparage, to disadvantage, or to otherwise harm others. Perpetrators tend to favor tactics that they can subsequently deny having used to harm anyone. Available here and by RSS on July 20.

Coaching services

I offer email and telephone coaching at both corporate and individual rates. Contact Rick for details at rbrenEMudcCzvnDHFfOEmner@ChacTcmtXTCJBjZfSFjIoCanyon.com or (650) 787-6475, or toll-free in the continental US at (866) 378-5470.

Get the ebook!

Past issues of Point Lookout are available in six ebooks:

Reprinting this article

Are you a writer, editor or publisher on deadline? Are you looking for an article that will get people talking and get compliments flying your way? You can have 500-1000 words in your inbox in one hour. License any article from this Web site. More info

Public seminars

The Power Affect: How We Express Our Personal Power

Many The Power Affect: How We Express Personal Powerpeople who possess real organizational power have a characteristic demeanor. It's the way they project their presence. I call this the power affect. Some people — call them power pretenders — adopt the power affect well before they attain significant organizational power. Unfortunately for their colleagues, and for their organizations, power pretenders can attain organizational power out of proportion to their merit or abilities. Understanding the power affect is therefore important for anyone who aims to attain power, or anyone who works with power pretenders. Read more about this program.

Bullet Points: Mastery or Madness?

DecisBullet Point Madnession makers in modern organizations commonly demand briefings in the form of bullet points or a series of series of bullet points. But this form of presentation has limited value for complex decisions. We need something more. We actually need to think. Briefers who combine the bullet-point format with a variety of persuasion techniques can mislead decision makers, guiding them into making poor decisions. Read more about this program.

Follow Rick

Send email or subscribe to one of my newsletters Follow me at LinkedIn Follow me at Twitter, or share a tweet Subscribe to RSS feeds Subscribe to RSS feeds
The message of Point Lookout is unique. Help get the message out. Please donate to help keep Point Lookout available for free to everyone.
Technical Debt for Policymakers BlogMy blog, Technical Debt for Policymakers, offers resources, insights, and conversations of interest to policymakers who are concerned with managing technical debt within their organizations. Get the millstone of technical debt off the neck of your organization!
Go For It: Sometimes It's Easier If You RunBad boss, long commute, troubling ethical questions, hateful colleague? Learn what we can do when we love the work but not the job.
303 Tips for Virtual and Global TeamsLearn how to make your virtual global team sing.
101 Tips for Managing ChangeAre you managing a change effort that faces rampant cynicism, passive non-cooperation, or maybe even outright revolt?
101 Tips for Effective MeetingsLearn how to make meetings more productive — and more rare.
Exchange your "personal trade secrets" — the tips, tricks and techniques that make you an ace — with other aces, anonymously. Visit the Library of Personal Trade Secrets.
If your teams don't yet consistently achieve state-of-the-art teamwork, check out this catalog. Help is just a few clicks/taps away!
Ebooks, booklets and tip books on project management, conflict, writing email, effective meetings and more.