Ugh. I wanted to use LÖVE for the minecraft tool golf (just because), but apparently when you draw a line, it doesn't f'ing draw the line you tell it to, but some other line, decided by some yet-to-be-determined method.
Lesson learned: Don't try to use line-drawing tools if you need pixel-perfect results.
@Lembik we decide which nodes to discard based on N_MAX, since at a certain point you will encounter tuples for which |s| and |t| are too great to get back to 0 by the time N_MAX is reached
since from one tuple to the next |s| and |t| can differ by at most one each
the search space increases until around N_MAX / 2 and then decreases again, which you can see by the speed of the values being outputted
@MitchSchwartz ok.. so what happens if you set the wrong N_MAX? Does it ever output the wrong answer as a result?
@MitchSchwartz Oh... I think this current question is basically finished now.. If I asked a new one but with A longer might you be interested? Surely Min_25 can't come up with another closed formula :)
i may be able to see his email because of my account privileges on spoj, but i don't feel comfortable with that
well Min_25 said he doesn't know whether a closed form solution exists but guesses that one does
so i wouldn't really be surprised if he were able to come up with one
i think modifying the dp solution would not be too hard
do you think it would be ok for me to reply to your comment with "Thank you, I agree with your decision. :)" or is that too much like a "+1" that people would frown on as being useless and non-informative?
it's possible there is something i'm not anticipating, but i just mean that it will be parallel to what i did for this one -- thresh is just N_MAX - N, there is no complicated calculation there
@Rainbolt The usual argument is that it fragments the community. For instance, someone who knows both Russian and English (but Russian better) may post their question (or answer I guess) only on the Russian site now (instead of on English), so there's a net loss of knowledge from the "main" site.
The only reason I see cross posting as an issue is if it gets a great answer on one site and sad/no answers on the other. Even then it's not that big a deal IMO, it's just the whole knowledge fragmentation issue.
And, if someone does manage to write a question using perfect wording in 50 languages, then kudos to them. They deserve to get answers in 50 languages.
@MartinBüttner: I know I've already asked a variation of this, but I want to clarify before wasting a lot of time. Are the string lengths on the boggle board guaranteed to vary from 1 to 50 or at least from 1 to N?
@Lembik If you've looked for a job/house/etc (in the US at least) recently, you'd know that not having reliable internet access is a serious disadvantage.
and so the community effect of improving answers is also partly lost
@Geobits I can imagine!
@Geobits if you post to MO and math.se for example, you have to include links to the other question
@Geobits much for the reason I mentioned... people don't want to work on something to find that it has already been answered elsewhere.. and it's also a waste of time
There's a chance that some bilingual user will port the brilliant Russian answer to English. Would that offset the decrease in quality due to having less eyes?
Envoi d'une requête 'ping' sur ru.stackoverflow.com [198.252.206.16] avec 32 oct ets de données : Réponse de 198.252.206.16 : octets=32 temps=137 ms TTL=51
>ping www.stackoverflow.com
Envoi d'une requête 'ping' sur stackoverflow.com [198.252.206.16] avec 32 octets de données : Réponse de 198.252.206.16 : octets=32 temps=139 ms TTL=51
I think the biggest issue is that the English-speaking world is not gaining internet users as fast as the rest, and won't just due to math. English-speaking countries already have deep penetration rates, so if you want to stay ahead of the curve, you need to look into other areas.
I'm designing a question which needs some special Markdown commands, i.e. smaller images that link to larger images.
Although I prepare the question locally on my PC, it may take some time to finally get it correct, so I'm thinking of creating the question and immediately deleting it. I'd then f...
Introduction
Lately, I've been getting used to typing with Swype.
I've noticed certain words can be produced by drawing a straight line from your starting letter to your ending letter, or by skipping letters that repeat.
For example, I can type the word balloon by Swyping across the following ...
The background
I once owned a license for a program called AutoCollage, developed by Microsoft Research.
The program basically takes a series of pictures, arranges them with nice fading and outputs a larger rectangular picture - a collage. It has some nice features such as face detection.
Unfo...
My hope is that after that I'll have sufficient grasp of JS to write a KotH, but I'm not sure which one to do first (I have a few ideas)
I love the idea of SSKotHs but I also like the idea of KotHs being available in a variety of languages, even if each one is language specific, so I'm trying to decide which of my ideas would be best for a stack snippet, rather than make them all stack snippets
@Calvin'sHobbies Thanks :) Maybe you could pretend that end of this weekend is the deadline to get me moving though ;)
At the moment I'm leaning towards my QotH (Queen of the Hill) as the one I'd most like to see in a stack snippet. It's not sandboxed yet, but it's an ant-based contest with everyone present on a very large arena (if there are too many entries I'll have to exclude the bottom few from the contest but I'd like to see 16 or 20 competing at once)
Each player will start with just a queen, but the queen will be able to produce workers. Each ant can only see the 9 squares around it, and runs as a separate function with no communication with the others (rather than a single bot controlling the whole nest)
It's going to be very low information and no state can be saved, so the ants can only keep track of things by changing the colours of the arena cells
I've got it mostly worked out on paper apart from the number of colours permitted, which I'm guessing will be 8 or 16.
@Geobits I've got it pretty much worked out, but I'm learning JavaScript, so I am determined to post it at some point, but I can't guarantee it will be soon...
@NathanMerrill That's very kind of you, and I have a few KotH ideas so I'd like to try each one in a different language, but I'm very attached to the idea of stack snippets for the ant QotH.
Each answer will contain a function to operate the queen, and a further 4 functions for 4 different worker types. You won't have to use all 4, but that's the maximum number of different worker types available
The queen then decides what worker types to create and when, but once created they do their own thing with no communication unless they do so via the coloured squares of the arena
I'll write up a sandbox post once I'm finished with my BBBF answer