Thus spake Mike Perry (mikeperry@xxxxxxxxxx): > Case 2b: > > Wgg = Wee = weight_scale > Wed = (weight_scale*(D - 2*E + G + M))/(3*D) > Wmd = (weight_Scale*(D - 2*M + G + E))/(3*D) > Wme = Wmg = 0 > Wgd = weight_scale - Wed - Wmd > > Wmd >= 0: > D+G+E-2*M >= 0 D+G+E-2*M+M >= M D+G+E+M >= 3*M > T/3 >= M > > If your eyes haven't glazed over yet, you'll notice that this last > condition can actually be true. If we don't hand out enough Guard *sigh*... And, of course by "true" here, I actually meant "false", in that there can be mathematical situations where M > T/3 and this weight could thus take on a negative number. The rest of this paragraph was correct, I just said "true" when I meant "false". > flags, there may be too many middle nodes. In this case, the code just > warns and suggests that the WFU parameters be lowered. The code also sets this weight to 0 in this case, and adjusts Wgd appropriately. -- Mike Perry Mad Computer Scientist fscked.org evil labs
Attachment:
pgp2mJh2s3za6.pgp
Description: PGP signature