Jump to content

Load balancing: Cant understand Summation Term

Featured Replies

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.

 

 

cant understand summation term.jpg

Hi,

Thanks. Its not "j * tj"

 

Zulfi.

I got it.

 

Zulfi.

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 by Sensei

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.