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))