Sampling And Learning Of The And-Or Graph