
-----------------------------------
riveryu
Sun Aug 24, 2008 8:06 pm

[CCC] 2004 J4 Fractal, someone explain the logic for solution plz
-----------------------------------
Gah... I am stuck on J5 for 2004. Other problems took me 10mins but I came to a halt there. I completely blanked out. 
How do you do it? What is your logic?

J5 PDF : http://www.cemc.uwaterloo.ca/ccc/2004/stage1/juniorEn.pdf
Working Answer in Turing : http://access.mmhs.ca/ccc/2004/j5fractals.txt

Yes, I know there is another topic on this question some years ago and it didn't help me since I don't even recognize the language the answer was in.

Also, is some degree of math required for this problem, if so tell me what I have to learn?

P.S. I only understand Turing and very readable Java.

-----------------------------------
nike52
Sun Aug 24, 2008 9:24 pm

Re: [CCC] 2004 J4 Fractal, someone explain the logic for solution plz
-----------------------------------
You could probably understand it by examining the answer code line by line.

-----------------------------------
Tony
Sun Aug 24, 2008 11:47 pm

RE:[CCC] 2004 J4 Fractal, someone explain the logic for solution plz
-----------------------------------
There seem to be three major parts to the problem:

generating the fractal -- usually easier to do with recursion.

storing the generated fractal in some data structure.

search for requested values in the data structure above.

You may attempt the problem doing one of the above steps at a time.

-----------------------------------
Brightguy
Mon Aug 25, 2008 5:22 am

Re: [CCC] 2004 J4 Fractal, someone explain the logic for solution plz
-----------------------------------
