Question: pls write Q1&2 I. Prove that 2n2 + 12n-100 E (n2). 2. Consider the following algorithm: Algorithm Numbers(A,n): Input: array A of n positive integers.
I. Prove that 2n2 + 12n-100 E (n2). 2. Consider the following algorithm: Algorithm Numbers(A,n): Input: array A of n positive integers. St-0 for i from 1 to n do for j from 1 to i do for k from j2to i2 do return S Analyse the running time of this algorithm, using O, , and , as appropriate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
