Non-terminal function

Non-terminal function

A non-terminal function is a function (node) in a parse tree which is either a root or a branch in that tree.

Background

A parse tree is made up of nodes and branches. In the picture below the parse tree is the entire structure, starting from S and ending in each of the leaf nodes (John,ball,the,hit).

A simple parse tree

In a parse tree, each node is either a root node, a branch node, or a leaf node. In the above example, S is a root node, NP and VP are branch nodes, while John, ball, the, and hit are all leaf nodes.

Nodes can also be referred to as parent nodes and child nodes. A parent node is one which has at least one other node linked by a branch under it. In the example, S is a parent of both NP and VP. A child node is one which has at least one node directly above it to which it is linked by a branch of the tree. Again from our example, hit is a child node of V.

Nodes as Functions

Each of these nodes can also be called a function. However, this type of function (i.e. a node in a parse tree) is not the same as a function in mathematics or computer programming. A function in mathematics takes in zero or more inputs and returns a value.

In parse trees, a function can be a true mathematical function which "uses" its child nodes as inputs, and returns a single output to its parent. More often, however, a node in a parse tree is a static symbol such as a number, letter, or word.

The use of parse tree functions is highly dependent on the area which is using it. In the branch of evolutionary computation called genetic programming, for instance, tree functions are quite often (but not exclusively) used as mathematical-style function. In linguistics and linguistic theory, tree functions are never mathematical functions, except in certain areas of computational linguistics.

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Terminal function — A terminal function is a function (node) in a parse tree which is a leaf in that parse tree. Background A parse tree is made up of nodes and branches. In the picture below the parse tree is the entire structure, starting from S and ending in each …   Wikipedia

  • Terminal ballistics — Terminal ballistics, a sub field of ballistics, is the study of the behavior of a projectile when it hits its target. It is often referred to as stopping power when dealing with human or other living targets. Terminal ballistics is as relevant… …   Wikipedia

  • Non-homologous end joining — (NHEJ) is a pathway that repairs double strand breaks in DNA. NHEJ is referred to as non homologous because the break ends are directly ligated without the need for a homologous template, in contrast to homologous recombination, which requires a… …   Wikipedia

  • Non-motor symptoms of Parkinson's disease — Non motor symptoms in Parkinson s diseaseAlthough the most obvious symptoms of Parkinson s affect movement, there is an increasing realisation in clinical practice that non motor symptoms are at least as important in successful management. [cite… …   Wikipedia

  • Terminal (telecommunication) — For other uses, see Terminal (disambiguation). In the context of telecommunications, a terminal is a device which is capable of communicating over a line. Examples of terminals are telephones, fax machines, and network devices printers and… …   Wikipedia

  • Non-directional beacon — Radio Tower of NKR Leimen Ochsenbach, Germany This symbol denotes an NDB on an aeronaut …   Wikipedia

  • Initial and terminal objects — Terminal element redirects here. For the project management concept, see work breakdown structure. In category theory, an abstract branch of mathematics, an initial object of a category C is an object I in C such that for every object X in C,… …   Wikipedia

  • POSIX terminal interface — The POSIX terminal interface is the generalized abstraction, comprising both an Application Programming Interface for programs, and a set of behavioural expectations for users of a terminal, as defined by the POSIX standard and the Single Unix… …   Wikipedia

  • Long non-coding RNA — Long noncoding RNAs (long ncRNAs) are generally considered (somewhat arbitrarily) as non protein coding transcripts longer than 200 nucleotides. This limit is due to practical considerations including the separation of RNAs in common experimental …   Wikipedia

  • Les plates-formes Non-C2 — Liaison 16 La Liaison 16 (L16) est un standard de liaison de donnée de l OTAN pour l échange d informations tactiques entre des unités militaires. Elle est définie par le STANAG 5516. Sa mise en œuvre opérationnelle est définie dans le document… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”