Algorithm Question Maximize Average of Functions
Posted
by paradoxperfect
on Stack Overflow
See other posts from Stack Overflow
or by paradoxperfect
Published on 2010-03-28T20:00:25Z
Indexed on
2010/03/28
20:03 UTC
Read the original article
Hit count: 263
Hello,
I have a set of N functions each denoted by Fi(h). Each function returns some value when given an h.
I'm trying to figure out a way to maximize the average of all of the functions given some total H value.
For example, say each function represents a grade on an assignment. If I spend h hours on assignment i, I will get g = Fi(h) as my grade. I'm given H hours to finish all of the assignments. I want to maximize my average grade for all assignments.
Can anyone point me in the right direction to figure this out?
© Stack Overflow or respective owner