This entire problem is AQ. A farmer plants apple trees in a square pattern. In order to protect the apple trees against the wind he plants conifer trees all around the orchard.
Here is a diagram of the situation where you can see the pattern of apple trees and conifer trees for the first 4 cases:
AQ: Question Set:
Note: Be sure to use Polya's problem solving process and include parts a-d in steps 1-4.
a. How do you see the pattern growing? Extend the pattern by drawing more cases.
b. Suppose the farmer wants to make a much larger orchard with many rows of apple trees. As the farmer makes the orchard bigger, following this pattern, which will increase more quickly: the number of apple trees or the number of conifer trees? How do the growths compare with each other? Justify your answer using multiple representations: the visual pattern, equations, tables, written descriptions and graphs.
c. Write a description of how you would determine the number of conifer and apple trees in any case number.
d. Write general expressions so you can calculate the number of conifer and apple trees in any case number.
a) I am extending this pattern till n=6
n | No. of apple trees | No. of conifer trees |
---|---|---|
1 | 1 | 8 |
2 | 4 | 16 |
3 | 9 | 24 |
4 | 16 | 32 |
5 | 25 | 40 |
6 | 36 | 48 |
b) Check the below points for which tree will increase quickly-
Apple trees = n * n and conifer trees =8 * n both formulas have a factor n, but apple trees have another n which will get larger where factor 8 stays the same. The number of apple trees increases more quickly.
The number of apple trees increases faster because that number is being squared instead of multiplied by 8
The number of apple trees is quadratic. The number of conifer trees is linear. So apple trees will increase faster.
And with the help of Big Oh representation, you can understand like O(n*n) grows faster than O(8*n).
c) As from the above explanation, it's clear that apple trees are increasing in terms of n2, and conifer trees are increasing with 8 * n where n >=0.
d) Number of apple trees = n2
Number of conifer trees= 8 * n where n ≥ 0.
This entire problem is AQ. A farmer plants apple trees in a square pattern. In order...
Trees Traversals Please write a Java program to traverse a binary tree in in-order and pre-order, and to plot a binary tree into a 2-dimensional array. You may write many recursive methods for this project. You are not allowed to use any existing Java classes such as ArrayList or Vector or Tree. Please stop your program if the user enters 0 as the tree selection. Your program must run the following Test Case 1 plus two more test cases to...
Trees Traversals Please write a Java program to traverse a binary tree in in-order and pre-order, and to plot a binary tree into a 2-dimensional array. You may write many recursive methods for this project. You are not allowed to use any existing Java classes such as ArrayList or Vector or Tree. Please stop your program if the user enters 0 as the tree selection. Your program must run the following Test Case 1 plus two more test cases to...
Coding for Python - The pattern detection problem – part 3: def pattern_search_max(data_series, pattern, threshold) Please do not use 'print' or 'input' statements. Context of the assignment is: In this assignment, your goal is to write a Python program to determine whether a given pattern appears in a data series, and if so, where it is located in the data series. Please see attachments below: We need to consider the following cases: Case 1 - It is possible that the...
Coding for Python - The pattern detection problem – part 2: def calculate_similarity_list(data_series, pattern) Please do not use 'print' or 'input' statements. Context of the assignment is: In this assignment, your goal is to write a Python program to determine whether a given pattern appears in a data series, and if so, where it is located in the data series. Please see attachments below: We need to consider the following cases: Case 1 - It is possible that the given...
Detailed explanation would be appreciated. 3. Now consider Figure B. What happens to fir trees when they live close ( <0.5 m) to aspen trees? What happens to aspen when they live close ( <0.5 m) to fir trees? Do these data support your previous hypotheses (from question 2) about the types of species interactions driving succession? 4. Which of Connell and Slatyer's three models (see Figure 17.8) best fits the results of this study? Why? ----------------------------------------------------------------------- Answer to #2...
Coding for Python – don’t need it to be complex: In this assignment, your goal is to write a Python program to determine whether a given pattern appears in a data series, and if so, where it is located in the data series. This type of problem is common in many health disciplines. For example, identifying treatment pathways. The goal is to detect whether a certain pattern appears in the data series. In the following example, the pattern to be...
Background: Ancient lycophytes were the dominant plants on Earth during the Carboniferous Period, which is named for the coal that formed from those ancient plants that lived 300 million years ago. As humans use fossil fuels such as coal and gas, we release carbon in the form of carbon dioxide (CO2) into the air. Because CO2 traps heat near the surface of the earth, it is known as a greenhouse gas and contributes to climate change. However, carbon is also...
Problem 1 - Print positive message Create a new project named whatever you want in Visual Studio using the Windows Desktop Wizard or in Xcode. If you're using Visual Studio, add a main.c file to your project; you can use the main.c template I provided on Canvas if you'd like. If you're using Xcode, Xcode automatically generates a main.c file for you. Read in an integer from the user; don't prompt for the user input, because that will confuse the...
C PROGRAMMING Introduction In this part, you will solve a problem described in English. Although you may discuss ideas with your classmates, etc., everyone must write and submit their own version of the program. Do NOT use anyone else’s code, as this will result in a zero for you and the other person! Shipping Calculator Speedy Shipping Company will ship your package based on the weight and how far you are sending the package, which can be anywhere in the...
PROBLEM SET 2 Name: Instructor: Date: Section 1. First, separate the OG (outgroup) and Flowers 9, 13, 14, 17, 18, and 20 from the stack of flowers and lay them in a row. Then, set the unused stack of flowers aside. Note: The letters and numbers are the names of the flowers and do not give any indication of the order in which the flowers will be placed on your phylogenetic tree. 2 For the following characters, write the character...