subject

Give an analysis of the running time (big-oh notation) for each of the following 2 program fragments. note that the running time corresponds here to the number of times the operation sum++ is executed. sqrt is the function that returns the square root of a given number. a) sum = 0 for i in range(int(math. sqrt(n)/2)): sum+=1 for j in range(int(math. sqrt(n)/4)): sum+=1 for k in range(8+j): sum+=1 b) sum = 0 for i in range(int(math. sqrt(n)/2)): j=i for j in range(8+i): k=j for k in range(8+j): sum+=1

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Apex q: what does a low employment rate indicate? a. not many people are earning high salaries b. not many people are going to college c. not many people are renting their homes d. not many people have jobs
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
Answers: 1
You know the right answer?
Give an analysis of the running time (big-oh notation) for each of the following 2 program fragments...
Questions
question
Mathematics, 23.02.2021 16:20
question
Mathematics, 23.02.2021 16:20
question
History, 23.02.2021 16:20
question
Mathematics, 23.02.2021 16:20
Questions on the website: 13722361