| Algorithm 2. Client Selection. The server selects clients and adjusts client’s training data |
| • Input • Output = 1: initialize 2: Sort in descending order by the amount of data 3: repeat 4: for each do 5: if then 6: for each , = 1, 2, …, do 7: 8: 9: end for 10: max() //Maximum value among 11: add in 12: else 13: 14: if then 15: for each , = 1, 2, …, do 16: + min(—, ) 17: min(—, ) 18: end for 19: add in 20: end if 21: end if 22: end for 23: until 24: return |