Efficient Algorithms For Data Mining With Federated Databases