3 ms·
Any guess as to what the distribution will look like in practice? I suppose you started with a list of iid equally likely parens, but I would guess that in prac
by dan-robertson 5y ago
Any guess as to what the distribution will look like in practice? I suppose you started with a list of iid equally likely parens, but I would guess that in practice the distribution D might look more like:
() moderately likely
(X) where X ~ (roughly) D quite likely
X Y where X,Y ~ (roughly) D slightly likely.
My prior is that in user interfaces one will typically see a somewhat deep nesting of clips (ie components) with a few primitives to draw at each level. But maybe this is just wrong or most of these clips are axis-aligned rectangles and can be dealt with as the command list is built. Or maybe you do see nesting in practice but not super deep nesting (say window > panel > panel > set of buttons > button > text with each corresponding to several layers of nested clips)