Skip to content
START WITH A QUESTION

What would you like to understand?

Find an answer. See the moment it becomes clear. Follow the idea further.

← Concept directory

Answers for “为什么旧金山到圣地亚哥的路线可以在洛杉矶处拆分?”

2 keyword matches

Understanding your question. You can explore the search results below now.

Understand why

↗

The San Francisco to San Diego route can be split at Los Angeles because the problem exhibits optimal substructure. Once the shortest SF→LA and LA→SD segments are known, they combine to give the shortest SF→SD route.

Conditions: The example assumes the overall route passes through Los Angeles.; The narrator states that finding the shortest subroutes guarantees the overall shortest route in this example.

Meet the concept

↗

Optimal substructure means that the optimal solution to the overall problem can be constructed by efficiently combining the optimal solutions of its subproblems. In the route example, once the shortest SF→LA and LA→SD segments are known, they combine to give the shortest SF→SD route.

Conditions: The problem can be divided into subproblems.; The optimal solution of the main problem depends on the optimal solutions of its subproblems.