Lecture Notes in Computer Science, 1989, Volume 385/1989, 357-371, DOI: 10.1007/BFb0026313

Normal forms and the complexity of computations of logic programs

Vít Ochozka, Olga Štěpánková, Petr Štěpánek and Jan Hric

View Related Documents

Abstract

It is shown that every pure logic program can be transformed to a normal form without changing the lengths of computations and the data flow during computation. The lengths of computations of logic programs in normal form are studied. Some sufficient conditions on the syntactic structure of programs are formulated that imply that the length of computation is linear with respect to the length of the input. On the other hand, it is shown that logic programs with the simplest possible normal forms, i.e. programs with at most one called node and one calling leaf, can simulate computations of arbitrary Turing machine. Consequently, such programs can exhibit arbitrary complex computational behaviour.

Fulltext Preview

Image of the first page of the fulltext document