![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 | |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 754
Rep Power: 3
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
Quote:
10<---9
| ^
| |
----->4
^
|
3
----------
rest of the graph![]()
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
|
#32 |
|
Programming Guru
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
Good stuff.
You guys might kick yourself when you see the solution. I have a feeling you guys might be over-complicating it now. lol. Have you figured it out Jimbo? ![]() |
|
|
|
|
|
#33 | |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 754
Rep Power: 3
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
Quote:
![]()
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
|
#34 |
|
Programming Guru
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
Awe, dang. I'm actually kind of surprised it was in there... It's a generic problem, but I've never seen this version of it before.
Since I didn't cover all my bases, I don't consider it cheating if you've found the same problem elsewhere. It's my fault that it's been done before. Nothing in the rules against looking at textbooks. I'm also wondering if their solution is the same as mine, since it's again not something I've learned from a textbook, but had to think up. So as long as you didn't copy their code, you should go ahead and submit it. |
|
|
|
|
|
#35 |
|
Expert Programmer
|
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
I didn't realize that loops caused problems in the senior (escalator) problem, so it turns out my current solution is
|
|
|
|
|
|
#36 |
|
Programming Guru
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
So worst case it's 100^3 operations? Then don't worry about it. That's the expected solution. The best possible solution is |E|+|V| (I was writing it as just |E| earlier), but that's needlessly quick (and will be explained in the solution thread).
|
|
|
|
|
|
#37 |
|
Expert Programmer
|
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
I just thought I would point out that the submission deadline is June 31, but June has only 30 days.
![]() Also I found the advanced problem much, much easier than the senior problem. Assuming I got it right, that is. |
|
|
|
|
|
#38 | |
|
Programming Guru
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
Quote:
Anyone else notice any incredibly stupid mistakes? ![]() |
|
|
|
|
|
|
#39 |
|
Programming Guru
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
Just a small reminder: 5 days left!
|
|
|
|
|
|
#40 |
|
Not a user?
Join Date: Sep 2007
Posts: 256
Rep Power: 2
![]() |
Re: Sane's Monthly Algorithms Challenge #2 [06-08]
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| algorithms contest, programming challenges |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Uman's WEEKEND CHALLENGE | uman | Coder's Corner Lounge | 34 | Aug 5th, 2008 9:25 PM |
| Sane's Monthly Algorithms Challenge #1 [05-08] | Sane | Software Design and Algorithms | 31 | May 21st, 2008 10:11 PM |
| Good reference/tutorial for game tree algorithms | Jessehk | Software Design and Algorithms | 10 | Apr 10th, 2007 11:32 AM |
| Challenge: How to make daily life better with programming? | tempest | Coder's Corner Lounge | 53 | Jun 17th, 2005 2:37 AM |
| Weekend Challenge | theduck | Community Announcements and Feedback | 43 | Jun 3rd, 2005 4:58 PM |