Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 5th, 2008, 6:02 AM   #21
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,725
Rep Power: 5 Sane is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

No, sorry. But if you're worried because you think you might have misinterpreted a part of the problem, feel free to ask for clarification.
Sane is offline   Reply With Quote
Old May 5th, 2008, 9:40 AM   #22
mbd
Programmer
 
Join Date: Nov 2007
Posts: 75
Rep Power: 1 mbd is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

i think i get it, but i just dont really want to invent my own boundary cases to test my solution. i am just going to submit what i have. do i really need to wait a month before i get any results?
mbd is offline   Reply With Quote
Old May 5th, 2008, 2:16 PM   #23
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 131
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

Sane, if i have missed things it really wouldn't suprise me its the first time i've ever tried anything like this so and as for it being easy well yer it wasn't really lol although when i looked at the submission it did look suprisnly simple compared to what i originally though it was going to be. I may look back at it in a few days and see if there are changes I can find and change...although i doubt it lol. I did create a few tests myself but none seems to be incorrect.

I may take a look at Senior but i think i will have many problems with this as at a quick glance it looks significantly more complex hehe.

Ah well any submissions i do make are my best shots lol and i hope they work reasonable well. Btw when you release results will you be pointing out what is going wrong with our algorithms or mine at least since most peoples will be perfect hehe.

Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote
Old May 5th, 2008, 3:43 PM   #24
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,725
Rep Power: 5 Sane is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

Quote:
Originally Posted by mbd View Post
i think i get it, but i just dont really want to invent my own boundary cases to test my solution. i am just going to submit what i have. do i really need to wait a month before i get any results?
Yeah, it's a lot of work to put all of this together, so once a month is all I can spare. If I were to score your submission early, it would make it more time consuming to moderate. Especially since I'm not perfect and will use everyone else's solutions to verify that all of the test files are correct. Additionally, it's a bonus for you if you can come back two weeks later, double check, and resubmit.


Quote:
Originally Posted by Freaky Chris View Post
when i looked at the submission it did look suprisnly simple compared to what i originally though it was going to be.

I may take a look at Senior but i think i will have many problems with this as at a quick glance it looks significantly more complex hehe.
All solutions will actually be surprisingly simple. I will never make you code something larger than 100 lines (with the exception of Guru). Generally, the challenge comes in unravelling the logic behind the problem, and translating that into efficient code. It's not intended to be an uphill battle writing hundreds of lines of complicated code.


Quote:
Originally Posted by Freaky Chris View Post
Ah well any submissions i do make are my best shots lol and i hope they work reasonable well. Btw when you release results will you be pointing out what is going wrong with our algorithms or mine at least since most peoples will be perfect hehe.
I've looked at your submissions and am sure you will do quite well. When I release the results, I won't explicitely state what everyone did wrong, but I will post the correct solutions and explain them. Hopefully from that, people can deduce their mistakes. If not, that's why we've got this thread (and hopefully more to come) to answer all of those questions.

And I doubt everyone will get perfect on junior or even beginner. I'm guessing a handful might, but often people forget to handle tiny things which proves to be problematic on tricky test files.
Sane is offline   Reply With Quote
Old May 5th, 2008, 3:48 PM   #25
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 131
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

Quote:
Originally Posted by Sane
I've looked at your submissions and am sure you will do quite well. When I release the results, I won't explicitely state what everyone did wrong, but I will post the correct solutions and explain them. Hopefully from that, people can deduce their mistakes. If not, that's why we've got this thread (and hopefully more to come) to answer all of those questions.
Ye that works for me, it should provide enough aid to show where im going wrong.

Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote
Old May 8th, 2008, 7:01 AM   #26
MiKuS
Programmer
 
Join Date: Jun 2007
Posts: 79
Rep Power: 1 MiKuS is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

on the first question, i have working code but i'm wondering what is the largest we can expect k to be in the example input format?
MiKuS is offline   Reply With Quote
Old May 8th, 2008, 9:28 AM   #27
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,725
Rep Power: 5 Sane is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

That information is given to you in the "Input Format" section.

If you meant to ask about "n", then it may be any integer. And the answer will always be calculatable with a 32-bit signed integer.
Sane is offline   Reply With Quote
Old May 8th, 2008, 1:33 PM   #28
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,725
Rep Power: 5 Sane is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

A Notice To All Those Doing Senior:

So far every submission to the senior problem has underestimated the complexity of the problem and scored maybe 40/100 points.

I'm not going to explain why. But here's a simple test case that exploits the major flaw in all submitted algorithms.

Sample Input #2:
2 600
500 9
110 2

Sample Output #2:

Explanation Of Sample Data #2:
Jump the first hurdle for 500 joules to avoid a 9 second penalty. Knock the second hurdle over for a 2 second penalty.

This mistake is not so simple to fix either. You may have to rethink your approach to the problem. Notice the upper bound on the input (n <= 100). There's a good reason it's so small, but still not small enough for an O(2^n) brute force approach.

Good luck!
Sane is offline   Reply With Quote
Old May 9th, 2008, 8:12 AM   #29
BstrucT
Programmer
 
BstrucT's Avatar
 
Join Date: Dec 2007
Location: Durban, South-Africa
Posts: 83
Rep Power: 1 BstrucT is on a distinguished road
Send a message via MSN to BstrucT
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

Thanks for the cool section Sane, trying to get to grips with Beginner section, but looks very cool.

Word up for your effort man.

>BstrucT
__________________
"The truth is that if I had to meet any of my interrogators today, and knew I could get away with it, I'd slot them." - Andy Mc Nab - BRAVO TWO ZERO
BstrucT is offline   Reply With Quote
Old May 11th, 2008, 7:11 PM   #30
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,435
Rep Power: 8 Ooble is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

I shall find time to fix my Senior problem answer, I swear it.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

Tags
algorithms contest, programming challenges

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting algorithms problem....... MicDareall Python 11 Apr 19th, 2006 2:48 PM
Sorting Algorithms 6431hoho Coder's Corner Lounge 9 Feb 28th, 2006 6:57 AM
Challenge: How to make daily life better with programming? tempest Coder's Corner Lounge 53 Jun 17th, 2005 2:37 AM
Uman's WEEKEND CHALLENGE uman Coder's Corner Lounge 25 Jun 6th, 2005 9:49 PM
Weekend Challenge theduck Community Announcements and Feedback 43 Jun 3rd, 2005 4:58 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:01 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC