subject
Engineering, 08.04.2020 04:25 nickthequick

7) For this function, determine an equation for the worst-case computing time T(n) (expressed as a function of n, i. e. 2n + 4) and the order of magnitude (expressed using big o notation, i. e. O(n)). To help you show your work, each line is numbered. Write the number of times each line executes in the appropriate blank, then list T(n) and the order of magnitude in the appropriate blanks. Use the space in which you enter T(n) to briefly explain your answer, if necessary. For example, if one or more lines are skipped in the worst case, explain which lines are skipped (or, alternatively, which lines are used to calculate T(n)). void f(double arr[], int n) { int i, j; 1 for (i = 0; i < 10; i++) { for (j = 0; j < n; j = j * 2) { if (arr[j] = i) 4 cout << arr[j]; AWN Line 1: Line 2: Line 3: Line 4: T(n) = Order of magnitude =

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
question
Engineering, 04.07.2019 18:20
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
question
Engineering, 04.07.2019 18:20
Wiy doeres rere okhn a pump whon working betwon the same pressure range?
Answers: 2
You know the right answer?
7) For this function, determine an equation for the worst-case computing time T(n) (expressed as a f...
Questions
question
Mathematics, 09.11.2020 20:00
question
English, 09.11.2020 20:00
question
Computers and Technology, 09.11.2020 20:00
question
Mathematics, 09.11.2020 20:00
Questions on the website: 13722361