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% (3 reviews)
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?
-
(1) Analyze the studentized deleted residuals in the page margin for Options 1 and 2 (see SDR1 and SDR2). (2) Is hospital 14 an outlier with respect to its y value when using Option 2? (3) Consider a...
-
Wayward Company wants to prepare interim financial statements for the first quarter. The company wishes to avoid making a physical count of inventory. Waywiirds gross profit rate averages 34%. The...
-
Five years ago, the Mori Foods Company acquired a bean processing machine. The machine cost $30,000 and is being depreciated using the straight-line method over a 10-year period to an estimated...
-
the end of its second year of operations Required information [The following information applies to the questions displayed below] Mint Cleaning Incorporated prepared the following unadjusted trial...
-
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...
-
Why might a researcher wish to disguise the objective of a study?
-
What are factors which hamper the promotion of an entrepreneurial culture in South Africa?
-
Please Help P/R End Date 2/8/2019 Company Name: Prevosti Farms and Sugarhouse Check Date 2/13/2019 Tax Name M/S # of W/H Hourly Rate or Period # of Regular # of Overtime # of Holiday Wage Hours Hours...
-
Read the description of following adjustments that are required at the end of the accounting period for Hubbard Repair Services, a new firm. Determine the account and amount to be debited and the...
-
Jamie Lee and Ross, now 57 and still very active, have plenty of time on their hands now that the triplets are away at college. They both realized that time has just flown by; over twenty-four years...
-
Here are summary statistics for randomly selected weights of newborn girls: n = 36, x = 3180.6 g, s = 700.5 g. Use a confidence level of 99% to complete parts (a) through (d) below. a. Identify the...
-
The point (-12, 4) is on the graph of y = f(x). Find the corresponding point on the graph of y = g(x). (a) g(x) = 1/2 f(x) (b) g(x) = f(x - 2) (c) g(x) = f(-x)
-
Vectors are drawn from the center of a regular n-sided polygon in the plane to the vertices of the polygon. Show that the sum of the vectors is zero.
-
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...
-
Be prepared to explain the texts comprehensive To illustrate the issues related to interest capitalization, assume that on November 1, 2016, Shalla Company contracted Pfeifer Construction Co. to...
-
On April 1, 2020. Indigo Company received a condemnation award of $473,000 cash as compensation for the forced sale of the company's land and building, which stood in the path of a new state highway....
-
The market price of a stock is $24.55 and it is expected to pay a dividend of $1.44 next year. The required rate of return is 11.23%. What is the expected growth rate of the dividend? Submit Answer...
Study smarter with the SolutionInn App