I helped my friend about his AI assignment. This assignment is from Adelaide University Computer Science school, AI. The task is to write a program to implement likelihood weighted sampling, as described in lectures, to perform inference on an arbitrary probabilistic graphical model (PGM) of boolean random variables. (Java version)