Grafting is the process of adding nodes to the inferred decision trees to improve the predicative accuracy.…