A probabilistic representation for the solutions to some non-linear PDEs using pruned branching trees