ACM Programming Contest Results
An anonymous submitter writes: "Shanghai Jiao Tong University has won the 2002 ACM International Collegiate Programming Contest with six of nine problems solved. Also solving six problems were MIT (2nd), University of Waterloo (3rd), Tsinghua University (4th), and Stanford University (5th). You can view the problems online, as well as the final standings. Congratulations to all!"
Oh God, LOL. I love free software.
Your browser may not be able to handle this, and may produce an error message, or worse yet, it may display a blank screen. It gets worse...some browsers may show garbled text!!!!
You have been warned. I think this should be used as a standard disclaimer before every PDF link?
The following lines left intentionally blank
Thats the sound of those questions flying past way above my head...
Here are the final standings. Note how close Waterloo came to coming in at second place! (Note that only the first few items has penalty numbers attached to them)
Rank | Name | Solved | Penalty
1 Shanghai JiaoTong University 6 | 831
2 Massachusetts Institute of Technology 6 | 972
3 University of Waterloo 6 | 974
4 Tsinghua University 6 | 1186
5 Stanford University 6 | 1264
6 Saratov State University 5 | 532
7 Fudan University 5 | 678
8 Duke University 5 | 808
9 Moscow State University 5 | 856
10 Universidad de Buenos Aires 5 | 894
11 Charles University Prague 5
11 Royal Institute of Technology 5
11 Seoul National University 5
11 St Petersburg Institute of Fine Mechanics and Optics 5
11 University of New South Wales 5
11 University of Wisconsin - Madison 5
11 Warsaw University 5
18 Albert Einstein University Ulm 4
18 Belarusian State University 4
18 Novosibirsk State University 4
18 Petrozavodsk State University 4
18 POLITEHNICA University of Bucharest 4
18 Sharif University of Technology 4
18 The University of Tokyo 4
18 University of Oldenburg 4
18 University of Toronto 4
27 California Institute of Technology 3
27 Cornell University 3
27 Orel State Technical University 3
27 Queen's University 3
27 Sofia University 3
27 The Chinese University of Hong Kong 3
27 The University of Chicago 3
27 University of Calgary 3
27 University of California, San Diego 3
27 University of Central Florida 3
27 University of Otago 3
27 University of Texas at Austin 3
27 University of the Witwatersrand, Johannesburg 3
27 Virginia Tech 3
Honorable Mention
American International University Bangladesh Nanyang Technological University
Amir Kabir University of Technology National Chiao Tung University
Bangladesh University of Engineering and Technology National Taiwan University
Cairo University Saint Mary's University
Ecole Polytechnique Texas Tech University
Ewha Womans University Universidade de São Paulo
Florida Institute of Technology Universidade Federal de Pernambuco
Indian Institute of Technology - Kanpur University of Arkansas
Instituto Tecnológico de Ciudad Madero University of California at Berkeley
ITESM, Campus Monterrey University of Nebraska - Lincoln
LeTourneau University University of North Carolina
Messiah College University of Wisconsin - Parkside
Super-Region | Champion
Africa and the Middle East University of the Witwatersrand, Johannesburg
Asia Shanghai JiaoTong University
Europe Saratov State University
Latin America Universidad de Buenos Aires
North America Massachusetts Institute of Technology
South Pacific University of New South Wales
If you havent Acrobat you can use this..
Programming Contest World Finals
God, you are ignorant.
Chinese people != Chinese government
Just like:
You != American government
The spirit after 9/11 is NOT about rallying around our nation. It's about rallying AGAINST terrorists.
Taking into consideration how ignorant you really are, you probably have no idea as to the number of Chinese citizens (non-government) died on 9/11 (at all three locations: NYC, D.C. and P.A.)
Sit down, and STFU.
ok i'll try again
h tt p://icpc.baylor.edu/icpc/Finals/problems.pdf
http://access.adobe.com/perl/convertPDF.pl?url=
For those who are unable to view PDFs.
Here is the problems PDF in text format
you must be carp flounderson
For the sake of "our nation", I hope this was meant to be a sarcastic joke.
---
Open Source Shirts
Is this a joke? Or are you a real fascist?
Ittai
The file extension didn't clue you in?
Read the fucking file extension on the hyperlink before you click. Or what? You use a Mac so you need a god damn warning cause Macs don't use extensions. Use a real OS, use Windows. None of that UNIX crap either.
Could be worse...
Stupid kids with $$$ goes to Harvard.
At least MIT has geeks, even if they are rich spoiled brat geeks, it's better than dumb son of a lawyer types.
I would love to know why you can't view PDF (Portable Document Format) files. I just took a quick look at Adobe's site and there are 23 supported OSs in the pulldown for downloading the free acrobat reader. What kind of setup are you running that doesn't have that ability? I was going to post a link to a pdf2html tool but if you cant run acrobat nevermind.
Here is a Link to a HTML version of the PDF
Problems
And why wouldn't you have the ability to read them shit for brains?
Becuase your computer is so fucking antique it has no gui? and don't give me some "i'm reading this from the machine room" crapola either.
If you're trying to make some pathetic jehovas witness style holier than thou free software statement, well, hate to break it to you but there are plenty of free (yes in that kind of free you pecker) pdf readers, so give us a fricken break ok skippy.
I'm impressed that I can picture everything logicaly in my head, but that's quite a bit of code, interesting as it may be. How big were the teams and how much time did they have?
I'm a writer, a poet, a genius, I know it. I don't buy software, I grow it.
Actually the last issue of the Freesoftware Magazine created by the FSF themselves was distributed in PDF only, muahahah, looks like some zealot lost the herd, PDF isn't a free software sin, what a foolio.
Here is a Link to a HTML version of the PDF
Problems
IT IS NOT Slashdotted already. Prove the fucking bastard that tried to karma whore wrong by clicking here
Nice Lie Shit For Brains!
Screw off
Go waterloo!
"Caffeine is not an option. Caffeine is a way of life."
I've seen many school teachers IN NORTH AMERICA who don't have a clue about order of operations.
What i wanna know is, who is some high school drop out hired help network monkey to criticize the way the ACM posts their contests?
Colleges/universities are not really in the buisness of "educating" they are just selling reputations.
If you define education as sitting in an institution doing whatever your teacher tells you and being graded on your obedience, then MIT fits in well. If you define education as accumulating knowledge, then you do not need to go to an institution to do that, just pick up books and start reading.
I am into the copy and paste.
Kids from an axis-of-evil state (Iran - Sharif University of Technology) did quite well too (ranked 18), better than Caltech, Cornell, Chicago, UT Austin, Tokyo, and UC San Diego.
Smart american kids with $$$ go to MIT.
Smart canadian kids with $$$ go to UofW.
Smart kids from anywhere without money drop out of highschool and troll slashdot.
Theres a very big difference between booksmart and applied smart.
While im sure all of these participents are very good programmers and incredible mathmeticians, I'm fairly sure a lot of them wouldn't be able to tell you how to take two files on a Unix OS, and list only lines that appear in both in a single commandline.
Note, most of the problems are basically math or physics problems. Sure, if I knew the math, no problem writing the code. But all those problems are simply advanced math. Ask one of these guys wether they prefer poll() to select() on a pre-2.4 linux kernel, and see how they respond.
I was told (in Waterloo, by the way) when I was 17 that I had more applied knowledge of the internet than most UofW university grads that came in to interview for that position. At that point, I was both incredibly disturbed, and incredibly happy. Now I'm just disturbed, considering how much more I have to learn, three years later.
.
You just called trolls smart... you're not very bright, are you?
Did you even read the comment that this was in reponse to?
Just wondering because your post doesn't make too much sense...
UW CS tution is about CAD$5400/year. MIT tuition is about US$26,000 (CAD $40,000) per year.
Paul
Each and every participant of that competition can figure out the applied problems you stated. Give them enough time and they will figure it out. However, some people will never in a million years figure out problems of advanced physics or math. For an example, I can practice basketball everyday for years and I will never be better than Michael Jordan.
Unlike the US, the Canadian post-secondary education system is relatively affordable and still a decent education. (Unlike secondary School.)
Please dont make assumptions about things you know nothing about, especially considering I was commenting on something to which I grew up within 20 minutes drive from. The UofW is without a doubt in the top 5 computer education schools in the world.
.
So all your problems are just simple unix programming...
Gee ya someone who can solve advanvced physics problems AND write the code for 6 of the problems in 5 hours will never be able to figure out all your world class problems there...
get real pal...
So what are some accomplishments from this school? What significant figures of computer science are affiliated with this school? enlighten us.
Didn't the questions sound a little weird to you?
I bet the MPAA and RIAA invented these question to get free development work for creating their napster alternatives. The question about the indecipherable codes kind of alerted me then the others seem to fit together with my suspicions.
It most likely has to do with the "Acrobat Reader isn't open source so I refuse to use it" argument that I once somehow got myself in the middle of on /.
Many of the ACM competitors from English speaking countries compete weekly at TopCoder.
College students and professionals alike compete against each other to solve 3-problem sets within 75 minutes (choice of C++ or Java or C#).
Under 18 are allowed to compete as well, but not eligible for prizes.
ya to bad there are like 5 open source pdf readers under a variety of licenses. These fucks just want to make a big scene. Next time remind them that the Free Software Magazine that RMS himself has regular column in is distributed in PDF. That should get their stupid asses to shut the fuck up.
That Fortran 90 wasn't one of the supported languages for the championship. They are allowing C, C++, Java, and Pascal. If you're a problem solver, you know your Fortran. And these are math problems, evidently. So I'm baffled as to why it's not an option. Before I see the deluge of "Fortran is dying" comments, it is still heavily used for engineering problem solving, I know for a fact, so don't give me that crap.
YUO=fagot
Page 2 - "This page is intentionally blank". IBM harking back to the good ol' days?
Dave
I write a blog now, you should be afraid.
As someone who went to MIT, I agree with this :)
somewhat - many A students in CS (Course 6
in MIT-speak, to prove that I did go there
could not program their way out of the
proverbial paper bag. However, who cares
whether one knows if poll() or select()
is better - if you have a solid foundation
and a drive, you can learn the intricacies
of the current tool (OS, language) easier.
Why should problem-solving abilities count
for less than practical knowledge which is
gained by experience? This is that kind of
a contest; if you want to judge the knowledge
of C/Unix, make your own contest.
Considered harmful.
How's von Neumann? How about, say, Rivest, Shamir and Adleman (RSA) -- all studied at MIT. Sussman :)
who created Scheme. Stallman and many GNU people
are affiliated with MIT in some way or another (yeah, I know Stallman studied at that liberal arts
school up the creek
Considered harmful.
Good point! I agree with you completely.
"Survival of the fittest Max, and we've got the fucking gun!" - Pi
This link converts from pdf to html, and from many other formats to many others.
I have found a solution to Riemann's Hypothesis, but have run out of spac
Another good deal for tuition is the University of Texas at Austin. It ranks at the bottom of the top ten for computer science(*) and is US$5500 for out of state and US$2500 for in state students per semester. A lot of the other departments are mediocre, so be sure you want to be a computer scientist (there's a LOT of attrition in our department) if you come here.
(*) This is important to some people and employers. Since I've never been to a "lesser" university I can't give an honest assessment of whether it is valuable. I will say that the professors are competent and there is lots of interesting research to get involved in. There is a big difference between the best and average students, but I suspect this is true at all schools.
Just make one person memorize the code for a scheme interpreter beforehand. Have him type it in at the beginning of the test (while the other students think about the problems), and voila -- your whole team suddenly becomes a couple-hundred IQ points smarter.
You just have to get used to writing scheme code embedded inside of a gigantic string constant...
If they only allowed Lisp. The problems are just begging for a CL implementation.
Maybe he has a setup like mine, none of that glitzy windowing shit, just
pure text and curses. Lynx crosslinked with emacs to edit the text boxes.
Yeah I know it's retro, but I built the system up from a bare hard
drive and I know it and it's productive for me.
Bennies:
*Slashdot ads don't get in my face
*fast surfing on a dial-up link
*rock solid stable
*billg free and lovin' it
Yes, and all of them suck dragon dick. Open source is no guarantee of quality, no matter what the people on Slushdot say. I personally loathe Adobe, but it doesn't stop me from using their browser to read articles that are only available in PDF. If they charged for their reader, then I wouldn't use it.
Balloons in a Box
Input: balloon.in
You must write a program that simulates placing spherical balloons into a rectangular box.
The simulation scenario is as follows. Imagine that you are given a rectangular box and a set of points. Each point represents a position where you might place a balloon. To place a balloon at a point, center it at the point and inflate the balloon until it touches a side of the box or a previously placed balloon. You may not use a point that is outside the box or inside a previously placed balloon. However, you may use the points in any order you like, and you need not use every point. Your objective is to place balloons in the box in an order that maximizes the total volume occupied by the balloons.
You are required to calculate the volume within the box that is not enclosed by the balloons.
Input
The input consists of several test cases. The first line of each test case contains a single integer n that indicates the number of points in the set (1 n 6). The second line contains three integers that represent the (x, y, z) integer coordinates of a corner of the box, and the third line contains the (x, y, z) integer coordinates of the opposite corner of the box. The next n lines of the test case contain three integers each, representing the (x, y, z) coordinates of the points in the set. The box has non-zero length in each dimension and its sides are parallel to the coordinate axes.
The input is terminated by the number zero on a line by itself.
Output
For each test case print one line of output consisting of the test case number followed by the volume of the box not occupied by balloons. Round the volume to the nearest integer. Follow the format in the sample output given below.
Place a blank line after the output of each test case.
Sample Input
2 0 0 0
10 10 10
3 3 3
7 7 7
0
Output for the Sample Input
Box 1: 774
An overwhelming majority of us run something other than a hobby OS.
You use a sheep OS instead?
Correction:
Bill Joy never got a PHD. He was a Berkeley graduate student for a while, but dropped out of school partway through.
Apparantly he spent all his time writing BSD, and never did any real research.
Undecodable Codes
Input: codes.in
Phil Oracle has a unique ability that makes him indispensable at the National Spying Agency. His colleagues can bring him any new binary code and he can tell them immediately whether the code is uniquely decodable or not. A code is the assignment of a unique sequence of characters (a codeword) to each character in an alphabet. A binary code is one in which the codewords contain only zeroes and ones. For example, here are two possible binary codes for the alphabet {a, c, j, l, p, s, v}.
Code 1 Code 2
a 1 010
c 01 01
j 001 001
l 0001 10
p 00001 0
s 000001 1
v 0000001 101
The encoding of a string of characters from an alphabet (the cleartext) is the concatenation of the codewords corresponding to the characters of the cleartext, in order, from left to right. A code is uniquely decodable if the encoding of every possible cleartext using that code is unique. In the example above, Code 1 is uniquely decodable, but Code 2 is not. For example, the encodings of the cleartexts "pascal" and "java" are both 001010101010. Even shorter encodings that are not uniquely decodable are 01 and 10.
While the agency is very proud of Phil, he unfortunately gives only "yes" or "no" answers. Some members of the agency would prefer more tangible proof, especially in the case of codes that are not uniquely decodable. For this problem you will deal only with codes that are not uniquely decodable. For each of these codes you must determine the single encoding having the minimum length (measured in bits) that is ambiguous because it can result from encoding each of two or more different cleartexts. In the case of a tie, choose the encoding which comes first lexicographically.
Input
One or more codes are to be tested. The input for each code begins with an integer m, 1 <= m <= 20, on a line by itself, where m is the number of binary codewords in the code. This is followed by m lines each containing one binary codeword string, with optional leading and trailing whitespace. No codeword will contain more than 20 bits.
The input is terminated by the number zero on a line by itself.
Output
For each code, display the sequential code number (starting with 1), the length of the shortest encoding that is not uniquely decodable, and the shortest encoding itself, with ties broken as previously described. The encoding must be displayed with 20 bits on each line except the last, which may contain fewer than 20 bits. Place a blank line after the output for each code. Use the format shown in the samples below.
Sample Input
3
0
01
10
5
0110
00
111
001100
110
5
1
001
0001
00000000000000000001
10000000000000000000
0
Output for the Sample Input
Code 1: 3 bits
010
Code 2: 9 bits
001100110
Code 3: 21 bits
10000000000000000000
1
But China is our good friend, just ask Bush! Thanks, in part, to his brother Jeb, the corrupt Florida Supreme Court, the corrupt U.S. Supreme Court, and all those old Jewish ladies voting for that neo-nazi guy, Bush is our "President."
And he is making this nation great once again. Wave your flag proudly as the CIA flexes its unrestrained muscles and once again is free to commit murder to protect American business interests abroad!
Iran is also the first place team at International Math Olympiad 1998 and the only team over 200 points and the only team that have a perfect score contestant. Yes, they beat Russia and USA.
Here is a problem from IMO 1998:
Consider all functions f:N->N such that f(t^2f(s))=s[f(t)]^2. Find (with proof) the minimum possible value of f(1998).
Iran is also the first place team at Intenational Physics Olympiad 1999. Yes, they beat China, Russia and USA.
Bear in mind that these are high school contest for high school students around the age of 16-17 years old.
Bush and friends cannot quite make up their minds on China. Prior to 9/11, they were being set up as the axis of evil, to justify massive increase in arms funding. Post 9/11, everything has become a little confused. But the need for the arms industry is much bigger than NK, Iraq or Iran can satisfy, there fore there is a LOT of pressure to keep China on the agenda behind the scenes.
Microsoft - Where would you like to go today, Maybe Jail?
You can btw always convert PDF to HTML at adobe's website for free. (sorry, too lazy to provide a link)
I remember years past when I was on the team competing for my university. Locals, not International. One year we had several of our guys graduate (IIRC), and were short on filling in with CS students. Well, we ended up with a Chemical Engineer who could program, and I tell you it was a blessing. He brought a whole different viewpoint to the table on how to solve things, because of having different techniques needed for his discipline.
Iterative estimation of math problems to get the needed significant digits instead of actually trying to solve it, that sort of thing. Helped all of us open our eyes for "non-CS" ways to solve stuff.
=Blue(23)
LITTLE GIRL: But which cookie will you eat FIRST? C. MONSTER: Me think you have misconception of cookie-eating process.
What is the world coming to? Soon half the webpages out there will have the title 'New Page 1'..
As an American who did a postdoctoral stint at Waterloo, I'm proud of UW's rating in the ACM contests. But like football games, I realize that that it has little to do with the worth of the university. Do you seriously believe that, for example, poorly funded Latin American and Eastern European universities are truly better than, for, example, Cal Tech? And yet that is what would be implied by taking the rankings seriously. Some schools are just really into the contests and have organized coaching and practice sessions, and other schools just don't care much.
Additionally, I'm always been amused by the Canadian ignorance of university tuition in the States. Sure private universities like MIT and Harvard cost a lot of money. But public universities are more or less as cheap as Canadian universties and still produce first class research. BSD UNIX was developed at UC-Berkeley. Mosaic (the ancestor of both Mozilla and IE) was developed at UIUC.
As for the buzzword compliance, remember that TopCoder is a business and recruiters are its customers. TopCoder is only providing what they are asking for.
If anyone is interested in a programming contest for high school kids, check out USACO (USA Computing Olympiad). They have contests throughout the year (any country can participate) which lead up to the US Open (only US participates), a 5 hour, proctored contest which then determines eligibility to go to IOI (The Computer Science World Olympiad Training Camp) from which a few kids are chosen every year to represent the US in world competitions.
:-).
The contest style is very similar to the ACM (solve n problems in m hours) and often very interesting problems are given (just because it's high school, doesn't mean the kids are stupid
If anyone is a computer science geek in high school or a teacher of CS in a high school, you should definitely check it out.
When I was a sophomore(?) in high school around 1980, some friends and I entered a programming contest. I don't remember which one it was; it may even have been an ACM contest.
Anyway, we got a bunch of problems. I ended up taking the hardest one, which would probably take all the time allotted, while the others worked on cranking out the simpler one.
Here was the question: You have a salesman that must travel through a series of cities. Write a program to find the shortest route.
I had never heard of the Travelling Salesman problem before.
So I diligently tried to solve the problem. But for some strange reason, I kept running into cases that made it difficult to find the optimal, shortest route. I worked my ass off for the 2 or 3 hours that we had, and ended up running out time. I was sure there "had to be a solution", otherwise, why would they give us the problem?
It wasn't f***ing fair, and I'm still f***ing pissed about it to this day. :)
Sometimes it's best to just let stupid people be stupid.
See subject
Oh yeah! I forgot that the chinese government is run by 50 year-old nuclear-powered robots built by Mao and programmed to annihilate the country if anyone tries to turn them off.
No, wait... CHINESE GOVERNMENT... IT'S PEOPLE!
Tux Racer is not free software, you fuck nut. It costs $29.99 (and a trip to the local jail if you try to share it).
If you're up there, there are companies looking to hire you. They seem like good companies too, really interesting work. Unfortunately, most of them want to hire immediately instead of waiting until June when he has his Master's.
Every contest has it flaws, but I think TopCoder is pretty good at keeping my Java skills up. I tend to do all of my personal programming in C/C++, so I forget my Java-isms. It also teaches me some practical Java stuff that you don't learn in books. I was suprised as hell that Java lets you add and subract from character literals, for instance.
Most of the harder problems require dynamic programming to keep you from exhausting the JVM's memory or exeeding the 8 second time limit imposed to prevent infinate loops.
Copyright Violation:"theft, piracy"::Anti-Trust Violation:"thermonuclear price terrorism"<-Overly dramatic language.
Not bad, #27. But if you look at the SE US Regional Standings, we look even better! #1, #4 and #7 -- our undergrad teams regularly beat other SE US graduate teams. UCF has represented the SE US at the world finals for most of the competition's history, including they heaftier competition of more recent years.
UCF has never won #1, but they took #2 in 1987 and #4 in 1986 back in the Early Years. In the '90s, we've broken the top 10 at world only once or twice, but we've managed to place in the top 25 regularly.
-- Bryan "TheBS" Smith
Independent Author, Consultant and Trainer
poll() vs. select() or whatever is trivia. it seems you are unaware of the distinction between software engineering and its encompassing discipline, computer science
I think it is a nice sign of equality throughout the world, what surprise should it be that the country with the most citizens won? If China can somehow get its act together it can be a major world influence, because of its massive and massively expandable population. Youve probably heard all the news of their space programme et al., besides american universities came 2nd (MIT)and 5th (Standford), chinese (Shanghai) 1st and 4th (Tsinghua), there really isnt that much difference if you look at the scoresheets. Besides just because the govvernment isnt exactly uh... yea... I'm just saying i wouldnt have president Bush (who still enforces the death penalty, (though not to the extent of the chinese, in general) be my leader.
0xC3
I think he means "without a doubt (if you judge based solely upon 2002 ACM programming contest results)."
gnu's not unix
...even moderately offended by the lack of functional languages offered to the contestants?
(I'm (not (one) of those) rabid, foaming LISP advocates) that insists *everything* is better with functional languages... but... I do believe there is a time and place for just about every style of programming. Some of those questions looked very much like the "time and place" for a nice modern functional language like Haskell. Even Scheme would've been nice... Miranda, some flavour of ML... anything.
Perhaps there is some reasoning behind this that I'm missing. I guess I just thought it was sad that the ACM seems to be promoting the view that functional languages are too 'esoteric' even for use in a programming contest.
What about the solutions? What are the penalties in the list about?
Are the unsolved problems the same for every team?
Please post a reply. I don't want to dig a lot of stuff to find out the answers. I'm not in the mood...
So if someone cares (snif...) i would be very grateful, and maybe some other guys too. We could arrange a mass microdonation for the one that comes up with a cool post about the issue...
I feel so lonely...
You use a sheep OS instead?
Says a Linux user on slashdot without any trace of irony.
> I would love to know why you can't view PDF (Portable Document Format) files.
... It took forever to come up, and the first zillion lines were filled with all that junk at the top with a list of links and what they do. Where's the story? Lots and lots of scrolling until I finally found what should have been at the top.
.exe installer. If you have a Mac or linux or Sun or VMS or any other system, you can't get PalmOS software from them. Yeah, they obviously have the program, but you can't get it until you first pay the Microsoft tax.
/. on a web-enabled PalmOS device? I did look around a bit, and found no clues.
Just out of curiosity, I pulled my Kyocera smartphone (the one that runs PalmOS with IP and the Eudora web browser) out of my pocket. I thought I'd check out this news item and see how well it worked from this PDA (which is rather popular around here). I was underwhelmed.
First, I hadn't tried slashdot.org on it, so I had to do that. Jeez
Once I found it, it was easy enough to read, so I clicked on the link to the article. The site told me in no uncertain terms that my browser was not compatible with the site, and it wouldn't send me anything until I got an acceptable browser. The only acceptable ones, according to the site, are AOL, Netscape and IE.
I also visited adobe.com to see about getting a PDF reader. They have one for PalmOS, but to get it, you first have to buy a Windows machine, because they only supply it inside a Windows
So what am I missing here? Could someone explain to me just how easy it is to make this article's link work on my PalmOS gadget?
For that matter, is there a good way to read
Those who do study history are doomed to stand helplessly by while everyone else repeats it.
and some moron is going to mod you as Funny, which is even worse.
Yes, I agree. Not just functional, either; lots of their problems would be exquisitely tackled by a logic programming language like prolog or twelf. It saddens me that ACM is not progressive enough to encorporate even "known good languages" into their allowed set (yet would easily fall to Yet Another Procedural Language with corporate backing like Java).
;)
There are lots of things that suck about the ACM contest, anyway. Personally, I think that the ICFP contest is much better, because:
- You can use any language, number of teammates, resources, etc.
- You get several days
- The problems are more interesting (sometimes unsolved)
- Work at home
not really. the school is well known, internationally. saying in the top N is worthless, of course, but it is on of the better CS schools, anywhere.
If you have a Mac or linux or Sun or VMS or any other system, you can't get PalmOS software from them.
Let me just say that if your only other system runs VMS, you have considerably more problems than not being able to view PDF files on your PDA.
As mentioned above, you can convert between pdf and html on adobe's website.
The List of Grievances with Slashdot.
> If you define education as sitting in an
> institution doing whatever your teacher tells
> you and being graded on your obedience, then
> MIT fits in well. If you define education as
> accumulating knowledge, then you do not need to
> go to an institution to do that, just pick up
> books and start reading.
Clearly you don't know what you're talking about.
I would say that about one-third to one-half of my classes at MIT were of the first kind.
The rest were much more free-form, with open-ended 2-month long projects, creative works, etc, that allowed us to get into whatever we wanted to focus on, limited only by what we could learn in the given time. The amount of open-endedness only increases as you get into more advanced classes, and its really only the basic 6 (calc I, calc II, bio, physics I(statics+dynamics), physics II (electromagnetism+waves), and chemistry where the professors hold your hand and insist on a certain way of doing things. (Even those ways get argued by some of the students, who are given credit for being right when they are)
More data, damnit!
To read slashdot on a Palm without driving yourself nuts, you need something like this: http://www.fourteenminutes.com/code/avantslash/.
There are several mirrors at the bottom of the page. Also great for folks who like to read slashdot via avantgo on their palms.
sort file1 file2 | uniq -d
So, whats my prize
No, Thursday's out. How about never - is never good for you?
"While im sure all of these participents are very good programmers and incredible mathmeticians, I'm fairly sure a lot of them wouldn't be able to tell you how to take two files on a Unix OS, and list only lines that appear in both in a single commandline. sort file1 file2 | uniq -d" Now, as far as other schools go, I am not really sure, but I am an undergrad at Waterloo and I know for a fact that we do know this stuff. In fact in one of the courses I am taking right now they have learning UNIX as a supplement to the course and some questions on an assignment I did like a month ago was: Problem 1: Difference In the file u4p1, place the Unix command that finds the difference between two files (ignoring blanks but not ignoring capitalization) file1.txt and file2.txt such that the lines which are different are printed out in reverse alphabetical order to standard output. Problem 2: Comparing two files Given two sorted files sort1.txt and sort2.txt, give the Unix command in the file u4p2 such that the lines that are only in sort2.txt are placed into the file sort.result. Problem 3: Comparing three files Given three sorted files sort1.txt, sort2.txt and sort3.txt, give the Unix command in the file u4p3 such that the lines that are only in sort2.txt are placed into the file sort.result. You should do this with only one Unix command and without using any temporary files. Now as you can see, Waterloo students would be able to answer your question.
While im sure all of these participents are very good programmers and incredible mathmeticians, I'm fairly sure a lot of them wouldn't be able to tell you how to take two files on a Unix OS, and list only lines that appear in both in a single commandline.
;)
sort file1 file2 | uniq -d
So, whats my prize
Hm. Doesn't this also show lines that appear twice in just one of the files?
I can't decide if you were being serious, and thus proving the guy's point, or if this is some subtle attempt at humor.
Sometimes it's best to just let stupid people be stupid.
As of a few years ago, the Ontario government deregulated tuition in certain professional programs (law, medicine, optometry, etc.) and some ATOP (Access To Opportunities Program, an expansion of "high tech" programs) ones (computer science, computer engineering), etc.
If you actually read the page I gave you, you'll see that tuition varies by faculty and program. Arts is $4400/year, while Computer Engineering is $6700/year.
Please dont make assumptions about things you know nothing about, especially considering I was commenting on something to which I grew up within 20 minutes drive from. The UofW is without a doubt in the top 5 computer education schools in the world.
First of all, I don't believe you, because anyone from Waterloo calls it UW, not "UofW." Second of all, I have a BMath (Computer Science) from the University of Waterloo (2001), so I know a thing or two about their CS program. :-)
Paul
If you want to learn about a real progressive school look up Francisco Ferrer and the Escuela Moderna. Or read his book, "THE ORIGIN AND IDEALS OF THE MODERN SCHOOL". MIT is progressive in a narrow sense of the word.
I am into the copy and paste.
(* Could you please warn us before handing us a PDF link. A large number of us dont have the ability to read them. *)
I do have a PDF reader, but it gave me funny error messages about a "bad CMAP", whatever the fudge that means.
However, rather than skanky math and combinatorial problems, why not give more **practical** problems, "write a PDF viewer in less than 2000 lines of code" (or a token quota or an EXE size quota, etc.)
Or give them more time and have them write OSS modules.
In may almost 1.5 decade of programming, the closest I have come in the real world to those kinds of problems is to write a license-plate typo matcher for a smog-check organization based on license plate and name/address, both of which may be mistyped. I had to look at the patterns of errors, for example, license "123ABC" may be mistyped "ABC123", etc.
However, even that is not representative of the majority of programming issues that I face on a day-to-day basis.
I suppose it is more cerebral than football games, but still lacks in the paycheck reality department IMO.
Table-ized A.I.
I don't know where you get data to support your statement, or why knowledge of Unix command line programs equates with programming skill.
I'm a Unix novice, but it's plain to me that your solution is wrong. Consider:
file1:
one
one
two
file3:
two
three
four
output from "sort file1 file2 | uniq -d":
one
two
correct answer:
two
A good rule of thumb:
The student should lead the teacher and not the teacher the student.
I am into the copy and paste.
Almost all of it is about optimization problems. I see little place for real-world issues like abstraction, concurrency, standardization, business problems (i.e. unstructured complexity).
I am sure it is good fun, and is a good predictor of math intelligence, but I would not call it a programming contest.
Then again, Computer "Science" has all too frequently been treated and taught as a wierd form of math, when almost all uses of it are in engineering. This may be one reason for the embarassingly slow progress in the field.
The only good weather is bad weather.
Well, I was being facetious, but since you asked...
1 - I am assumming duplicate lines have already been removed from file1 and file2. I don't know how you could remove them and find the same thing in both files, all in one command line.
2 - Knowledge of command line programs doesn't necessarily equate with knowledge of programming, but the two aren't necessarily exclusive, either. Unix command line programs are designed to be strung together at the command line with pipes and frequently have several command line options. What if I told you that sort file1 file2 | uniq -d used the quicksort algorithm and performed its task in O(n log n) time? Does the fact I solved a problem with the Unix command line make my solution any less relevant?
No, Thursday's out. How about never - is never good for you?
purely being facetious
No, Thursday's out. How about never - is never good for you?
Actually, I'm not a Linux user... Nice try though.
I use whatever's best for my needs. Firewall: OpenBSD, desktop: MacOS X, games: Windows.
I was in ACSL back in high school, this is the first time I've heard it mentioned on slashdot. Was it really small beans that not many other American slashdotters have done it?
It was pretty cool back in high school (for me, i graduated in '93) the school would fly us out to miami or houston or other places for the all-star competition at the end of the regular season.
The programs were usually doable, the test was tricky because most of the time it was following very closely syntactic and algorithmic details to determine the value of a variable when a loop exits, etc. The tests were mostly bookkeeping, though. It was really easy to miss a small detail, and get the question way wrong. There were a few, but not too many, computer-science type questions (such as figuring out how nested a particular recursion loop would be, which would take WAY too long to run through manually on paper), representations of Finite-State Automata, etc. But most of the normal questions just involved base 2, 8, 10, or 16 math and conversions, and/or running through algorithms on paper, keeping manual track of all flags and stuff.
make world, not war
Smart canadian kids with $$$ go to UofW.
It doesn't cost an arm & a leg to get a university education in Canada. This is why there are so many educated Canadians available to go to work in America. Er, wha...???
The main thing about U(W) is that you need impossibly high grades to get in.
He already said that he was a sophmore in HIGH SCHOOL...
First of all, I don't believe you, because anyone from Waterloo calls it UW, not "UofW." Second of all, I have a BMath (Computer Science) from the University of Waterloo (2001), so I know a thing or two about their CS program. :-)
;-)
I thought that Mathies were supposed to call it "U(W)".
Why don't they make the code publicly available? Along with the annotations of the Judges?
All things considered, UW isn't a bad school. I'm in my last year of undergrad there (Computer Science), and it does provide a very wide-reaching CS education, with ample possibility to explore specialized areas in your final year.
Unfortunately, the city ot Waterloo itself is a pretty drab place with not much to do, and the surrounding student ghettos are pretty unsightly. I can't think of any fourth-year students who aren't counting down the days before they graduate.
You can get it if you've got the marks? Well, yeah, duh. Isn't that how every university is/should be?
:P
I'm a student at the University of Waterloo, and we're not quite a 'state school'. We get funding from our government (which is a province, btw, not a state) and private industry, but all of the students have to pay tuition. Which, if you're a foreign student, costs $24 000 a year, instead of the $5 400 Canadian students pay (our government subsidizes half of the cost of tuition)
You might want to recheck your facts.
And tuition isn't deregulated in Ontario yet.
Silly.
Have you thought about what you're looking at today?
the idiot of the year award... for not testing ;)
your work before posting to the world...
try this one:
( sort -u file1; sort -u file2 ) | sort | uniq -d
You don't mind if I shamelessly lift this phrase from you, do you? Thanks. :)
Actually you are partially wrong. Getting into Computer Engineering requires very high grades. Getting into math or computer science is not difficult at all.
:)
Take it from someone who went there.
Impossibly hard to get in!?!? what are you smoking, as a UW CS geek... lemme tell you how many dumbasses there are in first even 2nd year CS. No offense to anyone, but you can usually tell who's going to finish the program and who's not... and the sad truth is... most that don't finish the program are gurls.......sigh
(* Re:"Pacheck Reality Department". mind if I shamelessly lift this phrase from you, do you? *)
:-) Go ahead.
Sure, but it will cost you $29.95 per usage. I got bills to pay you know.
...just kidding
Table-ized A.I.
Bash:
(sort file1 | uniq -d; sort file2 | uniq -d) | sort | uniq -d
Nah, that's just mathNEWS that does that. And yes, that is how they spell it.
Paul
it happened that I proposed (almost) the same problem at a seminar in Nov 2002, and then I solved it. My program does not find the shortest string; but it also understands if a code is 'uniquely infinitely decodable' that is if it can decode strings of infinite lenght in an unique way. It is based on a known technique, see [Cover Thomas], with some improvements. This program also shows that the problem is polynomial complexity in n,k where n=number of words k=maximum of letters in a word.
Strange how 42 is the answer to every problem...
Never pet a burning dog.
Yeah, why does mathNEWS do that? I'll be entering 4A in Computer Science at UW in May, and only recently have I noticed U(W) as opposed to UW. I can't figure it out. Is it some joke I'm not getting...?
Atheism is a religion to the same extent that not collecting stamps is a hobby.
Did anybody else conjure up images of batch processed punch card runs when reading over some of these problems? I don't know if it's the IBM backing of the event or what, but I got images of geeks sitting at punch card writers feeding an old Model 704 numerical representations of oil-filled polygons in card form and waiting for it to spit out an answer. The questions are interesting enough, and I'm even taking a crack at a few on my own time, but I can't shake the images!
Am I going insane?
"These people look deep within my soul and assign me a number based on the order in which I joined" --Homer re:
Good job UCF!
I was in the programming team a few years back and we finished 6th in regionals. I think all of our teams finished top 10 that year. I was the only grad student in the team, but it was a nice learning experience.
I hope these achievements show up in the university rankings. Way to go Dr.Orooji!!
Amen to dat. Its harder to get into comp eng here than to get into CS but harder to stay in CS as opposed to comp eng where the faculty does all it can to not kick u out. In CS, they try thjeir damndest or so it feels in the first 2 yrs or afetr taking 370:)
Democratic USA - Government of the corporations, by the Corporations, for the corporations.
you never know. but with that attitude I doubt it
hmm sooner
congrats to Shanghai Jiao Tong University and all the other people that took place.
hmm sooner