Please enable JavaScript.
Coggle requires JavaScript to display documents.
Dynamic programming - Coggle Diagram
Dynamic programming
more of a way to see a problem than an algorithm, introduced before programming.
-
-
Coin collection problem
-
//coins a robot can collect on an n × m board by starting at (1, 1)
-
//Input: Matrix C[1..n, 1..m] whose elements are equal to 1 and 0
//for cells with and without a coin, respectively
NP hard problems
-
minimun spanning tree
Step 1 Construct a minimum spanning tree of the graph corresponding to a given instance of the traveling salesman problem.
-
Step 2 Starting at an arbitrary vertex, perform a walk around the minimum spanning tree recording all the vertices passed by. (This can be done by a DFS traversal.)
-
-
-
vertices remaining on the list will form a Hamiltonian circuit, which is
-