In Section 3, we proposed two Monte-Carlo methods to estimate D(S).