What are the best resources for preparing for the BAPC competition?

  • Thread starter Thread starter Max.Planck
  • Start date Start date
AI Thread Summary
The discussion centers on preparing for the Benelux Algorithm Programming Contest (BAPC) in Leiden, with participants seeking effective practice methods. Concerns are raised about the clarity of the contest problems, which some find poorly written and overly reliant on assumptions. Recommendations for practice include Project Euler, known for its progressively challenging problems. Participants debate the best programming language to use, with options being C++, Java, and Pascal. Java is suggested as a competitive choice, while C++ is favored by those with prior experience. The conversation highlights the speed of development in scripting languages compared to compiled languages, noting that familiarity with a language can significantly impact development time. Participants also express a desire for resources, such as books on C++ and algorithm programming, to enhance their skills for the competition.
Max.Planck
Messages
128
Reaction score
0
Hello,

Next year I want to participate in the BAPC (Benelux Algoritm Programming Contest). This contest will he held in Leiden and students of all Universities in the BeNeLux are allowed to participate. Now, I would like to know what is the best way to practise for such a competition.

Here are some example problems:
http://www.bapc.eu/2009-problems.pdf

Thanks!

Max.Planck
 
Last edited by a moderator:
Technology news on Phys.org


Max.Planck said:
http://www.bapc.eu/2009-problems.pdf

Wow. Those are HORRIBLY written. I only read to the 4th problem, but there are so many assumptions, I'm just amazed. If this were some sort of brain teaser problem, then... fine, I guess. Or maybe if it were written by one teacher for their class (where the class could ask lots of more specific questions). But these are programming requirements for a multi-university contest? WTF?

If you want more practice problems, try Project Euler. They start off not too bad, but employ some interesting strategies as you continue.

DaveE
 
Last edited by a moderator:


Thanks for your post. Which language do you recommend for the competition? I can choose from C++ / Java / Pascal.

Thanks.

Max.Planck
 


Whatever you're comfortable with, really. In my experience, Java is probably the most competitive one to learn and use in the marketplace, although nobody could fault you for using C/C++ either. Pascal? That's not used nearly as much these days, so I'd vote not to choose Pascal, unless you're already familiar with it or have a particular field in mind where Pascal is preferred.

DaveE
 


Yeah, I programmed in C++ before in the Dutch Informatics Olympiad. However, I got beat by scripting languages (Python etc) and I wonder which of the two (Java or C++) is faster in developing time. If Java is not significantly faster in developing time I'm going to stick with C++.
 


I haven't programmed enough with Java and C++ recently to know which one would go more quickly, other than to say that if you're more familiar with one language, you'll be faster at it.

Of course, nothing compares in terms of development speed to scripting languages. They're very powerful, often don't make you constantly switch data types, and don't need to be compiled. But since it would seem that you don't have any scripting language options, it's probably not much of a difference between the languages you have at your disposal.

DaveE
 


scripting languages will win fast points because you spend less time writing/re-writing how to do simple things like open and parse an input file.. (sure it's easy in C++, but how *fast* can you do it ? With untyped scripting languages, even faster..)
 


Yeah I definitely lost a lot of time during the Informatics Olympiad getting the input in the right format: Using getline to read every line and put it all lines into one string, then getting specific spieces of the string converted to a float using the atof() function.
It was the first time I participated and it was especially a disappointment because at first I wanted to program in Python (which I already had learned), but I went out and learned C++ for the competition (which turned out to be a mistake).
 


Does anybody know any good books for C++ or algorithm programming?
 
Back
Top