Algorithms and Data Structures · Middle · Question 69 of 75

What is the "meet in the middle" idea in two-sided BFS?

Explanation

If each step branches b ways and the distance is d, one BFS explores about bᵈ states, two searches about 2 × b^(d/2). It's used in puzzles such as "word ladder".

Further reading

Problem with a question

Algorithms and Data Structures · Middle · question 69

Test yourself

Take the Algorithms and Data Structures · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz