Logic Programming Vs Functional Programming