Question 31
p=0; k=0; while(k < m) p = p + 2k; k=k+1; end whileWhich of the following is a loop invariant for the while statement? (Note: a loop variant for a while statement is an assertion that is true each time guard is evaluated during the execution of the while statement).
Question 32
Question 33
Question 34
Question 35
Question 36
Question 38
(i) deg(v) ≥n/3 for each vertex v (ii) deg(v) + deg(w) ≥ n whenever v and w are not connected by an edge. (iii) E (G) ≥ 1/3 (n − 1 )(n − 2 ) + 2
Question 39
There are 100 questions to complete.