Minimum Steiner tree
In the minimum Steiner tree problem, we are given an edge-weighted graph and a subset of required vertices. A Steiner tree is a tree in that spans all vertices of , meaning that they are all in the same component. The objective of the problem is to find a Steiner tree of minimum weight. The decision version of the problem is NP-complete. However, it is fixed-parameter tractable when parameterized by the size of , as is witnessed by the dynamic programming algorithm shown below.
Algorithms
Complete search
Time complexity is , where and
Dynamic programming
Time complexity is

