Slashdot Mirror


2006 ACM Programming Contest Complete

prostoalex writes "World finals for 2006 ACM programming contest took place in San Antonio, TX this year, and the results are in. Russia's Saratov State University solved 5 contest problems in record time, followed closely by Altai State Technical University (Russia) with 5 problems solved as well. University of Twente (Netherlands), Shanghai Jiao Tong University (China), Warsaw University (Poland), St. Petersburg State University (Russia), Massachusetts Institute of Technology (USA), Moscow State University (Russia), University of Waterloo (Canada) and Jagiellonian University - Krakow (Poland) all completed 4 problems."

35 of 180 comments (clear)

  1. GO USA!!!!!!! by Anonymous Coward · · Score: 4, Funny

    Woohoooooooo! Wait a minute...

    1. Re:GO USA!!!!!!! by Tekzel · · Score: 3, Interesting

      Whoa, I can't believe you had the nerve to say that stuff. Didn't you know its currently the height of fashion to hate the USA? Guaranteed to get you modded down.

  2. In retaliation by Snarfangel · · Score: 4, Funny

    ...MIT stole Saratov State University's cannon.

    --
    This tagline is copyrighted material. Please send $10 for an affordable replacement.
  3. Not final scores... by qbproger · · Score: 5, Interesting

    As someone who has their school at the competition, and I'm on the programming team (though my team didn't make it this year). Those are the scores as of one hour left in the competition.

    They don't update the scores during the last hour to keep suspence for the awards ceremony. So this isn't really news at all, and the post is going to be meaningless as soon as they update the standings. I'm expecting them to be posted soon though as I think the awards ceremony ended recently.

    --

    - Joe
  4. One Question & A Short Rant by hyfe · · Score: 4, Interesting
    1. Anybody managed to find the actual test questions?
    It's always interesting to see how advanced these are. Most of the time, I'm really not impressed by the complexity of the assignments, although the optimalization work done by the teams can be pretty 'way-better-than-anything-I-could-ever-do".

    2. If you ever see Russian State Universities at the top of anything, be very, very cautious. I studied at MGU (Moscow State University) for a little while, and it was frankly appaling. They were taught extremely specific skillsets, they knew exactly what they would be tested in in advance of tests and didn't study *anything* else. It was like a game of 'getting through Uni without learning *anything*' which outranked anything I've ever seen back home (or heard of in the US). The methology probably lends itself well to predefined, known tests, but it produces practically useless students.

    (To be fair, here back home, the ones who really learn something are the ones with a real interest in the subject, and they learn most of it outside class. There were really bright people at MGU too. It was the mindnumbingly staggering uselessness of the average student there which amazed me. It was supposed to be a "Top University".. oh, and you had to bring your own toiletpaper if you wanted to take a dump :)

    --
    "" How about taking the safety labels off everything, and let the stupidity-problem solve itself? """
    1. Re:One Question & A Short Rant by Hyram+Graff · · Score: 3, Informative
      1. Anybody managed to find the actual test questions?

      It looks like you will be able to get them in pdf from from the contest website. (As of the time of this posting, the link hasn't gone live.)

      --
      0*0
      00*
      ***
    2. Re:One Question & A Short Rant by arrrrg · · Score: 4, Interesting

      It's always interesting to see how advanced these are. Most of the time, I'm really not impressed by the complexity of the assignments, although the optimalization work done by the teams can be pretty 'way-better-than-anything-I-could-ever-do".

      You must be talking about another contest, on crack, or a super-genius (I won't hazard a guess as to which). I was on the Berkeley ACM team this year, and the International-level problems are HARD ... unless by "complexity" you mean the difficulty of writing a guess-and-check "solution" (which will be exponentially too slow). Usually, coming up with an algorithm with good asymptotic time complexity is the focus, and is very difficult. Almost all of them are not ones you can look at and just say "oh, that's max flow", etc, unlike some of the regional contest problems. And, from my experience at least, optimization is not that important at all. If you get the right algorithm, the problems can typically be solved in well under the time limit without doing anything fancy. If you do the naive thing, no amount of constant-factor optimization will allow the thing to finish before the universe ends. Just my $.02 ... don't take my word for it though, look at last year's problems and see what you think: http://cii-judge.baylor.edu/

    3. Re:One Question & A Short Rant by jbf · · Score: 5, Informative

      As a member of the second place team in world finals many moons ago, I have to disagree. I think the problems are actually quite simple algorithmically, and that the hard part is quickly writing working code for semicomplicated problems (including input parsing) with only one computer shared three ways.

    4. Re:One Question & A Short Rant by feijai · · Score: 2, Interesting
      If you ever see Russian State Universities at the top of anything, be very, very cautious. I studied at MGU (Moscow State University) for a little while, and it was frankly appaling. They were taught extremely specific skillsets, they knew exactly what they would be tested in in advance of tests and didn't study *anything* else.

      This is a highly spot-on comment. The problem ACM is now discovering, I suspect, is that in certain countries students at certain universities will work all year to compete in the programming contest, at the expense of all else. And in other (european) countries, the educational system is set up to strongly emphasize the major over breadth, producing students good at a certain vocational task -- computer algorithms, say -- but with no ability in things American students would find basic. The US educational system has a much heavier emphasis on breadth, under the presumption that education should teach you to be the Everyman, not just the Cog.

      It's not at all surprising that the US doesn't perform well in the contest except in its best schools. Comparing the US against Poland only says that Polish students will study nothing but computer science, and settle on this concentration at a fairly early age compared to US students. Comparing the US against China and Moscow realy just says that certain Chinese and Russian universities have entire programs that do nothing but ACM programming contest work in order to get their names on the map.

      This is a problem of how we're spreading the fertilizer. Maybe we should revisit what the ACM contest should be measuring: or its validity in the first place. Imagine a contest that requires students to put together code which does models in several different fields -- everything from economics to the arts -- and you don't know what the fields are beforehand. We'll see Moscow dropping off the ACM map real fast.

    5. Re:One Question & A Short Rant by BMazurek · · Score: 3, Funny

      I studied at MGU (Moscow State University) for a little while\

      As a geek that moved to Moscow recently...were you ever able to find a bookstore that sold computer books in English?

      Please!?

    6. Re:One Question & A Short Rant by hyfe · · Score: 2, Informative

      The large Dom Knigi on Novy Arbat, (right next to the Norwegian Embassy if you have a tourist guide, I might be mistaking the streetname), had the largest selection of English book I could find. Never checked out computer books though.

      --
      "" How about taking the safety labels off everything, and let the stupidity-problem solve itself? """
    7. Re:One Question & A Short Rant by ovz_kir · · Score: 2, Interesting

      "Dom tehnicheskoy knigi" ("Tech book house") on Leninskiy prospect, 40, should have a lot of CS books in English.

      --
      -- Kir Kolyshkin, OpenVZ project leader.
    8. Re:One Question & A Short Rant by kyb · · Score: 2, Informative
      In all the contests I did, the most difficult thing wasn't actually solving the problems, it was solving the problems so they were right first time, in the fastest time possible, when you only had control of a single computer, keyboard and mouse between 6 of you trying the same thing. No matter how l33t you are, you probably have difficulty writing a reasonably complex program so it's right first time. I know lots of fantastic programmers who couldn't write code that compiles without their IDE, so paper and pencil is going to be a challenge for them. You may have a simple problem, but the real skill is how long it takes you at the keyboard to have a working solution that will solve the pathological cases that you haven't seen yet. If it takes you a long time, you'll hold your other team members up so even if you get your one question perfect it may have been a pyhric victory. Oh yeah, and you can't concentrate either when you're in a mad rush coding at the machine, because people keep coming up to you trying to get control of the computer for their problem, and the slightest sign of weakness, that you're not going to get it done or that you're going to take longer than you thought, and they'll take it off you for their problem.

      If you want to try this at home, take a pencil and few sheets of paper, give yourself 40 minutes. Now give yourself strictly 10 minutes at the keyboard (but try to be done in 5), and submit your first result.

      That's the thing, there is a large resource management aspect to many of these competitions. And don't underestimate the difference between coding at home at your own pace, with the ability to test your code the whole time and coding in a competitive environment at top speed with very limited keyboard time. It's like the difference between composing a little tune in front of your instrument or writing a symphony which you only get to hear once at the public performance.

  5. I need a piece of software in 10 minutes?!?!? by shadowen1977 · · Score: 5, Insightful

    I like this quote from the story.... "When was the last time you heard someone say 'I need a piece of software in 10 minutes?" Ask my boss.... He needs it in 5.

  6. Re:Ugh not again... by ageforce_ · · Score: 2, Interesting

    You should have a look at the ICFP contest then: http://icfpcontest.org/.
    No prefabricated problems.
    More time to do the job.
    Any programming language.
    ...

  7. Re:Ugh not again... by Tammuz · · Score: 5, Insightful

    It's generally unfair to judge ACM teams by the polish of their answers, since the only criteria is to solve the problem in minimum time. Similarly, problems are chosen with the time-constraint in mind, not out of any attempt to further science. If you want that, try the MCM.

    What's impressive about the winning solutions is that they went from having nothing to implementing a working program from scratch, under stress in only a few minutes. While that is arguably not applicable to being a programmer in real-life, just as being an Olympic sprinter doesn't prepare you for any particular job, it is certainly a commendable intellectual achievement.

  8. Re:Ugh not again... by Expert+Determination · · Score: 4, Insightful
    It's no *programming* contest at all. It's much more like an algorithm-solving+text formatting race. They don't test your REAL programming skills - your ability to create your own programming libraries, the organization of your source code, the maintainability, etc.
    Oh please! That's like saying the Olympics aren't a real contest because they only test the prowess of athletes, not their ability to tidy up the locker room after use, their politeness towards other clients at the gym or how nice their outfits look on TV.
    --
    "The White House is not an intelligence-gathering agency," -- Scott McClellan, Whitehouse spokesman.
  9. Online ACM problems by BinaryOpty · · Score: 4, Informative

    For those who want to know more about this contest in the form of actually attempting ACM questions, then I suggest heading over to their problemset archive which not only has ACM stuff from the last 5 years but a large number of non-ACM programming problems in the same vein. You can sign up with them and have your solutions to their problems checked for correctness.

    Since the website's a design massacre, to get to the ACM problems you need to click on the link marked THE CII ICPC LIVE ARCHIVE !!! in the news bar, or just click on that one right there.

  10. Re:Ugh not again... by schnitzi · · Score: 3, Insightful

    Your rant sounds like an angry ex post facto rationalization for losing.

    I've spent many years involved in ACM programming contests, as a competitor, coach, and judge. And let me tell you, every team that considers it a hacking contest, and treats it like a hacking contest, LOSES. The teams that write well organized code, with simple straightforward solutions, win the day every time.

    I'm not surprised you did poorly.

    BTW, of course they compare output files. Would you really expect the judges to give an aesthetic judgment of each program in a five hour contest? "9.8 from the Russian judge..."

    --



    I object to that article, and to the next reply.
  11. Re:Ugh not again... by GlassHeart · · Score: 3, Insightful
    That's like saying the Olympics aren't a real contest because they only test the prowess of athletes, not their ability to tidy up the locker room after use, their politeness towards other clients at the gym or how nice their outfits look on TV.

    No, that's like saying the Olympics isn't a real contest of athletics because you're only testing how fast they can run 100 meters. The results don't show who was fastest at 10 meters, 50 meters, or who would be fastest at 150 or 1,000 meters. Recognizing this shortcoming, the Decathlon adds up the scores from multiple events to find the best all-around track and field athlete.

    A programming contest is the equivalent of a single track and field event. There's nothing wrong with that, but we have to be careful what conclusions we draw from its results.

  12. And conversely... by Expert+Determination · · Score: 4, Insightful
    ...I've spent too much time in companies where people write nice, neat, tidy, well documented and easy to maintain code, but nobody actually knows how to do anything other than plumb one API into another. Every so often I'd come across a tool that someone had written that actually did something and I'd be bemused. How the hell did this lot write that? And I'd dig down through the source code and eventually find that under the mountain of wrappers and delegators and empty architecture there was actually a nugget, like V'ger, that did real work. And someone would explain to me "that's the code that Joe wrote years ago, he left and now we daren't touch that stuff, we just maintain the wrappers".

    The truth is that you need both kind of people in software companies. And the other truth is that the people who write the nuggets do interesting work that is worthy of displaying publicly in a contest. And the rest do work that isn't.

    Having said that, plumbing competitions aren't completely unheard of.

    --
    "The White House is not an intelligence-gathering agency," -- Scott McClellan, Whitehouse spokesman.
  13. Waterloo! by mrtroy · · Score: 5, Funny

    Here is a picture of our library taken during this exam period

    Library
     

    --
    [I can picture a world without war, without hate. I can picture us attacking that world, because they'd never expect it]
  14. I remember it well... by crunchly · · Score: 2, Interesting

    I remember my only entrance into the ACM programming contest. It was the first round of competition. We felt pretty good going in (calling ourselves team "Kwik Fill" after the gas station we stopped at along the way). We were the cream of the crop of the state school we attended.

    The first bump in the road was the compiler on the VAX. "Couldn't it have been a Sparc, or at least a Mac?", I thought, as we spent the first hour of the competition trying to understand how to get the compiler to work. You might ask why we spent the first hour on the system and not working out algorithms to address the problems. To that, I answer: Have you seen those problems?

    By now, the Dew buzz was wearing off. We almost got two programs working and took several pictures of us pretending to toss the VT220 terminal out the window before time expired.

    All in all, it was a good performance. IIRC, we tied for 4th, as one team scored 4 points, two scored 3 points, one scored 2 and we were tied with the other eight teams with 1/2 point.

    After that, I started focusing on networks. Ah, the good old days.

  15. Re:Ugh not again... by Anonymous Coward · · Score: 2, Insightful

    What you're missing is how hard the problems are, hard as in "math" not as in "complicated, annoying specs". Time is only used as a tiebreaker, how many problems you solve is what matters most. In fact most teams spend much longer wasting terminal time on flawed algorithms than they do typing up problems they have solved - in other words, if you know how to do a problem, there is plenty of time to implement it. (Teams that know how to solve lots of problems might run into time issues, but this rarely affects more than 1 problem, so these teams are going to be at the top anyway). If it's all about speed, how can you explain the 30+ teams that only got 1 problem, despite being composed three of the top individuals from one of the best schools in some geographical region as determined by a preliminary round of this same type of contest, when most winning teams got the same problem in 1 attempt approximately 25 minutes after the contest started? What you're arguing is like saying that "the International Mathematics Olympiad only tests peoples' equation-writing speed" - maybe a few of the top few contestants will have to fill an entire notebook in 6 hours, but it's actually figuring out how to do the problems that is the real challenge.

  16. Actual results by insaneparadox · · Score: 5, Informative

    As noted previously, the mentioned scores were from an hour before the contest's end. My sources give the actual, final medal results as the following:

    1. Saratov State University (Russia) - 6 problems
    2. Jagiellonian University - Krakow (Poland) - 6 problems
    3. Altai State Technical University (Russia) - 5 problems
    4. University of Twente (Netherlands) - 5 problems
    5. Shanghai Jiao Tong University (China) - 5 problems
    6. St. Petersburg State University (Russia) - 5 problems
    7. Warsaw University (Poland) - 5 problems
    8. Massachusetts Institute of Technology (USA) - 5 problems
    9. Moscow State University (Russia) - 5 problems
    10. Ufa State Technical University (Russia) - 5 problems
    11. University of Alberta (Canada) - 4 problems
    12. University of Waterloo (Canada) - 4 problems

    Four teams each received gold, silver, and bronze (in the above order). For the same number of problems, the order is based on penalty minutes.

    1. Re:Actual results by gvc · · Score: 2, Informative

      Newswires are wrong. I have the printed standings in front of me.

      The top 4 (Saratov, Jagiellonian, Altai, Twente) got gold, the
      next 4 silver, the next 4 bronze.

      Gordon Cormack
      Coach, Waterloo

      P.S. Please do lobby ICPC to be more spectator-friendly.
      Although they seem to care about the profile of the
      contest, they seem indifferent to advertising
      and reporting on-line results. They refused to disclose
      a scoreboard link in advance; the actual contest time
      was not well advertised; even after the start of the
      contest they had "2006 World Champions" as a label
      on last year's results; the *real* scoreboard link
      was posted nearly an hour after the start; the start
      and finish times were never posted; the scoreboard
      was frozen with no indication. Detailed results are
      *never* posted and summary results still aren't there
      more than 15 hours after the awards ceremony.

  17. Re:Ugh not again... by KiloByte · · Score: 2

    It is a hacking contest to quite some extent. Unlike most programming contests I've taken part in, coding skills have far more importance than the ability to come with the best algorithm in O(n) sense.

    An example: in my time (1998), we didn't whack our teammate upside the head for doing one of the tasks the real way instead of just going for the naive algorithm. The naive one was O(n^3), the optimal one -- O(n), but max n was... 100. In our national competitions and on most exams done by folks from our faculty, tasks and tests are carefully designed to give few if any points to optimized but asymptotically slow code; on the ACM contest we simply didn't realize the bias is different. Just a knee-jerk reaction; we assumed that if n is so small, the time limits will be in the range of milliseconds.

    And either doing that task the naive way or shaving like 30 seconds from the time wasted by that teammate would get us 1st place instead of 9th. Blargh :p

    --
    The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
  18. Re:bias article by middlemen · · Score: 3, Funny

    For many, it's like any sporting event -- just with lines of computer code instead of balls

    Was this sporting event in prison!? Lines of balls ... vivid!

  19. Re:Ugh not again... by wcbarksdale · · Score: 2, Interesting
    Speed is probably the most visible aspect of ACM programming contests, but really correctness is the most important criterion. The scoring system gives you 0 points for something that passes 95% of the tests, and the feedback is not much more informative than yes/no.

    My own experience is three years of regional contests and two at Worlds. The usual allowed languages are C++ and Java.

    In the first year I wrote essentially in the C subset, although I did sometimes make declarations in the middle of a block. If I needed to keep a couple hundred ints around, I would have int x[1000]; usually at global scope, and I often had a 500 line main function with a few occasional gotos.

    During the second year I started modularizing into shorter functions and also making some use of STL containers like vector and map. My code was not particularly object-oriented though.

    In the third year I switched to Java even though hello world and input/output formatting are substantially more verbose than in C. (We usually had 1.3 or 1.4, so no printf.) The time efficiency of an ArrayIndexOutOfBoundsException compared to what C++ would usually give you was worth it.

    Over the years, as I tried to increase my own productivity, my code became more organized and readable. It wasn't a process consciously directed towards good software engineering.

    (My code was rarely very OO, however. For a small, one-person project that doesn't talk to other systems I doubt it's much of a performance gain.)

  20. Appaling by melted · · Score: 3, Interesting

    Yeah, dude, I know why it was "appaling". Because you couldn't handle studying there, that's why. Compared to education in the US, the situation in Russian higher education is completely the opposite of what you've described. Folks are being taught extremely broadly, perhaps with too little attention paid to practical applications of what is taught at times. And you can't narrow down the scope of your education because you _can't_ choose classes. You fucking WILL learn linear algebra, physics, differential calculus, discrete mathematics, etc., whether you like it or not.

    It is expected of students to be able to figure out practical applications on their own. MGU in particular is one of the most hardcore Russian schools that is easily on par with _any_ Western college or university for which here in the US you'd be paying _through the nose_. MGU seems to be specifically designed to produce scientists and researchers, not engineers, though. MIFI, MAI, MSTU and NGU on the other hand focus on generating engineers that get shit done. The reason being, they produce most of Russia's engineers who work on weapons and high tech.

  21. Experience with incompetent judges... by LoveMe2Times · · Score: 3, Interesting

    I am still angry to this day. The "judges" had the wrong answer to one of the problems. Of course, it was the problem that I took for my group. I had it right the first time, within a few minutes. Submit, wrong, time penalty. Hmmm... futz with it a little, submit, wrong, penalty, repeat. In the end, my team came in like third or fourth, due to these penalties. Turns out, the teams that came in ahead of us hadn't even submitted any answers for that problem. Of course, nobody in the competition got it right, and only one other team submitted an answer, I think. What *really* pissed me off, though, is that our fucking school administrators refused to take up the fight on our behalf to have the results changed. If we had hadn't had the penalties, I think we would have been 2nd, and if we'd been credited for the correct answer, we would have come in first. Either way, we would've gone to the next round or whatever. I don't know if this was standard everywhere or not, but they passed out the "official" answers when it was over, so we discovered how we'd been cheated on the way home, and it was trivial to verify that their answer was wrong.

    However, I must agree with some of the other posters: it's not so much a programming competition. It's more of an algorithms and standard library memorization competition. I seem to recall that knowing *all* the ins and outs of the printf family of functions was pretty important. Looking at the site now, it looks like they provide docs for the standard libraries, I don't think this was the case where I went. Anyway, it's important that you know that Java has a regular expression parser as part of the std lib (and therefore usable in the contest) while C++ doesn't. In real life, if you need a regular expression parser, you go get one. Additionally, looking at last years problems, for example, one of them is a straightforward application of a shortest-path algorithm. Do I remember the inner workings of the common graph algorithms? No, I don't use them very often. But I have my reference book handy if I need it. 99% of the time, I'll just use boost::graph. That problem could be solved quite trivially in 20 minutes with boost::graph. If you want to test my knowledge of graph algorithms, that's fine. My algorithms textbook has many exercises which do just that. Just don't call it a programming test. Everything in my algo class was pen and paper. In fact, if you're a real progammer, and you didn't use boost::graph (or something similar) to solve that problem, you deserve to be fired. Writing your own from scratch is a horrible waste of time and a maintenance nightmare. In fact, the boost libraries probably trivialize a number of ACM problems, what with graph libraries, matrix libraries, parsing frameworks, regular expressions, state machines, and so forth. A programming contest would force you to use these well, not re-write them.

  22. Re:Ugh not again... by Ruie · · Score: 2
    Umm. the contest is about computer science so algorithm solving ability is exactly what needs to be tested, not how pretty your commenting is.

  23. Sore Losers, really sore losers by theolein · · Score: 2, Interesting

    I am not surprised but still kind of irritated that almost all of the comments here revolve around either rationalising away the fact that no american team was at the top or being directly insulting of foreign universities.

    You americans are a bunch of wet nappies. You take a fucking programming and problem solving contest personally even though none of you were actually there. Not only that but you take it personally on a national level, as if your patriotic pride were somehow damaged because of this.

    America is a country that has lots of strengths, such as competitiveness, but also lots of weaknesses. such as an almost total inability to lose with grace.

    Maybe it's a good thing that (you americans)(sic) lost this competition.

  24. 10 minutes!! by alex789 · · Score: 2, Funny
    "When was the last time you heard someone say 'I need a piece of software in 10 minutes?" said Bill Poucher...
    When was the last time you saw Chloe O'Brien on 24?
    --
    http://flosspick.org finding the right open sour
  25. American Teams Get No Support by Anonymous Coward · · Score: 2, Informative
    I work for the contest.

    The reason American teams will probably never win is because American universities give their teams little to no support. The coach for Georgia Tech was an alumn that works in Atlanta, because no profs will do it. Any tenure track proffesor at a major CS school in America that takes time to coach a contest will not get tenure.

    Contrast this to the Chinese team that won last year. The Chinese government bought the coach an SUV, in a country where most people don't have cars. Americans just don't care.

    Oh, BTW, it was the 30th annual contest, not the 29th.