subject

Disk Space Analysis A company is performing an analysis on the computers at its main office. The computers are spaced along a single row. The analysis is performed in the following way 1. Choose a contiguous segment of a certain number of computers, starting from the beginning of the row.2. Analyze the available hard disk space on each of the computers. 3. Determine the minimum available disk space within this segment. After performing these steps for the first segment, it is then repeated for the next segment, continuing this procedure until the end of the row (i. e. if the segment size is 4, compu 1 to 4 would be analyzed, then 2 to 5, etc.) Given this analysis procedure, find the maximum available disk space among all the minima that are found during the analysis. Example n = 3, the number of computers space = [8, 2, 4] x = 2, the length of analysis segmentsIn this array of computers, the subarrays of size 2 are 18, 2] and [2, 4]. Thus, the initial analysis returns 2 and 2 because those are the minima for the segments. Finally, the maximum of these values is 2. Therefore, the answer is 2.Function Description Complete the function segment in the editor below. segment has the following parameter(s): intx: the segment length to analyze int space[n]: the available hard disk space on each of the computers Returns: int: the maximum of the minimum values of available hard disk space found while analyzing the computers in segments of numcomps Constraints • 1 snc 10 • In • Is space 10 Input Format for Custom Testing Sample Case Sample Input STOIN Function1 - length of segments 1 - Size of space n = 51 - space - [1, 2, 3, 1, 2) 2 3 1 2 Sample Output 3 Explanation The subarrays of size x1 are 11.121.131.1 and (2) Because each subarray only contains / element, each value is minimal with respect to the subarray it is in. The maximum of these values is 3.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
If you add the following to the query grid in an access query, what is it called? salestaxamt: [salestaxrate]*[totalsale] formula calculated field total calculation
Answers: 2
You know the right answer?
Disk Space Analysis A company is performing an analysis on the computers at its main office. The com...
Questions
question
Engineering, 17.06.2021 05:10
question
Biology, 17.06.2021 05:10
Questions on the website: 13722361