Question: q 6 : ( true / false with justification ) 1 . we can determine how good an algorithm by it is conditions of correctness,
q: truefalse with justification
we can determine how good an algorithm by it is conditions of correctness, time efficiency and space efficiency.
for the following pseudocode of insertion sort the basic operation of the code is for loop.
insertiansorta n for i tont
key ai
ji;
while j and aj key aj aj jj aj key
the time needs for basic operations in the previous algorithm is on
let tn be a function obeying the recurrence tntn a with initial condition t b where a and b are positive numbers. then tnn log n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
