hutiefang76 commented on issue #647:
URL: 
https://github.com/apache/datasketches-java/issues/647#issuecomment-7079624844

   For the second-order merge proposal, I checked both Java unions at 
`1450bf3b`. Merging two `n=3, k=2` reservoirs gives a probability of `1/6` that 
both retained items come from the second input. A uniform 2-of-6 draw gives 
`1/5`. The local runs observed 33,356 of 200,000 long unions and 33,432 of 
200,000 item unions.
   
   There is also a capacity choice. An `n=12, k=4` reservoir followed by `n=3, 
k=2` currently returns `k=4`. A uniform 4-of-15 result can include all three of 
the smaller input's items, but only two are available. Previously serialized 
weighted-union results also lack a way to identify whether their inputs were 
uniform subsets.
   
   Would you prefer a separate opt-in merge with an explicit capacity bound and 
uniform-input requirement?
   
   AI-generated text and analysis assistance: OpenAI Codex and DeepSeek. The 
Java runs were executed locally.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to