subject
Computers and Technology, 07.07.2021 22:30 cmir

C language Determine the Big O running time of the following code fragment with the explanation of calculation. (Follow the way that you see in class, like what is happening in the first step, second step,..., kth step). Consider that you are calling the fun() function by passing an array and its size m.
int fun(int *array, int m)
{
int k = 0, j=0;
for(k=0; k<=m*m; k++)
j = func2(array, m);
}
int func2(int m) {
int i = 0, sum=0;
while (m>0) {
m = m/2;
sum+=array[m-1];
}
return sum;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:50
You have just been hired as an information security engineer for a large, multi-international corporation. unfortunately, your company has suffered multiple security breaches that have threatened customers' trust in the fact that their confidential data and financial assets are private and secured. credit-card information was compromised by an attack that infiltrated the network through a vulnerable wireless connection within the organization. the other breach was an inside job where personal data was stolen because of weak access-control policies within the organization that allowed an unauthorized individual access to valuable data. your job is to develop a risk-management policy that addresses the two security breaches and how to mitigate these risks.requirementswrite a brief description of the case study. it requires two to three pages, based upon the apa style of writing. use transition words; a thesis statement; an introduction, body, and conclusion; and a reference page with at least two references. use a double-spaced, arial font, size 12.
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 23.06.2019 11:00
What is the name of the sound effect that danny hears
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Which type of entity describes a fundamental business aspect of a database? a. linking b. lookup c. domain d. weak
Answers: 3
You know the right answer?
C language Determine the Big O running time of the following code fragment with the explanation of...
Questions
question
Mathematics, 31.08.2019 04:40
question
Mathematics, 31.08.2019 04:40
Questions on the website: 13722367