log☇︎
37600+ entries in 0.008s
asciilifeform: there exist qa,qb that are only miscible in quantities that are not available on a given game board ☟︎
asciilifeform: mircea_popescu: q-1 and q are not the only possible immiscible piles
asciilifeform: http://btcbase.org/log/2018-08-25#1844421 << i had it pictured in exactly these terms, looked for some cheat, but yet found none ☝︎
asciilifeform: http://btcbase.org/log/2018-08-25#1844412 << canhaz proof ? ( i can buy it, but suspect that can construct counter ex ) ☝︎
asciilifeform: it can be made to work ( stuff all the whole piles possib into the two lumps , then solve for linear combinations of the excluded q's) but dun win anyffing
asciilifeform: http://btcbase.org/log/2018-08-25#1844413 << ha yea i sat down to write the proggy and realized ☝︎
asciilifeform: aha times out
asciilifeform: BingoBoingo: exactly how many vacant ip do we have ?
asciilifeform: BingoBoingo: feel free to route all unrouted ips to dulap
asciilifeform: ben_vulpes: if it's just a matter of having all the ips answer when pinged -- we can have that cured without much sweat
asciilifeform: that would rock
asciilifeform: 3 then
asciilifeform: bah
asciilifeform: mod6: why only 3 ?!
asciilifeform: the 'cheat' is that for ~any~ pile in the tree, you know that it had to result from one of 2 possible merges.
asciilifeform: O(bitness of finalmass)
asciilifeform: nah
asciilifeform: but the way it goes, is to recurse along all valid paths, and mark the traversals that result in initial-state piles being successfully 'eaten'
asciilifeform: there's a strong chance this won't make sense until shown as lisp proggy.
asciilifeform: 1s
asciilifeform: you recurse
asciilifeform: it describes all valid could-have-merged's
asciilifeform: stacks get split via the recurrence given in the start
asciilifeform: i'ma write it up in cl if nobody else wants to.
asciilifeform: evaluating proposed split of set is very easy, you check that the sum(n_...) and weighed avg of the component Qs are in spec.
asciilifeform: and never goes in circles
asciilifeform: mircea_popescu: aha , no randomness in my pill, it converges deterministically
asciilifeform: bang.
asciilifeform: if you want optimal decomposition, you keep all valid ones and pick the shortest.
asciilifeform: one of the two attempts will turn up a valid decomposition.
asciilifeform: then attempt to permute the list into two sublists which satisfy the recurrence. if the recursion comes up empty, you slide the guess tuple forward by 1. (there is no need to do this more than once, avg of the final 2 piles cannot exceed that of the entire thing)
asciilifeform: in the case of Mocky's example, this will be initially 172,173
asciilifeform: all you gotta do is to take { floor(sum(mass) / sum(qty)) - 1 , floor(sum(mass) / sum(qty)) } as the initial guess for the split of qualities of the final 2 piles ☟︎☟︎
asciilifeform: mircea_popescu : do i need to go on, or has it clicked ?
asciilifeform: err, n2_a * q2_a + n2_b * q2_b = n2*q2
asciilifeform: in turn both of the piles that went into n1 (and likewise n2) satisfy same recurrence, n1_a * q1_a + n1_b + q1_b = n1*q1 ; n2_a * q2_a + n2_b + q2_b = n2*q2 .
asciilifeform: observe that the final 2 piles always satisfy the form n1*q1 + n2*q2 = S , where S is the sum of the masses (n_x * q_x for all x)
asciilifeform: cuz it is not complicated
asciilifeform: know what, i can post the answer, and somebody else can turn into proggy if he feels like
asciilifeform: wait an' see, i suspect mircea_popescu will like the answ
asciilifeform: massive binarygarbagepile
asciilifeform: mircea_popescu: it's standard microshit turd, 'what files luser has open and to what pos' etc
asciilifeform: mircea_popescu: i solved yer puzzler, will post sln later today
asciilifeform bbl
asciilifeform: currently i suspect that any 2 miscible-q piles can be merged in either 1 or 2 steps. but too tired to attempt proof just nao
asciilifeform: ( and really, much moar )
asciilifeform: Mocky: the lolcatcheatsheet suggests that any legal move is able to reduce a pile at least in half
asciilifeform: i'ma bbl.
asciilifeform: actually nm.
asciilifeform: )
asciilifeform: ( any qa-qb miscible pair of piles, can be merged in either 1 ( corresponding to the inner matrices having white line on diagonal ) moves, or 2 ( corresponding to those which do not ) .
asciilifeform: the diagonal symmetry in the inner matrices. QED.
asciilifeform: i'ma leave the proof for conjecture #2 here :
asciilifeform: or whatever it's called.
asciilifeform: i think he contracted cuckal
asciilifeform sings... tidididididida...
asciilifeform didn't make tops in arkanoid as a kid, either, can live with this
asciilifeform: tabletop-eulora.
asciilifeform: imho this is perfectly legit play!11
asciilifeform: hey i'm playing it!111 rigthere!
asciilifeform: also possible
asciilifeform: i dun have one in my head, lol. but loox on the surface that there is one.
asciilifeform: it rejects ~3/4 of legal moves
asciilifeform: Mocky's algo aint optimal !
asciilifeform: now my next conjecture, is that shortest full reduction never will require more than 2*P steps, P is number of q-miscible piles.
asciilifeform: ugh was this necessary BingoBoingo !111
asciilifeform: and can use this method.
asciilifeform: then mircea_popescu's proof for this is proof also for $conjecture, lol
asciilifeform: ( and as i understand it, if yer right, then my conjecture must be true )
asciilifeform: mircea_popescu: if my conjecture is troo, then you're right
asciilifeform: if can prove the |qa - qb| != 1 thing, can then use this algo.
asciilifeform: as i see it, this makes for new algo : 1) make list of immiscible piles, henceforth do not iterate with these 2) iterate through possible mixes, solving eqn for Na (for known Nb, entirety of pile B) and k exists . until you end with solely immiscible Q pairs. then stop.
asciilifeform: yea he adds portion of pile a to whole of pile b
asciilifeform: aah i see it
asciilifeform: when the 1st pile disappearance
asciilifeform: ditto all the way until move 31
asciilifeform: same # of piles as in init state
asciilifeform: move 1 : 503x222q 1466x3q 973x207q 983x252q 1651x258q 2963x189q 563x22q 336x225q -> 503x222q 1466x3q 973x207q 983x252q 1088x258q 2963x189q 1126x140q 336x225q
asciilifeform: mircea_popescu: if it did, it would shed a whole pile for each line of move output
asciilifeform: ( from http://btcbase.org/log/2018-08-22#1843560 ) ☝︎
asciilifeform: http://p.bvulpes.com/pastes/bvsMD/?raw=true << does not.
asciilifeform: mircea_popescu: do you ? seems like Mocky's proggy doesn't
asciilifeform: nao we haven't yet the proof, but seems like we can conjecture that if |qa - qb| = 1, then piles with qa and qb are immiscible in any ratio; elsewise, yes mixable, in a ratio that can be found, i suspect, in O(1) .
asciilifeform: (symmetric)
asciilifeform: can also saw it diagonally, you dun really need both halves across diagonal
asciilifeform: i made it 2048x2048 pixels, ought to print well on just about any printer , for wall lolcat hanging.
asciilifeform: if anybody needs a bigger ( or smaller ) ver of this lolcat, plox to write in.
asciilifeform: gentlemen, start yer engines..
asciilifeform: cuz i certainly havent
asciilifeform: nao somebody turn this into proof !
asciilifeform: black squares correspond, therefore, to values of qa and qb for which no solutions are possible
asciilifeform: inner grids are x : na, y : nb .
asciilifeform: outer grid is x : qa, y : qb
asciilifeform: white pixel : valid solution for some qa,qb,na,nb
asciilifeform: is the method obvious here or should i describe
asciilifeform: http://www.loper-os.org/pub/mp.gif ☟︎
asciilifeform: ok, here goes...
asciilifeform: cooking up a lol re subj, brb
asciilifeform: i follow thus far
asciilifeform: q1,q2