![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Hobby Coder
Join Date: May 2006
Posts: 57
Rep Power: 0
![]() |
Socbar, where did you find this problem? It has a real simple side to it, but takes a real turn for the deep end of the pool, quite soon.
Good one! |
|
|
|
|
|
#12 |
|
Hobbyist Programmer
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3
![]() |
I think that a minimum-spanning tree might be useful. It is easier than Djikstra's algorithm, but would help cut out all of the unnecessary steps. However, you would have to put together some peices at the end.
|
|
|
|
|
|
#13 |
|
Newbie
Join Date: Jul 2007
Location: iran
Posts: 4
Rep Power: 0
![]() |
hi i'm gelareh i have a question of data structure & algorithms in "c" these are my questions i wanted to know their algorithm and to write them:
Problem 1: The program of Horner’s low : Horner’s law : That has the least number of multiplies . Problem 2: The problem of “Pigeon Hole “that implies if function F has n inputs & less than n outputs then we have two inputs like a , b that a ≠ b , F(a)=F(b) Problem 3: The perm algorithm “ recursion form” that is written in the book but it is a little hard for me to understand . |
|
|
|
|
|
#14 |
|
Hobbyist Programmer
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2
![]() |
Do you know how to program??????
__________________
You never test the depth of a river with both feet. The believer is happy. The doubter is wise. Free speech carries with it some freedom to listen. The next generation will always surpass the previous one. It`s one of the never ending cycles of life. |
|
|
|
|
|
#15 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Gelarah, please stop hijacking threads. Pick an appropriate forum and ask your questions. Read the "How to Post a Question" thread, at the top of this forum, first.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#16 |
|
Hobbyist Programmer
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2
![]() |
I was just going to edit my post to tell the same. Unlucky me.
![]()
__________________
You never test the depth of a river with both feet. The believer is happy. The doubter is wise. Free speech carries with it some freedom to listen. The next generation will always surpass the previous one. It`s one of the never ending cycles of life. |
|
|
|
|
|
#17 |
|
Professional Programmer
Join Date: Oct 2006
Posts: 258
Rep Power: 2
![]() |
Crap! I forgot about this one for a good bit. Anyway, the one question I wanted to ask about this, if you're still around:
do you want to write a program that will eliminate "repeated" steps... or do you want a program that will take into account the shortest possible way to accomplish all of the turtle's movements, then return the appropriate answer? The two are slightly different, in some cases, I think. |
|
|
|
![]() |
| Bookmarks |
| 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 |
| Huge arrays in C (game-oriented problem theme) | Rather Generic | C | 6 | Mar 19th, 2006 1:09 AM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 11:10 AM |
| help with recursion problem | the_new_guy_in_town | Java | 3 | Apr 7th, 2005 3:04 AM |
| string problem when passing in linked list | quantz | C++ | 0 | Feb 27th, 2005 10:11 AM |