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?
-
The capital account for Autumn Chou, including an additional investment, and a partial work sheet are shown below. REQUIRED Prepare a statement of owner'sequity. GENERAL LEDGER ACCOUNT: Autumn Chou,...
-
Air is supplied to a convergent-divergent nozzle from a reservoir where the pressure is \(100 \mathrm{kPa}\). The air is then discharged through a short pipe into another reservoir where the pressure...
-
The following is a code for one product in an extensive cosmetic line: L02002Z621289. L means that it is a lipstick, 0 means it was introduced without matching nail polish, 2002 is a sequence code...
-
Define the Role of the Modern Forensic Psychologist ? What are the basic Competencies and Training Models in Forensic Psychology ?
-
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...
-
A cryogenic fluid as liquid nitrogen at 90 K, 400 kPa flows into a probe used in cryogenic surgery. In the return line the nitrogen is then at 160 K, 400 kPa. Find the specific heat transfer to the...
-
Find even and odd components of the following: x(n) = {4, 2, 1, -2,3}
-
Resilient Ltd has incurred development costs as follows during the year ended 3 1 December 2 0 X 3 : 3 months ended 3 1 March $ 1 2 0 , 0 0 0 3 months ended 3 0 June $ 2 4 0 , 0 0 0 3 months ended 3...
-
Step-by-Step Guide to Accounting for Warranty Liabilities: Step 1: Identification and Classification The first step in accounting for warranty liabilities involves identifying products or services...
-
A cave explorer drops a stone down a chasm and hears the stone hit water 3 . 6 3 s later. What is the height of the cave explorer above the water? Anwser to the nearest hundredth of a metre and...
-
If you exert a force of 53 N to walk 4 m up a flight of stairs in 6 seconds, how much power do you use? Answer in units of W.
-
After viewing the Process Choice at the King Soopers Bakery video on myomlab, prepare a flowchart for the three processes at King Soopers. For additional information on the processes, see the Big...
-
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...
-
Consider the following function. func:: Ord a => a -> a -> a func xy | x> y=x ly > x=y Why does this function need to restrict its type to members of the Ord typeclass?
-
Write the C# Form application that provides the following properties in an array of integers with X (X= 5+ last two digit of your student numbers) elements. (For example your student number is...
-
3.1 Debugging an ontology involves finding problems with the ontology. a What is an unsatisfiable concept, and give an example based on the Pizza ontology, explaining why it is unsatisfiable. (4) b....
Study smarter with the SolutionInn App