Author Topic: C programming help  (Read 1773 times)

0 Members and 1 Guest are viewing this topic.

Offline Rainbow

  • Senior Member
  • Posts: 7375
  • Coeur de taxi
    • View Profile
    • http://www.youtube.com/Rainbowstunting
C programming help
« on: October 14, 2013, 06:02:22 AM »
I need someone to help me with a programm we need to write. The problem we have is that it takes our program too long to find the answer. We have to write it in a recursive way (how many possible ways for a knight (the chess thing) to go from destination A to B given coordinates and length). And the maximum time it may take is 1 second. A friend and me wrote the program and it is functioning but we cannot get it under a second. As the title says it's in the C language. If you can help me out that would be nice. Just post or PM and I'll send you the code or .c file.  :) Kind of need some tips of what to look into. Running out of ideas very fast.
« Last Edit: October 14, 2013, 08:17:32 AM by Rainbow »

Offline Reynard The Fox

  • Reynolds
  • Senior Member
  • Posts: 3291
    • View Profile
Re: C programming help
« Reply #1 on: October 14, 2013, 08:13:02 AM »
Don't tell me you go to RUG.

Offline Rainbow

  • Senior Member
  • Posts: 7375
  • Coeur de taxi
    • View Profile
    • http://www.youtube.com/Rainbowstunting
Re: C programming help
« Reply #2 on: October 14, 2013, 08:16:18 AM »
How so?  :euro: Don't tell me you do aswell

Offline Reynard The Fox

  • Reynolds
  • Senior Member
  • Posts: 3291
    • View Profile
Re: C programming help
« Reply #3 on: October 14, 2013, 08:18:12 AM »
How so?  :euro: Don't tell me you do aswell
Then I won't. Second year computing science.

Offline Rainbow

  • Senior Member
  • Posts: 7375
  • Coeur de taxi
    • View Profile
    • http://www.youtube.com/Rainbowstunting
Re: C programming help
« Reply #4 on: October 14, 2013, 08:22:32 AM »
How so?  :euro: Don't tell me you do aswell
Then I won't. Second year computing science.
Seriously?  :lol: First year AI here. The odds of us having seen eachoter are pretty high then. Can you atleast give me some tips on this if I send you what we have so far? I am not asking you to write it, just some advice  :ajaja:
EDIT://interesting developtment this is.
« Last Edit: October 14, 2013, 08:26:27 AM by Rainbow »

Offline Reynard The Fox

  • Reynolds
  • Senior Member
  • Posts: 3291
    • View Profile
Re: C programming help
« Reply #5 on: October 14, 2013, 08:50:18 AM »
Just send me it and I will have a look.

Offline XTO --

  • Senior Member
  • Posts: 4334
  • HUEHUEHEU
    • View Profile
Re: C programming help
« Reply #6 on: October 14, 2013, 07:07:40 PM »
Second year computer engineering reporting in. Instead of sending him the code, paste it or attach it here. I could take a look aswell

Offline Rainbow

  • Senior Member
  • Posts: 7375
  • Coeur de taxi
    • View Profile
    • http://www.youtube.com/Rainbowstunting
Re: C programming help
« Reply #7 on: October 15, 2013, 10:13:17 AM »
Yea Andre told me you knew C aswell. The problem has been resolved though. Thanks for the help Reynolds but in the end we didn't need it I suppose. No internet in the building of the Uni so we could not even relook what you send me  :P Looking at it now you almost did the same but the most crucial thing was still kind of wrongish. Worst problem ever though. There was only like one very specific code possible so everything looks like it's cheated off of someone else.  <_< Second program we had to write was a joke in comparison to rewriting that first pile of dump 40 times.  :rolleyes: If I ever need help again I'll just post the code here but I don't think I'll need it very shortly. Thank you for responding though  :) Locking..

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal