909 - special judge needed?

The forum to report every bug you find or tell us what you'd like to find in UVa OJ

Moderator: Board moderators

Locked
XLDEV
New poster
Posts: 3
Joined: Fri Sep 29, 2006 7:58 pm

909 - special judge needed?

Post by XLDEV »

For a given input file, e.g. a file with a single byte 'a', there may be multiple shortest compressions. It seems like there should be a special judge. In the actual contest, no one solved this problem in 109 submissions, according to http://acm.up.pt/local/Historial/2003/stats-miup03.html
I suspect the local contest probably didn't have a special judge either.
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey »

No, that's not true. A single character can be outputted in only one way, and in general the shortest compression for any possible input is unique.

I fear something else went wrong while implemening this problem on the judge:
There can only be one inputfile. If the original dataset had multiple inputs, meant to be fed to the user program in separate runs of the judge, then concatenating them into one inpufile, will still result in just one case, because the user's program should treat the input as binary file, not as text file.
The output file should be treated as binary file by the judge, not as text file. Also the input file should not be converted from DOS to Unix, and no additional spaces and newlines should be added to it, unless the output is generated again.
Adrian Kuegel
Guru
Posts: 724
Joined: Wed Dec 19, 2001 2:00 am
Location: Germany

Post by Adrian Kuegel »

There can be several possible minimal compressions.
Think of 129 times 'a'.
Then, we can encode it as:
[255]a[0]a
[254]a[129]a
...
[0]a[255]a
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey »

Yes, you're right. I was to hasty with my second conclusion.
MaVa
New poster
Posts: 6
Joined: Wed Oct 25, 2006 6:01 pm

Post by MaVa »

So what did this mean?
Does every program with multiple answes need a special judge?

Will such a judge come or must we guess how the solution output is generated.

I am quite tiered of getting WA now.
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey »

I'd suggest not to waste more time on this problem until it's fixed. And I don't know if it is fixable at all, because I don't know if the judge can handle binary (non-text) files.
Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos »

I forgot to say that I'm on the way.....I started it last sunday, but I couldn't finish it. Then I didn't have enough time during the week....I'll finish it as soon as I can.

By the way, little joey, can you mail me your solution? Judge handles binary files ok, but I'm afraid that ftp was made in ascii mode.....so judge's answer is not valid now :P
MaVa wrote:So what did this mean?
Does every program with multiple answes need a special judge?

Will such a judge come or must we guess how the solution output is generated.
Actually, it means that a special judge should be made for every problem that allows multiple answer. That special judge is usually made by the problemsetter, but, for problem 909, as we don't have it we have to make it. It was our gault that we didn't realize it was a multiple answer program before we put it online.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.
Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos »

I've just finished it, I hope everything is ok now.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.
Locked

Return to “Bugs and suggestions”