# Homework2
# Answer Set Prolog (Logical Programming) 
# Motivation: 
* Getting exposure to logical programming. 
* Learn the benefits of using logical programming in solving artificial intelligence problems such as constraint satisfaction problems

# Homework Description in Screenshots
Problems (number) corresponds to text file (number): 
![PART I](https://github.com/kaiLiGit/Comparative-Language/blob/master/Homework%232/ss1.png)
![PART II](https://github.com/kaiLiGit/Comparative-Language/blob/master/Homework%232/ss2.png)
![PART III](https://github.com/kaiLiGit/Comparative-Language/blob/master/Homework%232/ss3.png)
![PART IV](https://github.com/kaiLiGit/Comparative-Language/blob/master/Homework%232/ss4.png)

# ASP run example: 
## filter mother elements
> dlv Problem1.txt -pfilter=mother
