mantis 4144

From: Kaiming Ho <kaiming.ho@iis.fraunhofer.de>
Date: Wed Jul 11 2012 - 00:24:55 PDT

Hello Dave:

   I've looked at your proposed change to 18.5.10 in mantis 4144.
The example illustrates subtleties in the way the constraint solver
works which are still misunderstood by many people. Including a
table of valid solutions, and their probability of occurrence in the
LRM would be educational. One finds this approach in training slides
or papers outlining SV 'gotchas'.

   Please consider adding the following after the first paragraph.

| The following table illustrates the valid solutions of {s,d} which
| satisfy the constraint, and the probability of occurrence of each
| s d prob
| 1 0x00000000 1/(1+2^32)
| 0 0x00000000 1/(1+2^32)
| 0 0x00000001 1/(1+2^32)
| 0 0x00000002 1/(1+2^32)
| 0 ...
| 0 0xfffffffe 1/(1+2^32)
| 0 0xffffffff 1/(1+2^32)

   In place of the entire second paragraph, I'd like to suggest something
like:

| In this case, the order constraint instructs the solver to solve for s
| before solving for d. Adding this order constraint does not change
| the set of valid solutions, but alters their probability of
| occurrence.
| s d prob
| 1 0x00000000 1/2
| 0 0x00000000 1/2 * 1/2^32
| 0 0x00000001 1/2 * 1/2^32
| 0 0x00000002 1/2 * 1/2^32
| 0 ...
| 0 0xfffffffe 1/2 * 1/2^32
| 0 0xffffffff 1/2 * 1/2^32
|
| Note that the probability that d==0 without the order constraint
| is 2/(1+2^32), and is 1/2*(1+2^32) with the order constraint.

regards,
kaiming
Received on Wed Jul 11 00:25:01 2012

This archive was generated by hypermail 2.1.8 : Wed Jul 11 2012 - 00:25:02 PDT