Slashdot Mirror


Tetris Is Hard: NP-Hard

bughunter writes "Analysts at MIT Laboratory for Computer Science, who have been busy translating, rotating and dropping, have demonstrated what the rest of us suspected: Tetris is hard. Technically, it's 'NP-hard,' meaning that there is no efficient way to calculate the necessary moves to "win," even if you know in advance the complete order of pieces, and are given all the time you need to make each move. At least there's one geek classic that refuses to fall to the scrutiny of mathematicians."

39 of 343 comments (clear)

  1. Tetris is NP-hard! by DeadMoose · · Score: 5, Funny

    Yeah, that's it; I'm not bad at it, it's just too hard. Just like, um, most every other video game I've played...

  2. Are you goofing off playing tetris... by aero6dof · · Score: 5, Funny

    No, I'm empirically testing some NP theories...

  3. They used math to figure this out? by Uhh_Duh · · Score: 5, Funny


    I don't get it. They used math to figure out that tetris is hard, but math is hard too. :(

    --
    -- People who hate Windows use Linux. People who love UNIX use BSD.
    1. Re:They used math to figure this out? by the.jedi · · Score: 5, Funny

      Yeah well we mit people are crazy like that.
      Instead of studing for my Linear Algebra exam,
      I've been busy proving tecmobowl is NP-Fun!

      --
      ThunderBird. Nuff said.
    2. Re:They used math to figure this out? by Anonymous Coward · · Score: 1, Funny

      Sounds like a talking Barbie:

      "Math is hard!"

      "Pink is pretty!"

      "Ken is hard, and I am easy!"

  4. Hey... by bluemilker · · Score: 5, Funny

    those guys are dumb. Everyone knows you just leave a single block wide path in the center... you're _sure_ to get a 4-long column before you hit the... ARGH! ... this would be so much easier if I had a version of tetris that told me all the pieces in advance, like theirs does...

  5. In Other News by GroovBird · · Score: 5, Funny

    Ron Rivest of RSA Security (NASDAQ: RSAS) announced that are releasing a new assymetric encryption algorithm based on Tetris. Since Tetris has been under the scrutiny of millions of people, experts say that it is much more secure than current outdated algorithms such as RSA and Elliptic Curve. This will bring a new era in computer security, Ron says.

  6. The only way to win at Tetris... by gpinzone · · Score: 5, Funny

    Is to prove the P = NP challenge. I think I'll play Quake 3 instead.

    1. Re:The only way to win at Tetris... by SpaceLifeForm · · Score: 5, Funny

      ...is not to play.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
  7. Further studies... by Ravenn · · Score: 2, Funny

    Next we'll see occultists studying Pacman.

    Then NASA will use Moon Buggy as a simulator for the next Mars mission.

    And eventually the Army will use Quake to train... ummm... too late on that one. Hey, at least they build their own!

    Ravenn

    --
    Of all the things you can accomplish by screwing up your face and swearing into a dark room, sleep is not one of them.
  8. It's not that Tetris is HARD... by Steve+Cowan · · Score: 5, Funny

    Mathematicians simply can't concentrate on the movement of the pieces, even given all the time they need, because it's too easy to get distracted by that wacky Russian folk music.

  9. I always sucked at tetris... by Cyno01 · · Score: 4, Funny

    the game would be a whole lot easier if every piece was only one block instead of four, but then i guess they'd have to call it monris or something

    --
    "Sic Semper Tyrannosaurus Rex."
  10. So that's why... by Ghoser777 · · Score: 3, Funny
    there's a security bug in kadmind4, as mentioned in the previous slashdot story! Instead of focusing on checking for buffer overflow errors, they were busy playing Tetris ;)

    [self duck];

    F-bacher

    --
    James Tiberius Kirk: "Spock, the women on your planet are logical. No other planet in the galaxy can make that claim."
  11. I wonder... by SparkyTWP · · Score: 2, Funny

    I wonder if the computer got the rocket ship to launch. I only managed to do it once when I was young.

  12. Brain Strain in the Ukraine by vaguelyamused · · Score: 1, Funny

    Tetris match of the century Kasparov vs. Deep Blue!! I think Gary can take him this time.

    --
    STOP ROCK VIDEO
  13. man... that is so not fair by lingqi · · Score: 4, Funny

    What the heck huh, I goto a "less glorified school" compared to MIT, and study / do research in semiconductor electron migrations, efficiency in cryptograhy systems, implementation of computer based voice and image recognition.

    MIT kids do research in TETRIS.

    wtf? tell me again why MIT is one of the best engineering school again?

    oh wait... i just got it.

    --

    My life in the land of the rising sun.

  14. I was doing home-work the whole time. by DougJohnson · · Score: 3, Funny
    Now I can get my Computer Science Theory mark reviewed under the grounds that I put hours of research into attempting to find a solution to an NP Hard problem.

    You'd be amazed at some of the Heuristics you have to use at Level 10!

  15. Re:Hrm. by Anonymous Coward · · Score: 3, Funny

    Are there any other NP-hard games which were invented by dead Russians?

    Can't you be satisfied with one? I mean do you have any idea how hard it is to get dead Russions to invent anything?

  16. My theory by Jugalator · · Score: 5, Funny

    Tetris wouldn't be NP-hard if it just released that damn 1x4 brick when you need it!

    --
    Beware: In C++, your friends can see your privates!
    1. Re:My theory by Jugalator · · Score: 3, Funny

      Hehe... Yeah, I'm personally convinced that Tetris and all its clones have a highly sophisticated masochistic AI.

      --
      Beware: In C++, your friends can see your privates!
  17. Re:ending of tetris by silvaran · · Score: 3, Funny

    Your mother could beat you at Tetris? Boy, were you in the wrong generation.

  18. Re:and yet by Anonymous Coward · · Score: 1, Funny

    "Only one cure for cancer in nearly 6 years!"

  19. Re:Online Tetris tournaments by Cheese+Cracker · · Score: 3, Funny

    "If you are good at tetris you can play online tournaments at Worldwinner.com [worldwinner.com] against an or some opponents.

    The nice part: you bet real money. If you are somewhat good you can make some cash."


    Maybe the MIT dudes should have known about this...
    They could have made their Tetris simulator pay for
    their research project and more.

  20. Re:the second I read the article by Jugalator · · Score: 3, Funny

    I'm sure creating that infectious tune wasn't NP-hard.

    No, but, from own experiences, it's an NP-hard problem to get it out of your head once you've heard it, so please don't give me a link to where it can be downloaded. :-)

    --
    Beware: In C++, your friends can see your privates!
  21. Re:ending of tetris by feceus · · Score: 2, Funny

    I believe the game you're referring to is Blockout.

    My father brought it home from work one day, and I played it for the next few months. Took me a while to finally see the 3D blocks. =\

    It's scary watching Tetris blocks fill up to the screen TOWARDS you. :O

  22. A good new view into women... by Ektanoor · · Score: 4, Funny

    Some have noted that women have always had a peculiar taste to play Tetris. It is interesting to note that the most fanatic players are usually women... Well, I am completely of a different mind and always considered this game as too boring. I wondered how could people play such thing for long hours. No more. I consider the game an excellent testing system. The next time I see a girl dealing with NP-hard algorithms and crying she can't hold up, I'll play the dirty trick:

    New fresh roast student - "Excuse me, but this task it's too hard for me. It deals with a NP-hard task and I don't have the brains for it... Couldn't you give a more simple task for me?.."

    Me - "Well go and play some Tetris while I think how we can ease your work..."

    After a few hours - "Well what's the score? And you say NP-hard algorithms are too hard for you? You trying to solve a NP-hard algorithm for more than an hour! Cool, go and try to do the same with that task you don't have brains for..."

    1. Re:A good new view into women... by tswinzig · · Score: 5, Funny

      The next time I see a girl dealing with NP-hard algorithms and crying she can't hold up, I'll play the dirty trick...

      And here I thought the rest of your story would involve the use of the pickup line, "Hey baby, wanna play with something that is very NP-Hard?!"

      --

      "And like that ... he's gone."
  23. Tetris is very easy on a Hercules - I should know by delphi125 · · Score: 3, Funny
    A long time ago, Tetris for the PC printed different coloured spaces for the blocks. Unfortunately, a Hercules monochrome card pretending to be able to deal with colour would display them all the same. So I could see the score etc, but not the pieces themselves. Since that would be a little too hard, I wrote a TSR which hooked into INT 10 which would change spaces to other characters. This depended on the colour, so for example the Blue 2x2 would print as 4 'O's.

    How can this be easy, you ask? Well, I put a delay in there too, it was adjustable from the command line of the TSR. When my score went past -32768 at the highest level, I decided enough was enough, and I didn't play Tetris for many years after.

  24. Re:Hrm. by 6Yankee · · Score: 5, Funny

    Are there any other NP-hard games which were invented by dead Russians?

    Is Russian Roulette NP-hard?

  25. NP-Hard? by chickenmonger · · Score: 2, Funny

    Is it just me, or did somebody else think of NP-transistors when they read "NP-Hard"?
    (Zap! Kapow! Kersplat!)

    ....I think my geek factor just increased by 1 x 10^2...ouch...

  26. Look, I know they're from MIT and all... by MattRog · · Score: 5, Funny

    but that doesn't give them the right to flat-out make up words. "Inapproximability" indeed!

    --

    Thanks,
    --
    Matt
    1. Re:Look, I know they're from MIT and all... by mrsmalkav · · Score: 2, Funny

      That's a perfectly cromulent word. How dare you challenge MIT analysts.

  27. Re:Tetiris / Eyeball RSI Warning by isorox · · Score: 5, Funny

    Just a warning. I still play it on and off.

    Thanks, if I ever meet you I'll be sure not to be freaked out

  28. Re:Tetiris / Eyeball RSI Warning by machine+of+god · · Score: 1, Funny

    I can quit any time I want to.

  29. Kirby's Avalanche by Anonymous+Custard · · Score: 2, Funny

    I played tetris lightly, but never owned it or played too much. Although, it (and some other games) a few times had me dreaming about playing (like, literally had me arranging blocks in a dream).

    However, when I was about 14, I played a match of Kirby's avalanche against my friend's au pair (mom was divorced and he had a little bro). We had been lpaying all summer, so we were pretty good, but this match lasted well over an hour. The game speed got ridiculous, where the pieces seemed to fall as fast as the graphics processor could display them :-) We even had to take bathroom breaks. We were just so into the game that we were TOTALLY in the kirby zone. Kind of like when you're typing and you just hit exactly the right keys more quickly than usual, we were just placing the globs so perfectly and makin so many pumpkin combos :-)

    Ahhhhh, those were the days!

  30. Re:Poll by Limynali · · Score: 5, Funny

    Last weekend I was priviliged enough to hear Alexey Pajitnov, the creator of Tetris, give a talk on how he came up with tetris, the design process of games, etc... The best part was at the end somene asked him about the dificulty of Tetris and he replied that even though he knew that each piece had the same probabilty (because he coded it) there must be some little guy inside the computer purposefully giving him the 'wrong' pieces and witholding the one he needed, "that Son-of-a-bitch!" (yes, he actually said that)

    It's reasurring to know that even HE thinks it's rigged.

  31. Re:Tetiris / Eyeball RSI Warning by tswinzig · · Score: 2, Funny

    I diagnosed the problem myself and quit playing, but it took a few months to clear up.

    Just a warning. I still play it on and off.


    It's probably more fun when it's on, right?

    --

    "And like that ... he's gone."
  32. But this doesn't explain why... by diogenes57 · · Score: 2, Funny

    It's so hard to win on Tetrinet. I always thought the winners cheated using bots, but now this tells me that isn't possible.

  33. 128-bit Tetris encryption by c64cryptoboy · · Score: 4, Funny

    Now that we know it's NP hard, lets see if anyone can come up with a Tetris-based encryption scheme. Lets see, with just one shape (7 tetrominoes with rotations) there are 19 possibilities, so that's at least 4 bits of entropy right there.
    This could make the Bovine distributed cracking clients a lot more fun to watch.

    --
    I put the 'fun' in fundamentalism