i needed some help with these problem in DSA
For the given pseudo code:
for( i=0; i<n; i++ ) a[i] = 0;
for( i=0; i<n; i++ )
for( j=0; j<n; j++ )
a[i] += a[j] + i + j;
Determine:
1. Total number of primitive operations
2. Running Time
i needed some help with these problem in DSA
For the given pseudo code:
for( i=0; i<n; i++ ) a[i] = 0;
for( i=0; i<n; i++ )
for( j=0; j<n; j++ )
a[i] += a[j] + i + j;
Determine:
1. Total number of primitive operations
2. Running Time