1.

Explain Why Matching Variable Is Important In Prolog? What Is The Method To Match Variables?

Answer»

In Prolog, in order to PROCESS the elements of a LIST, we have to match them to variables. The method for doing is

  • We get the HEAD by matching it to a variable.
  • By CALLING a predicate with the variable, it processes the head.
  • Until you get an empty list REPEAT the above steps.

In Prolog, in order to process the elements of a list, we have to match them to variables. The method for doing is



Discussion

No Comment Found