Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created February 16, 2013 20:45
Show Gist options
  • Save adilakhter/4968662 to your computer and use it in GitHub Desktop.
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