Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created February 16, 2013 20:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save adilakhter/4968662 to your computer and use it in GitHub Desktop.
let computeOptCost (budget,N,(opt:int [,]),optFunValue) =
let mutable optCost = 0
for c=budget downto 0 do
if opt.[N,c] = optFunValue then
optCost <- c
else
()
optCost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment