- Question Completion Status: Quèstion 7 (Big-O Analysis) Total number of comparisons in algorithm A is 2n² +n+1 and total number of comparisons in algorithm B is 2nlog(n) + 8n, where 'n' is input...


- Question Completion Status:<br>Quèstion 7<br>(Big-O Analysis) Total number of comparisons in algorithm A is 2n² +n+1 and<br>total number of comparisons in algorithm B is 2nlog(n) + 8n, where 'n' is input<br>size. (The base of log is 2).<br>Order of algorithm A is O( (a) ).<br>Order of algorithm B is O( (b)).<br>What is (a) and (b) ?<br>O (a): n², (b): n2<br>o (a): n2, (b): nlog(n)<br>(a): n, (b): nlog(n)<br>(a): n2<br>+n, (b): log(n)<br>ows b<br>A Moving to another question will save this response.<br>

Extracted text: - Question Completion Status: Quèstion 7 (Big-O Analysis) Total number of comparisons in algorithm A is 2n² +n+1 and total number of comparisons in algorithm B is 2nlog(n) + 8n, where 'n' is input size. (The base of log is 2). Order of algorithm A is O( (a) ). Order of algorithm B is O( (b)). What is (a) and (b) ? O (a): n², (b): n2 o (a): n2, (b): nlog(n) (a): n, (b): nlog(n) (a): n2 +n, (b): log(n) ows b A Moving to another question will save this response.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here