2013-10-06 02:40 am
Entry tags:

programming contest 2013!

The Berkeley Programming Contest was today! As always I sneakily entered it despite being totally ineligible. It was kind of an intense contest! A bit easier than usual, and there were 9 problems instead of the usual 8 for some reason. I solved 6. Several people solved all 9 problems -- solving all of the problems is very unusual! I think I came in something like 6th place. I think the timezone difference gives me a bit of a competitive advantage (19:00-00:30 is an easier time for programming than 10:00 to 15:30.)
     1	cs188-hd (Lewin Gan): 9 problems in 49823 sec. with 12 submissions
     2	ctest-ak (Biye Jiang): 9 problems in 60340 sec. with 14 submissions
     3	ctest-af (Yan Duan): 9 problems in 86186 sec. with 15 submissions
     4	cs170-hp (Chen-Hsi Bi): 8 problems in 67653 sec. with 18 submissions
     5	cs170-gi (Preetum Nakkiran): 7 problems in 59512 sec. with 10 submissions
     6	cs199-zq (Jing-Lun Gao): 6 problems in 64885 sec. with 19 submissions
     7	ctest-aa (Tobin Fricke): 6 problems in 68951 sec. with 9 submissions
     8	ctest-ag (Jingyan Wang): 5 problems in 41645 sec. with 6 submissions
     9	cs184-aj (Pierre Karashchuk): 5 problems in 43775 sec. with 7 submissions
    10	cs164-db (Zongheng Yang): 5 problems in 47787 sec. with 8 submissions
    [more]
2010-09-27 04:38 pm
Entry tags:

programming contest 2010 - results

http://www.eecs.berkeley.edu/~hilfingr/programming-contest/ :
 1  ilikerps (Aaron Davidson): 4 problems in 61068 sec. with 13 submissions
 2  Jamie_ (James Li): 3 problems in 31523 sec. with 8 submissions
 3  ctest-ae (Andrew Fisher): 3 problems in 35282 sec. with 7 submissions
 4  dnspies (David Spies): 2 problems in 13697 sec. with 3 submissions
 5  xliu156 (Xingyan Liu): 2 problems in 16307 sec. with 3 submissions
 6  cs61a-ux (Igor Proskurin): 2 problems in 17680 sec. with 2 submissions
 7  cs61c-dp (Thomas Marshall): 2 problems in 20917 sec. with 4 submissions
 8  ctest-ai (Tobin Fricke): 2 problems in 21002 sec. with 2 submissions
 9  cs61a-jl (Chenyu Zhao): 2 problems in 23497 sec. with 2 submissions
10  ide (James Ide): 2 problems in 24949 sec. with 3 submissions
11  ricshin (Eui Chul Shin): 2 problems in 26327 sec. with 4 submissions
12  toriath (Ken Cheng): 2 problems in 29635 sec. with 3 submissions
13  ctest-ad (Do Nguyen): 2 problems in 33626 sec. with 7 submissions
14  cs162-ad (Brandon Liu): 1 problems in 12942 sec. with 1 submissions
15  alanchoi (Alan Choi): 1 problems in 13932 sec. with 4 submissions
16  cs162-bu (Andrew Lee): 1 problems in 17998 sec. with 2 submissions
17  meastham (Michael Eastham): 1 problems in 18200 sec. with 2 submissions
Every time this rolls around I am reminded just how rusty my programming abilities are. The two problems I solved had a physics flavor to them: estimating the maximum distance between any pair of points given a large number of points; and solving for the voltages at every node of a rectangular grid of resistors. Meanwhile, I had to think a long time to solve the problem that everyone else solved, with a simple recursive solution.

On one hand I really like the contest-style problems (short and sweet), but on the other--well, there is a certain fatigue to solving problems that essentially hinge on it being a lot of work to do anything interesting in straight C without a lot of time or libraries. I expect Hilfinger will allow Python in the future, which I imagine could really change things up.
2008-10-05 12:47 am
Entry tags:

programming contest 2008

Oh no! I totally forgot about the Berkeley Programming Contest! It was last weekend!

In my mind, it's still July!
2007-07-21 02:00 pm
Entry tags:

ICFP contest

The ICFP Programming Contest is well under way. Recall that last year we were given an alien codex that turned out to be executable code. After we wrote a virtual machine for the alien codex, we were plopped into a sort of unix hacking text-adventure, filled with various puzzles. This year we're given a huge strand of alien DNA, and instructions on how to interpret the DNA!

The DNA turns out to be a strange pattern-matching language that ultimately spits out another code--RNA!--which in turn gets translated into an image. The goal is to come up with new strands of DNA that we can prepend to the alien DNA to transform the image in various ways. [livejournal.com profile] evan, [livejournal.com profile] four, and I have been working on it since about 3am PDT on Friday. The Task hints at one DNA prefix that will "do something interesting;" it turns out to invoke a self-check:



Well, we apparently still have some bugs in our virtual machine, somewhere--hence the corruption in the self-check... And we have only barely scratched the surface of figuring out how the DNA codex actually works.
2004-07-13 02:11 am

google challenge

So, Google currently has a little promotion that involves a sort of puzzle hunt. The first puzzle, published on billboards and at [livejournal.com profile] googleblogatom is to find the first 10-digit prime number to occur in consecutive digits of e.

I tried to solve it using only standard unix programs, with the following pipeline:

cat e.2mil | delay_line 10 | factor | awk '$1=$2":" {print($2)}'

That pops out the right answer immediately...

e.2mil is a text file containing the first 2 million digits of e, and delay_line is a little C program that takes a stream of characters and whenever it receives a character after the ninth character, it outputs the previous ten characters seen. It would be much more satisfying if delay_line were implemented as a clever script and perhaps if e.2mil were generated somehow instead of with Mathematica or a Google search. (I know that there are faster ways to check primality than explicitly computing factors, but obviously this is quick enough...)

Two fun exercises on the side: download GNU coreutils and look at the sourcecode to factor to see how it works (it uses 'Wheel Factorization'), and compute the expected position of the first 10-digit prime in a random sequence of digits.

The second puzzle is to find what comes next in this sequence: 7182818284, 8182845904, 8747135266, 7427466391, _____ .

Further notes will appear on [livejournal.com profile] nibot_lab.

2004-06-04 10:36 am
Entry tags:

2004 ICFP Programming Contest

The ICFP contest has started and will run over the weekend. The programming challenge has been posted, and it looks like it has something to do with developing an artificial intelligence for simulated ants.

2004-03-31 12:57 am
Entry tags:

ICFP Contest

I want to form a team to participate in the ICFP Contest 2004, which will be June 4-7. It's a programming contest that generally involves a nontrivial optimization problem, one year it was a raytracer.. anyway, all manner of cleverness, and good coding in any language are helpful. anyone interested? (btw, I will be at UCSD at that time.)

2003-10-09 11:30 pm
Entry tags:

TopCoder

As a certifiable programming-contest addict, I don't know how I avoided getting involved in TopCoder until now. Yes, Karim mentioned it to me a year ago, but only now did I take a look; instead I've just had to wait every year for the Berkeley contest, and for the ICFP ('98, '99, '00, '01, '02, '03) and Matlab contests, the latter two of which I seemingly always find out about just after they've happened.

Read more... )