Skip to content

Instantly share code, notes, and snippets.

@Yi-Tseng
Created May 28, 2013 15:33
Show Gist options
  • Save Yi-Tseng/5663634 to your computer and use it in GitHub Desktop.
Save Yi-Tseng/5663634 to your computer and use it in GitHub Desktop.
F( n ) = [ 0 (if n < min[w1, w2] )
min[F(n-w1) + c1, F(n-w2) + c2]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment