You are running algorithm with squared complexity on data with 100 elements and it takes 10 seconds. How much time do you expect the algorithm will take when executed on data with 1000 elements?
1
Expert's answer
2019-12-03T08:27:49-0500
Calculate the ratio of the increased number of elements with regard to the 100 elements:
"n=1000\/100=10."
An algorithm with squared complexity will require time
Comments
Leave a comment