HackerTrans
TopNewTrendsCommentsPastAskShowJobs

carstimon

no profile record

comments

carstimon
·5 miesięcy temu·discuss
Sorry, this was incorrect. In this integral we're just calculating the geometrical question, what is is the 5d volume of the collection of 3 points whose circumcenter is on {(x, 0) : x in [0, 1]}. So the "overall" probability of the problem has nothing to do with it.
carstimon
·5 miesięcy temu·discuss
You pointed out one error in your own answer, here's another. I haven't figured out the adjustments, but presumably they cancel.

You've done

∫₀¹ ∫₀¹⁻ᶜ (2π r)³ dr dc

However,

- the `dr` integral is assuming that the radii are uniformly likely in [0, r]

- the `dc` integral is assuming that the centers are uniformly likely in [0, c]

You need to wait these integrals by the conditional probability distributions.
carstimon
·7 miesięcy temu·discuss
A blog post for it from a prominent c++er https://herbsutter.com/2013/04/05/complex-initialization-for...
carstimon
·12 miesięcy temu·discuss
You've made the choice of (Locked Door, Open Window) ~ (Good SQL usage, XSS Vulnerability) which seems to be an incorrect rebuttal. Your example doesn't contradict "only as strong as its weakest link", here the weakest link is the XSS Vuln.

The "house analogy" can also support cases where the potential damage is not the same, e.g. if the open window has bars a robber might grab some stuff within reach but not be able to enter.