9.7k views
4 votes
Could someone please help explain this problem? Thank you:)

Could someone please help explain this problem? Thank you:)-example-1
User Avhi
by
7.9k points

1 Answer

5 votes

Answer:

As you can see,

a, if the list increases n time, the number of comparisons almost increases n^2 time.

b, use the rule from part a, you can see, "1000 items" means that list increased 100 times( original list is 10), so the number of comparisons would be expected to increase 100^2 times.

Explanation:

Try it and have fun!

User Alireza Eliaderani
by
7.9k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories