Using the techniques you learned in Section 18.9, implement an application that draws the Koch Curve. 18.9.1
Question:
Using the techniques you learned in Section 18.9, implement an application that draws the Koch Curve.
Transcribed Image Text:
18.9.1 Koch Curve Fractal As an example, let's look at the strictly self-similar Koch Curve fractal (Fig. 18.12). It's formed by removing the middle third of each line in the drawing and replacing it with two lines that form a point, such that if the middle third of the original line remained, an equi- lateral triangle would be formed. Formulas for creating fractals often involve removing all or part of the previous fractal image. This pattern has already been determined for this fractal-we focus here on how to use those formulas in a recursive solution. (a) Level 0 (c) Level 2 (e) Level 4 Fig. 18.12 | Koch Curve fractal. (b) Level I (d) Level 3 (f) Level S or w We start with a straight line (Fig. 18.12(a)) and apply the pattern, creating a triangle from the middle third (Fig. 18.12(b)). We then apply the pattern again to each straight line, resulting in Fig. 18.12(c). Each time the pattern is applied, we say that the fractal is at a new level, or depth (sometimes the term order is also used). Fractals can be displayed at many levels-for example, a fractal at level 3 has had three iterations of the pattern applied (Fig. 18.12(d)). After only a few iterations, this fractal begins to look like a portion of a snowflake (Fig. 18.12(e and f)). Since this is a strictly self-similar fractal, each portion of it contains an exact copy of the fractal. In Fig. 18.12(f), for example, we've highlighted a portion of the fractal with a dashed box. If the image in this box were increased in size, it would look exactly like the entire fractal of part (f).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (1 review)
The Koch Curve or Koch Snowflake is a type of fractal that was first described by Swedish mathematician Helge von Koch The curve can be constructed th...View the full answer
Answered By
Utsab mitra
I have the expertise to deliver these subjects to college and higher-level students. The services would involve only solving assignments, homework help, and others.
I have experience in delivering these subjects for the last 6 years on a freelancing basis in different companies around the globe. I am CMA certified and CGMA UK. I have professional experience of 18 years in the industry involved in the manufacturing company and IT implementation experience of over 12 years.
I have delivered this help to students effortlessly, which is essential to give the students a good grade in their studies.
3.50+
2+ Reviews
10+ Question Solved
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Question Posted:
Students also viewed these Computer science questions
-
Research the Koch Snowflake online then, using the techniques you learned in Section 18.9, implement an application that draws the Koch Snowflake. 18.9.1 Koch Curve Fractal As an example, let's look...
-
What am I required to do in this assignment? Shared Power is an information system to help tradesmen share expensive and specialist tools rather than buying them themselves. Registered owners add...
-
Using only the programming techniques you learned in this chapter, write an application that calculates the squares and cubes of the numbers from 0 to 10 and prints the resulting values in table...
-
Jake Drewrey has total fixed monthly expenses of $ 1,340 and his gross monthly income is $3,875. What is his debt-to-income ratio? How does his ratio compare to the desired ratio?
-
Why are revenue and expense accounts called temporary or nominal accounts?
-
Ashley runs a small business in Boulder, Colorado, that makes snow skis. She expects the business to grow substantially over the next three years. Because she is concerned about product liability and...
-
List three variables, and how they are measured, for which you would use the mode as the most appropriate measure of central tendency.
-
Phoenix Computer manufactures and sells personal computers directly to customers. Orders are accepted by phone and through the companys Web site. Phoenix will be introducing several new laptop models...
-
Smiling Elephant, Inc., has an issue of preferred stockoutstanding that pays a $5.60 dividend every year, inperpetuity. If this issue currently sells for $80.40 per share, what is therequired return?...
-
Using the String-processing capabilities, the file and directory capabilities and a Map, create an application that recursively walks a directory structure supplied by the user and reports the number...
-
Enhance the Fibonacci program of Fig. 18.5 so that it calculates the approximate amount of time required to perform the calculation and the number of calls made to the recursive method. For this...
-
TechIn Solutions is an Indian-headquartered consulting and IT (information technology) services multinational company (MNC) with its headquarters in India. It has operations in over 44 countries, an...
-
Select a sector of interest. For this sector, identify the likely pressures on project managers and the implications for them as a result of these.
-
Find the phase difference between the displacement and the downwash for a flat plate oscillating simple harmonically in a free stream at a zero angle of attack.
-
Comment on the physical meaning of the Theodorsen function.
-
Obtain the oblique shock relations in terms of Mach number M, shock angle \(\theta_{\mathrm{s}}\), the specific heat ratios \(\gamma\).
-
Explore the possibilities for gaining professional qualification and recognition in project management, through both APM and PMI. How well would these fit with your own intentions regarding your...
-
The shaft shown in Prob. 721 is proposed for the application defined in Prob. 373, p. 138. Specify a square key for gear B, using a factor of safety of 1.1. Shown in Prob. 721, The shaft shown in the...
-
Do the three planes x + 2x + x 3 = 4, X X 3 = 1, and x + 3x = 0 have at least one common point of intersection? Explain.
-
What is the Nyquist sampling rate for each of the following signals? a. A low-pass signal with bandwidth of 200 KHz? b. A band-pass signal with bandwidth of 200 KHz if the lowest frequency is 100 KHz?
-
What is the result of scrambling the sequence 11100000000000 using each of the following scrambling techniques? Assume that the last non-zero signal level has been positive. a. B8ZS b. HDB3 (The...
-
The input stream to a 4B/5B block encoder is 0100 0000 0000 0000 0000 0001 Answer the following questions: a. What is the output stream? b. What is the length of the longest consecutive sequence of...
-
In what ways do institutional theories inform our understanding of organizational legitimacy and adaptation to environmental pressures ?
-
During 2022, Illini, Inc. was involved in pending litigation due to defective products sold during the year. As of December 31, 2022, Illini, Inc. estimated a loss of $1,500,000 was probable. In...
-
Sally earns gross wages of $1200 per week. She has standard deductions for social security and medicare. She is single with 1 allowance. She also has 6% of her gross wages put into a retirement...
Study smarter with the SolutionInn App