Hacker Newsnew | past | comments | ask | show | jobs | submit | pfedak's commentslogin

You might want to check that your proposed solution works at all before suggesting the problem is trivial. What's the probability that the first die goes first with your numbers?

You also can't generally "and so on" constrained combinatorial arrangements like this.


I certainly would have, had I suggested the problem trivial! I'll keep that in mind for if I suggest things are trivial rather than suggesting I lack understanding.

> You also can't generally "and so on" constrained combinatorial arrangements like this.

I know you can't generally but in the specific case I proposed you can (3 sets of 3, 4 sets of 4, 5 sets of 5, each dice taking one ordinal of each set).

You might want to check that your proposed generalization criticism applies to the generalization at all before suggesting the arrangement doesn't work :)


Didn’t they do the exact opposite of suggesting the problem was trivial?


You're saying you knew the thing you wrote for n=3 specifically was wrong and just wanted someone else to confirm? I don't know man, I'm not really buying it. I think you did the classic dismissive nerd thing[1] and hedged it like this for plausible deniability.

I don't get the gotcha you're trying to do. Yes, the simple pattern you posted can be extended, but it has very little to do with the problem. If you had suggested [1,2,3] [4,5,6] [7,8,9] worked I would still have made my comment; I think the fact that you found a pattern that could be extended easily should have itself been a counter-indicator. Compare with something like the Fano plane[2].

I would want you to take away from this that posting the thing you came up with in "20 seconds" isn't as neutral a contribution to conversation as you thought. Things are often complicated and worth engaging with. It would have been cool if you kept going far enough to see there's a nice argument that it's actually impossible to solve it with n-sided dice for n people if n>2.

[1] https://xkcd.com/793/ [2] https://en.wikipedia.org/wiki/Combinatorial_design


Do you think the dismissive nerd thing is, like, a goal people set out to do?

You seem to have spent your time around sufficiently many unpleasant people that you see their behavior everywhere, even when explicitly corrected. I'm sorry for that.

Could I have independently gone through and rigorously deconstructed my solution? Sure, and we would all be poorer for it. See, there's another, valuable reason people say what I said beside the "classic dismissive nerd thing".

For every person with a question, there's probably 5 more with the same question who didn't ask. By writing down questions like I did, and inviting their answer to be written down, that provides education not only to me but to anyone who reads it after having similar thought.

I consider that sufficiently valuable to create, that I am willing to accept a handful of people criticizing me for "doing the dismissive nerd thing".

So yes. I knew the thing I wrote was wrong, I didn't know why/how, and I wrote it down as is rather than just going off on a personal side quest to come up with some generalized proof. And I would do it again.


Ha, I guess we just see the world differently. What you're describing sounds exactly like the dismissiveness I'm talking about.

I hope your life is full of "personal side quests" pursuing questions that appeal to your particular sensibilities. You should wrestle with that feeling of not understanding something, use it as a signpost pointing towards interesting ideas rather than as a reason to stop.

I'll get you started on the proof: Suppose for n>2 you have n n-sided dice with disjoint sets of numbers and you want each of them to have an equal chance of rolling the highest number. One of them must have the highest overall number, and it will roll that 1/n of the time. What can you say about the other numbers?

The relative ordering of the other dice doesn't depend on this result. They need to each have an equal chance of coming first. How many total outcomes are there?


Saying “I'm having trouble understanding” is not the same thing as “this is trivial”.


"I'm having trouble understanding why this is so complicated" could be interpreted in a non-dismissive way but it defaults to dismissive. And when it comes with a supposed solution attached, and that solution is really simple, that reinforces it sounding dismissive.


That wasn't my intention.

I by no means was suggesting that the trivial solution I, a non-mathematician, thought up in 20 seconds was somehow out of reach to a math professor who spent years on the problem. I knew I was wrong.

I didn't see why until I actually went through the solutions by hand.


Only the people who can't make eye contact with others interpreted your comment as hostile. Unfortunately, that describes a high number of people on this site.


I didn't read it as dismissive. I think the "Why doesn't this work?" at the end is key, implying they know they're probably wrong, but don't know why. It's pretty common to form and present hypothesis like this, hoping that anyone who knows the actual theory can easily provide a counterexample showing why it's wrong. It's not at all intended to be dismissive.


Why does that default to dismissive for you? It absolutely did not come off that way for me and I’m wondering if it’s because of experience or culture or something else.


I believe they are mixing it up with The Guns of August (published in 1962, also by Tuchman), which JFK was fond of and supposedly drew on during the Cuban missile crisis.


You are absolutely right. My mistake. I read them both and certainly recommend them.


Thank you. I heard about The Guns of August when I was looking for related books after reading A World Undone. Then I forgot about it. I never heard of March of Folly but I'll read them both.


This is nonsense, at least in part because it's mixing two different ideas. The notion that the image "looks exactly the same as how it originally appeared" is only true when one of your eyes is positioned exactly where the camera sensor would have been, which requires a specific distance away from the screen.

Lines in 3D remaining straight in a photo is unrelated and not actually demonstrated by the image. I'm having trouble imagining why this matters - you're trying to find the intersection of two lines in an image without drawing anything?


Another aspect of the solution that makes it rather abstract is it effectively assumes we know nothing about the distribution of the number of days.

Paying at 1/2 will be optimal if it ends before you buy, very bad (3x optimal) if it ends right after you buy, and slightly better than the solution in the post if it lasts at least twice that long (1.5x optimal vs e/(e-1)).

The metric in the post is just the worst of those ratios. Assuming the unproven statement in the post (that the solution which is a constant factor worse than optimal is best), any solution of the form you suggest is going to have similar tradeoffs. If we had a distribution, we could choose.


If it wasn't clear, their statements are all true when the events follow a poisson distribution/have exponentially distributed waiting times.


The main image is all at the same 90x level, and those buttons just zoom in (more or less) all the way on the points, while the "140x" are separate scan patches at higher magnification (though the real point is they have 3D/height data, too).


https://tmbw.net/wiki/Shows/1992-07-23

sounds like the concert in question


That isn't at all what the central limit theorem says. The whole point is it holds independent of the actual shape of distribution of the population. You could use the same argument to say social security numbers are normally distributed.

One way to explain things like height being normally distributed is that there are a bunch of independent factors which contribute, and the central limit theorem applied to those factors would then suggest the observed variable looking normal-ish.


I think you can reasonably think about the flight path by modeling the movement on the hyperbolic upper half plane (x would be the position along the linear path between endpoints, y the side length of the viewport).

I considered two metrics that ended up being equivalent. First, minimizing loaded tiles assuming a hierarchical tiled map. The cost of moving x horizontally is just x/y tiles, using y as the side length of the viewport. Zooming from y_0 to y_1 loads abs(log_2(y_1/y_0)) tiles, which is consistent with ds = dy/y. Together this is just ds^2 = (dx^2 + dy^2)/y^2, exactly the upper-half-plane metric.

Alternatively, you could think of minimizing the "optical flow" of the viewport in some sense. This actually works out to the same metric up to scaling - panning by x without zooming, everything is just displaced by x/y (i.e. the shift as a fraction of the viewport). Zooming by a factor k moves a pixel at (u,v) to (k*u,k*v), a displacement of (u,v)*(k-1). If we go from a side length of y to y+dy, this is (u,v)*dy/y, so depending how exactly we average the displacements this is some constant times dy/y.

Then the geodesics you want are just the horocycles, circles with centers at y=0, although you need to do a little work to compute the motion along the curve. Once you have the arc, from θ_0 to θ_1, the total time should come from integrating dtheta/y = dθ/sin(θ), so to be exact you'd have to invert t = ln(csc(θ)-cot(θ)), so it's probably better to approximate. edit: mathematica is telling me this works out to θ = atan2(1-2*e^(2t), 2*e^t) which is not so bad at all.

Comparing with the "blub space" logic, I think the effective metric there is ds^2 = dz^2 + (z+1)^2 dx^2, polar coordinates where z=1/y is the zoom level, which (using dz=dy/y^2) works out to ds^2 = dy^2/y^4 + dx^2*(1/y^2 + ...). I guess this means the existing implementation spends much more time panning at high zoom levels compared to the hyperbolic model, since zooming from 4x to 2x costs twice as much as 2x to 1x despite being visually the same.


Actually playing around with it the behavior was very different from what I expected - there was much more zooming. Turns out I missed some parts of the zoom code:

Their zoom actually is my "y" rather than a scale factor, so the metric is ds^2 = dy^2 + (C-y)^2 dx^2 where C is a bit more than the maximal zoom level. There is some special handling for cases where their curve would want to zoom out further.

Normalizing to the same cost to pan all the way zoomed out (zoom=1), their cost for panning is basically flat once you are very zoomed in, and more than the hyperbolic model when relatively zoomed out. I think this contributes to short distances feeling like the viewport is moving very fast (very little advantage to zooming out) vs basically zooming out all the way over larger distances (intermediate zoom levels are penalized, so you might as well go almost all the way).


Hi, I was the one nerdsniped :) In the end I don't think blub space is the best way to do the whole zoom thing, but I was intrigued by the idea and had already spend too much time on it and the result turned out quite good.

The problem is twofold: which path should we take through the zoom levels,x,y and how fast should we move at any given point (and here "moving" includes zooming in/out as well). That's what the blub space would have been cool for, because it combines speed and path into one. So when you move linearly with constant speed through the blub space you move at different speeds at different zoom levels in normal space and also the path and speed changes are smooth.

Unfortunately that turned out not to work quite as well... even though the flight path was alright (although not perfect), the movement speeds were not what we wanted...

I think that comes from the fact that blub space is linear combination of speed and z component. So if you move with speed s at ground level (let's say z=1) you move with speed z at zoom level z (higher z means more zoomed out). But as you pointed out normal zoom behaviour is quadratic so at zoom level z you move with speed z². But I think there is no way to map this behaviour to a euclidean 2d/3d space (or at least I didn't find any. I can't really prove it right now that it's not possible xD)

So to fix the movement speed we basically sample the flight path and just move along it according to the zoom level at different points on the curve... Basically, even though there are durations in the flight path calculation, they get overwritten by TimeInterpolatingTrajectory, which is doing all the heavy work for the speed.

For the path... maybe a quadratic form with something like x^4 with some tweaking would have been better, but the behaviour we had was good enough :) Maybe the question we should ask is not about the interesting properties of non-euclidean spaces, but what makes a flightpath+speed look good


The nice thing about deciding on a distance metric is that it gives you both a path (geodesics) and the speed, and if you trust your distance metric it should be perceptually constant velocity. I agree it's non-euclidean, I think the hyperbolic geometry description works pretty well (and has the advantage of well-studied geodesics).

I did finally find the duration logic when I was trying to recreate the path, I made this shader to try to compare: https://www.shadertoy.com/view/l3KBRd


Wow, amazing how you managed to convert that into a compact shader, including a representation of the visualization!


the chart in the streetsblog article puts some values in the wrong boxes, too. pathetic


wow not just some, it tells a totally different story, that's awful. (edit, I emailed the author- further edit: author reply: I’ve corrected my chart. I did not use a tool to extract the data. I actually think the chart you are looking at (on the left) was updated from the one I originally received and I may have been working off the earlier one.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: