3999 - The Longest Constant Gene

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

Moderator: Board moderators

3999 - The Longest Constant Gene

Postby serur » Sat May 23, 2009 1:51 pm

The problem is solvable in linear time, but requires huge memory:
392960

Is it possible to make such memory available for this problem only?
Thanks.
serur
Experienced poster
 
Posts: 70
Joined: Thu Feb 23, 2006 10:30 pm

Re: 3999 - The Longest Constant Gene

Postby Carlos » Sat May 23, 2009 4:13 pm

It is actually possible, but I have to think about hether it's fair to increase the memory limit:

- In one side, the number of MLE is huge. We should look for the fastest algorithm no matter how much memory it uses. Time limit should also be fixed to that fastest algorithm, so if you manage to solve the problem in 1s we should set the time limit back to 10s.

- On the other side, many users already submitted using a non linear approach in order to not use as much as memory. They got penalized in speed. It wouldn't be fair to judge them as TLE now, would it?

What do other users think?
DON'T PM ME --> For any doubt, suggestion or error reporting, please mail to:
acmicpclivearchive@gmail.com
User avatar
Carlos
System administrator
 
Posts: 634
Joined: Sat Oct 13, 2001 1:00 am
Location: Valladolid, Spain

Re: 3999 - The Longest Constant Gene

Postby serur » Sun May 24, 2009 12:12 pm

My current solution is O(nlogk). But I'll submit to your consideration the strictly linear solution when it's ready.
No rest with the wicked
serur
Experienced poster
 
Posts: 70
Joined: Thu Feb 23, 2006 10:30 pm

Re: 3999 - The Longest Constant Gene

Postby Carlos » Sun May 24, 2009 3:04 pm

You can mail it to me, I can tell you what the execution time is for your linear solution.
DON'T PM ME --> For any doubt, suggestion or error reporting, please mail to:
acmicpclivearchive@gmail.com
User avatar
Carlos
System administrator
 
Posts: 634
Joined: Sat Oct 13, 2001 1:00 am
Location: Valladolid, Spain

Re: 3999 - The Longest Constant Gene

Postby serur » Wed Jun 10, 2009 7:46 pm

Ah, Carlos, the memory required for linear algo is immense, so I'd rather say we'd drop it all.
The like suggestion made about "Permutation recovery" (n<=500 to n <= 100000) met with your
quite just disapproval on the grounds that this site is, after all, an "Archive". So thank you very much
for your concern; we'll submit a k-common substring with n_1 + ... n_k <= 100000 in one of our
contests, no doubt :wink:
No rest with the wicked
serur
Experienced poster
 
Posts: 70
Joined: Thu Feb 23, 2006 10:30 pm


Return to Bugs and Suggestions

Who is online

Users browsing this forum: rfefldfgcreg, Rodyd6m0o and 0 guests

cron