zak100 Posted April 29, 2020 Share Posted April 29, 2020 Hi, I am trying to understand the following text. I can’t understand the term Summation of (j tj). Are we multiplying j and tj. But the text is not talking about multiplying, it says”Total processing time. Somebody please guide me. Zulfi. Hi, Thanks. Its not "j * tj" Zulfi. I got it. Zulfi. Link to comment Share on other sites More sharing options...
Sensei Posted April 29, 2020 Share Posted April 29, 2020 (edited) Are you familiar with mathematical summation? https://en.wikipedia.org/wiki/Summation If t is array/list of elements/pointer to memory etc. j is index to element. And tj is value of element i.e. t[ j ] in computer language. So summation of array etc. is e.g: int *t; int sum = 0; for( int j = 0; j < length; j++ ) { sum += t[ j ]; } However, in the special cases, if tj is always constant it can be replaced by multiplication (addition of the same value multiple times). Edited April 29, 2020 by Sensei Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now