Write an implementation of Min-Max algorithm ...

來源: 2009-12-07 21:47:35 [舊帖] [給我悄悄話] 本文已被閱讀:

And it will give you the definitive answer. Not the most efficient way though, since it is based on exhaustive search.

The implementation will be within 200 lines of codes.

Max(P) = Max(All Min(P-sub))
Min(P) = Min(All Max(P-sub))