473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Some work on the ICPC problems.

Hello,

Hope this will interest a few. I been working with a friend on the
problems given out during the "International Collegiate Programming Contest"
(ICPC) http://icpc.baylor.edu/icpc/ . Started out just trying to find the
solutions and then moving on, to "aggressively" trying to find the best
solution for each problems. First started to work on the problems using
C++ and then moved on to using Python, mostly since it was much easier to
play around with different implementations that way. Don't have huge amount
of experience using python, so did my best so far using a lot of dir() and
my Safari account (http://safari.oreilly.com/) but wouldn't mind having some
help from more experience programmers now.. Any kind of help would be good;
pointing out some libraries, showing how some built in type might be more
appropriate then what I was using or simply pointing out that I'd be much
smarter if I would simply put more/any comments..

Anyway, here it is:
http://www.ledward.org/jelefebvre/icpc/

One thing I do know I could be doing better is using testcases to test
those solutions out. Just not sure how I could go about it. Most of the
problems follow simple case of:
main: reads from a file, does some formatting on the input and sends it to
a function called process.
process: just goes through the data, and prints out things as it goes.
then goes back to main to get some more data.

Nothing to spectacular, but not to easy to test. The solution I came with
was: redirect print to a file 'test.output' and then compare it with an
other file of expected output. Takes a while to set up, but not many other
options around. What I'm hoping is that others have worked on the problems,
and fleshed out other sample input for their solutions, those could easily be
swapped around. As oppose to re-writting my code to use smaller functions and
testing those out.. Any ideas?

Thank you for reading and any help you can bring,
Jerome Lefebvre
je********@mac.com
Jul 18 '05 #1
0 2052

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: PHPkemon | last post by:
Hi there, A few weeks ago I made a post and got an answer which seemed very logical. Here's part of the post: PHPkemon wrote: > I think I've figured out how to do the main things like...
3
by: fdsl ysnh | last post by:
--- python-list-request@python.orgдµÀ: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, > visit >...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
0
by: ckhoge | last post by:
Hi, Consider this code fragment, based on the article "Using Chains to Free Library Code" from the July 2005 issue of C/C++ Users Journal: -- begin listing -- template <class T> struct Foo...
4
by: Marquisha | last post by:
If this is off-topic, please forgive me. But I thought this might be the perfect spot to get some advice about how to proceed with a project. Working on a Web site design for a nonprofit...
1
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
6
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any...
0
by: Biswajyoti Pal | last post by:
IIT Kharagpur KSHITIJ 2009 THE ANNUAL TECHNO-MANAGEMENT FEST 29th Jan- 1st Feb THE OVERNITE ACM ICPC 2009 MULTI PROVINCIAL PROGRAMMING CONTEST ( http://overnite.ktj.in )
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.