A Ring-Based Distributed Algorithm for Learning High-Dimensional Bayesian Networks