Edge Assignment and Data Valuation in Federated Learning