Search Results

Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: jrobw
Forum: Java Dec 17th, 2008
Replies: 2
Views: 595
Posted By jrobw
hi, i alreday posted under http://forums.sun.com/thread.jspa?threadID=5355743&tstart=30

yesterday, but no one helped me. it's an assignment for university, i have only few hours left to complete...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
strange, i see my last little post in the wrong order...

ok, lets look at it close: for 1 ir is of course only 1 triangle, because the recurive calls are not executed, for 2 its 3 + 1, for 3 it's...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
the last post went to antenka...

@ quuba:

that looks good! would you say the complexity is in the range of O(n^3)?? it looks bigger than O(n^2)...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
sorry, i did not mean O(n^3), i meant O(3^n)...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
ok, i try a third time to make clearer what i mean: you have minLineLength as an additional condition for the case, that level has not an appropriate value. screenresolution would make no sense here,...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
@antenka

huh? thats easily said if you don't write what you exactly mean with minLineLength (almost as easy as just handing over the problem to the user ;) ). would it be the distance between two...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
@Antenka:

You can offer to user to enter this. And then pass it as a parameter into method.

thanks for your reply! I mean, if I resize the window for example and take a fix number for the...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
youre not right in your last post, because I invoked it now with 8 for level too, and voila, it perfectly worked...

I have setup a new project for your approach in eclipse with 2 classes, I will...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
uhh, I do not completely understand your approach..
I implemented the class with your suggestion as follows:


package triangleMod;

import java.awt.Color;
import java.awt.Component;
import...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
Put i as "level" inside public void drawFractal(int level,Graphics g, Point a, Point b, Point c)

ah, ok. so using a level seems to the right way. i was thinking the bascase (or termination...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
ok, as I am curious about what you want to show me (I always want to learn, especially as recursion is really tough!) I'll try and heres the method which just describes the 3 new triangles from the...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
thats what i do in the method, i use the parameter points ro define the points A1, A2... they are not 6, but 9 points, but 3 of them are the old ones, so its them same..

my problem was, that i...
Forum: Java Dec 8th, 2008
Replies: 24
Views: 1,928
Posted By jrobw
hi!

i have to write a gui window, which draws sierpinskys triangle recursively, i have one main class:

package triangleMod;
import java.awt.Dimension;
import java.awt.Frame;
import...
Showing results 1 to 13 of 13

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC