[Cs5500] Smart History probable fix

Ashish Joshi joshi.as at husky.neu.edu
Thu Dec 1 02:53:37 EST 2011


Hey guys,
figured out the problem with the smart history
The baby avatar is not generating random claims
It always generates 0.61 for some reason
It wasn't the case in the earlier version where it used random.nextdouble()
Also the strengthened claim is nothing but original claim + min
strengthening

So in binarygame.java when a new claim (strengthened claim, original claim)
is added to the hashmap newClaimOriginalClaim
Those map to the same claim
since each entry in the hash map is the same
original claim => 0.61
strengthened claim => 0.61+minstrengthening

Hence in the smarthistory.java
all new responses are appended to the response belonging to one claim
and hence we see the appended response in the smart history file

Use the following as the generateRandomClaim method in the avatar

    private Claim generateRandomClaim()
    {
        Random r = new Random();
        double d = r.nextDouble();
        //return new
Claim(MMGInstanceSet.getInstance(),ForAllExistsMax.getInstance(),0.61d,1);
        return new
Claim(MMGInstanceSet.getInstance(),ForAllExistsMax.getInstance(),d,1);
    }

I've just tried it with the baby avatar
If madhu/karan have the teacher avatar...they could try it with a couple of
teachers and a baby
We could check it in as the fix
Attaching the smart history files I generated while hosting a tournament
locally


-- 
Cheers
Ashish Joshi
-------------- next part --------------
HTML attachment scrubbed and removed
-------------- next part --------------
claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.11987369261187653 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action refuting 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.10107998363012838  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ teamdexter }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.29699821458090014 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action agree 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.5187489268014617  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{  }}  
pointsWon 0.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.5537861749836283 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action agree 
responses provider  {{ teamdexter }}  pr provide mmg.MMGInstance {{  0.6089073387152273  }} 
 provider  {{ root }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{  }}  
pointsWon 0.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.2918216992498317 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action agree 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.8368379596307436  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{  }}  
pointsWon 0.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.3023609021806024 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action strengthening 0.3023609022806024 
responses provider  {{ teamdexter }}  pr provide mmg.MMGInstance {{  0.9393693930943652  }} 
 provider  {{ root }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ root }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.582866340569913 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action refuting 
responses provider  {{ teamdexter }}  pr provide mmg.MMGInstance {{  0.5980521887600879  }} 
 provider  {{ root }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ root }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.6527730826695591 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action agree 
responses provider  {{ teamdexter }}  pr provide mmg.MMGInstance {{  0.06508975552667373  }} 
 provider  {{ root }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{  }}  
pointsWon 0.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.5931897862204916 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action refuting 
responses  winner  {{  }}  
pointsWon 0.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.5082482261091219 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action strengthening 0.5082482262091219 
responses  winner  {{  }}  
pointsWon 0.0

  
 {{ teamdexter }}  99.0
 {{ root }}  101.0
-------------- next part --------------
claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.13335623206393143 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action strengthening 0.13335623216393144 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.24236383663214578  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ teamdexter }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.6117072592418873 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action strengthening 0.6117072593418873 
responses provider  {{ teamdexter }}  pr provide mmg.MMGInstance {{  0.8217580522375831  }} 
 provider  {{ root }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ teamdexter }}  
pointsWon 1.000017846308765E-10

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.17628326675696737 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action strengthening 0.17628326685696738 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.3684245713951019  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ teamdexter }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.9919992931093266 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action refuting 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.3142245206066755  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ root }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.4330584580214337 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action agree 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.8651723880783752  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{  }}  
pointsWon 0.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.6898604490694378 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action refuting 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.2670859865851354  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ teamdexter }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.26335748297573747 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action strengthening 0.2633574830757375 
responses provider  {{ root }}  pr provide mmg.MMGInstance {{  0.4465407184161906  }} 
 provider  {{ teamdexter }}  pr solve mmg.MMGSolution {{  0.45  }} 
  winner  {{ teamdexter }}  
pointsWon 1.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.18686846080252317 1.0 
proposer  {{ teamdexter }}  
opposer  {{ root }}  
action refuting 
responses  winner  {{  }}  
pointsWon 0.0

 claim mmg.MMGInstanceSet {{      }} scg.protocol.ForAllExistsMax {{      }} 0.2916435050155327 1.0 
proposer  {{ root }}  
opposer  {{ teamdexter }}  
action agree 
responses  winner  {{  }}  
pointsWon 0.0

  
 {{ root }}  96.9999999999
 {{ teamdexter }}  103.0000000001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmg_local.jpg
Type: image/jpeg
Size: 175714 bytes
Desc: not available
Url : http://lists.ccs.neu.edu/pipermail/cs5500/attachments/20111201/2d17548e/attachment-0001.jpg 


More information about the Cs5500 mailing list