MCPcopy Create free account
hub / github.com/TheAlgorithms/C / matrixChainOrder

Function matrixChainOrder

dynamic_programming/matrix_chain_order.c:26–69  ·  view source on GitHub ↗

* @brief Finds the optimal sequence using the classic O(n^3) algorithm. * @param l length of cost array * @param p costs of each matrix * @param s location to store results * @returns number of operations */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected