In Social Networks Each Person Prefers To Meet With People From Their Own Community And Are Reluctant To Switch

Algorithm goes like this:
CvisFlag= 0 // community switch flag
penalty =0
For each person P[i] in personList
get roomListArray from Matrix for that Person
for each R[i] in the roomListArray
//…Engineering Technology