Connecting Tech Pros Worldwide Help | Site Map

Recursive Algorithm to display a fir tree

Newbie
 
Join Date: Oct 2009
Posts: 2
#1: Oct 10 '09
Hi All . I am new to the forums and my english skills are not that good .

Anyway my question is in relation with a homework to be done . However i'm not requesting a complete code solution nor the complete algorithm . All i want is a starting point of algorithm from which i can build a good and fast algorithm , you will understand why .

So the problem is very simple :
make a program fir.c that will take a paramater and return the display of a fir according to the parameter

I don't know if it is allowed to post a pastebin but i have no choice to show you the result .

the results of "fir" program with two parameters 5 then 10
http://pastebin.com/m53dc3d03

Restrictions :
- Program has to compile in less than 2 secs
- Use recursivity
- maximum 5 functions allowed
- 25 lines maximum per functions allowed

You will clearly understand that whithout a good algorithm these restrucions cannot be respected .


Thanx in advance for your answers and advices
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#2: Oct 10 '09

re: Recursive Algorithm to display a fir tree


All you want? Nope. Not how we do things around here, I'm afraid. We do not, I repeat: do not hand out code for homework questions, nor de we hand out code at all.

If you have a question specific to the C/C++ programming language, then please do ask it. In your post above, I fail to see a question other than a request.

We also prefer that you put the code in your post, wrapped with the standard bbcode [code] tags. You can find an example of how to do that here: http://bytes.com/misc.php?do=bbcode#code

Mark.
Newbie
 
Join Date: Oct 2009
Posts: 2
#3: Oct 10 '09

re: Recursive Algorithm to display a fir tree


Quote:
I repeat: do not hand out code for homework questions, nor de we hand out code at all.
1- Algorithm != Code
2- I was just looking for a "starting point" , which means a tip or just an advise on where to start looking
3- Sorry for the link i did not knew and it was difficult to put the ascii image with BB CODE .


Anyway , i found a way to do it i will post the ALGORITHM ( not the code :) ) when completed .

Thanx for your welcome post , thought .

:)
Reply