Conversation started Apr 2, 2015 at 18:03.
Apr 2, 2015 18:03
since all groups are worst case 2, you can start with either 2
[4 2] will result in 2
[2 4 2] will result in 2
2
But if you break the tie between groups by selecting a [4 2 4], your heuristic says that you should start with the 4.
This is the best alter of a Magic card I've ever seen. Introducing, Taylor Swiftspear.
hmm
no, the tiebreaker doesn't quite work
I would definitely introduce a bit of preprocessing to make the problem a bit more uniform
since you can't target either end, I'd always use x/M moves on the 2nd and n-1th element
wait, you can't target an end?
nope
says so in the problem you l inked
Apr 2, 2015 18:12
ah, you are right
then maybe you can do some sort of left-to-right algorithm
regardless, you can still end up with the same situation
yeah
since if you have x elements
the leftmost element must either be cleared by targetting it directly or the element to the right of it
(and ofc combinations of the two)
order of operations doesn't matter at all
[0 0 5 2 5 0 0] N = 5 M = 2
yeah I know, the tiebreaker doesn't work :P
Apr 2, 2015 18:15
that's not even a tiebreaker
2
actually, there it does work
the element with the maximum number of moves is the center one, which is the wrong one to pick
2
[0 5 2] has a worst case of 1
2
err
2
right
2
nvm that algorithm all together
2
This guy has ruined Christmas movies for me forever: worldbuilding.stackexchange.com/q/13495
2
Guys, Code Review has 21768 starred messages. We have 2306.
2
unacceptable
2
Apr 2, 2015 18:22
what game you talk about? I can't find out
You think that's bad? Take a look at CR's chat right now. I linked it above.
Their starwall is like three times as tall
2
Apr 2, 2015 18:24
thanks, checking...
their chat had some missing spots, so I had to fill them
2
> You have fully used your vote allowance for today
@Hosch250 time to bring out the sockpuppet
@orlp I don't have one.
@Rainbolt StarredMessages += 40;
Apr 2, 2015 18:41
All of you who want to play StackEggs for fun vote on this proposal: meta.codereview.stackexchange.com/a/5175/36427
I leave for 40 minutes and you guys trash the place. I'm calling all your parents.
13
 
Conversation ended Apr 2, 2015 at 18:41.