Generality and Computational Cost
نویسنده
چکیده
The purpose of this note is pedagogi-cal. It discusses how one can reduce the computational cost of applying a set of operators (or predicates) by breaking them up into combinations of commonly occurring, simpler ones. This can be thought of as a process of generalization, in the sense that the common, simple operators are more "general" than the original, more complex ones. We are thus suggesting that even when one has a priori knowledge of a specialized nature (i.e., that the complex operators are applicable) , it may still be desirable to use generalized operators in order to reduce computational cost. To illustrate this idea, suppose that we want to apply a set of predicates P-,,...,P to an input I, and suppose that the cost of applying predicate Pi is (proportional to) the cardinality of its set of support Thus the total cost of applying the P's is For example, applying P. might involve a template-matching process, where Pi is true iff. a perfect match to the template is found in I. Here I could be an image, or a string (where the "template" is the right-hand side of a rule in a grammar), or a graph (where the "template" is a subgraph). In what follows, we will use the image/template metaphor. Suppose now that there exists a set of subtemplates Qj, ,Q m such that, for a concatenation of n. of X 1 the The cost of applying the 's support. If we store the match positions in a new array I 1 , then to test for P., we need only apply a template of cardin-ality n i to I'. Thus testing for all the and the total cost of the two-step matching process is Under what circumstances is the two-step cost less than the brute-force cost of applying the directly? We claim that this depends on the degree to which the Q's "generalize" the P's — i.e., on how few Q's are needed to construct all the P's. For concreteness, suppose that all the Q.'s have the same support size | and that each P. consists of the same number of Thus each P. has support size and the costs of the brute-force and two-step approaches are nrs and mr+ns, respectively. If there are few Q's, they must be used repeatedly, and we have m << ns (m=ns would mean that each Q is used only once); …
منابع مشابه
Reducing Computational and Memory Cost of Substructuring Technique in Finite Element Models
Substructuring in the finite element method is a technique that reduces computational cost and memory usage for analysis of complex structures. The efficiency of this technique depends on the number of substructures in different problems. Some subdivisions increase computational cost, but require little memory usage and vice versa. In the present study, the cost functions of computations and me...
متن کاملAn Embedded Split-Step method for solving the nonlinear Schrödinger equation in optics
In optics the nonlinear Schrödinger equation (NLSE) which modelizes wave propagation in an optical fiber is mostly solved by the Symmetric Split-Step method. The practical efficiency of the Symmetric Split-Step method is highly dependent on the computational grid points distribution along the fiber, therefore an efficient adaptive step-size control strategy is mandatory. The most common approac...
متن کاملA New Method for Improving Computational Cost of Open Information Extraction Systems Using Log-Linear Model
Information extraction (IE) is a process of automatically providing a structured representation from an unstructured or semi-structured text. It is a long-standing challenge in natural language processing (NLP) which has been intensified by the increased volume of information and heterogeneity, and non-structured form of it. One of the core information extraction tasks is relation extraction wh...
متن کاملHantzsch reaction using [Mesi]Cl as a new, efficient and BAIL catalyst
In this work, the efficiency, generality and applicability of new Bronsted acidic ionic liquid (BAIL) 1-methyl-3-(2-(sulfooxy)ethyl)-1H-imidazol-3-ium chloride {[Msei]Cl} as heterogeneous and green catalyst for organic transformations are studied. Herein, the following one-pot multi-component reactions in the presence of [Msei]Cl are investigated: (i) the synthesis of quinoxaline derivatives fr...
متن کاملPOPL: G: Refinement Types for Incremental Computational Complexity
With recent advances, programs can be compiled to efficiently respond to incremental input changes. However, there is no language-level support for reasoning about the time complexity of incremental updates. Motivated by this gap, we present CostIt, a higher-order functional language with a lightweight refinement type system for proving asymptotic bounds on incremental computation time. Type re...
متن کاملComputational Complexity of the Extended Minimum Cost Homomorphism Problem on Three-Element Domains
In this paper we study the computational complexity of the extended minimum cost homomorphism problem (Min-Cost-Hom) as a function of a constraint language, i.e. a set of constraint relations and cost functions that are allowed to appear in instances. A wide range of natural combinatorial optimisation problems can be expressed as extended Min-Cost-Homs and a classification of their complexity w...
متن کامل