edited by
1,206 views

2 Answers

0 votes
0 votes
  Total Unique
operators N1 = 10 n1 = 4
operands  N2 = 6 n2 = 4

Program length ( N ) = N1 + N2 = 10 + 6 = 16

Vocabulary (n) = n1 + n2  = 4 + 4 = 8

Volume = $N.log_{2}n = 16.log_{2}8 = 16*3 = 48$

0 votes
0 votes

Estimated program length = $n_1\log_{2}n_1 + n_2\log_{2}n_2 =$ $4\log_{2}4 + 4\log_{2}4 = 8\log_{2}4 = 8*2 = 16.$

Program Length = $N_1 + N_2 = 10 + 6 = 16.$

Difference between two is – Estimated program length is used before the development of the software or program and Program length is calculated after development of software or program.

Formula reference : Page 15

Related questions

2 votes
2 votes
2 answers
1
Aishwarya Gujrathi asked Mar 27, 2018
1,455 views
Suppose prim’s algorithm is implemented using array as queue for a graph $G(V,E)$. Then what is the time complexity of Prim’s algorithm?$O (E \hspace{0.1cm}log\hspace...
0 votes
0 votes
0 answers
3
RiteshSingh asked Oct 9, 2018
545 views
Check whether the given language is regular or not:L={am bn ; nm<=789}
0 votes
0 votes
2 answers
4
Warrior asked Mar 18, 2018
598 views
What is the output of this program ?Please give reason..#include<stdio.h int g() ; int f(); void main() { printf(“%d”,f()); } int g(){ int a=7,b=8,c; { int a=3; b=6; ...