
Since PROLOG programs are regarded not only as declarative predicates but also as procedural programs, it is reasonable that we first write a clear declarative PROLOG program and then transform it into a possibly unclear but efficient procedural program. In this paper we present a PROLOG program transformation method especially for a binary-tree manipulation program. By using a list as intermediate representation, we can derive a procedural tree manipulation program from a declarative one. In addition we find some heuristic knowledge for writing a tree manipulation algorithm from processes of PROLOG program transformation. These processes may be useful for automatic programming.
automatic programming, procedural programs, Specification and verification (program logics, model checking, etc.), PROLOG programs, Logic, procedural tree manipulation program, PROLOG program transformation, declarative predicates
automatic programming, procedural programs, Specification and verification (program logics, model checking, etc.), PROLOG programs, Logic, procedural tree manipulation program, PROLOG program transformation, declarative predicates
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 4 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Top 10% | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
