|
Algorithm 2 Class engagement analysis (CEA) algorithm. |
|
Input: A new LCC message , hash table , location q, time length T, small positive number . |
|
Output: Hash table with the engagement ratio r. |
| if
is not a key in
then
|
| if
AND = LAS
then
|
| ; ; |
| else if
AND = LIS
then
|
| ; ; |
| ; |
| Insert a new key-value pair into ; |
| else if
is an existing key in
then
|
| Get the value from using ; |
| if
AND
then
|
| ; |
| else if
AND
then
|
| ;
|
| Update the latest key-value pair into ; |