Straight-line complexity

From Groupprops

Definition

Note that the actual definition of straight-line complexity as a numerical value varies a lot with the convention. What's more important is the ballpark of the definition.

Definition for a word computation problem

Consider a word in the letters . The straight-line complexity of the problem of computing in terms of is defined as 0 if is the trivial word or for some . Otherwise, it is the smallest positive integer such that we can construct the following:

  • A sequence of words in such that
  • An expression for each as either of these:
    • the inverse of an element where is in
    • the product of two elements where both and are in

The above definition of straight line complexity treats each multiplication and inversion operation as costing one line of complexity. We can define a more general straight-line complexity that associates different weights to multiplication and inversion, and then seeks to minimize the appropriately weighted combination of the multiplication and inversion steps.

Definition for a problem of computing multiple words

PLACEHOLDER FOR INFORMATION TO BE FILLED IN: [SHOW MORE]

Examples

For words in one letter, i.e., powers

Consider the word in one letter where is a positive integer. The straight-line complexity of this word is at most where is the number of ones that appear in the binary expansion of . In fact, that is the best we can achieve if we are forbidden from using inverses. The algorithm is as follows: write the binary expansion of . By repeated squaring, compute for all relevant powers, and then multiply them.

If we are allowed to use inverses, the expression becomes a little more complicated. The smallest for which using inverses allows for a concrete saving is (not using inverses would require 8 steps, whereas using inverses, we can compute , , and then multiply, using 7 steps).

The general formula seems to be:

For negative numbers , the formula seems to be:

For words in two letters

PLACEHOLDER FOR INFORMATION TO BE FILLED IN: [SHOW MORE]

Relation with word length

The straight-line complexity of a word in letters is related to its word length in two obvious ways. Let be the straight-line complexity and be the word length. Then:

  • : This is because each step of the program can at most double the length of the longest word constructed so far.
  • : Note that if the word does not involve inverses, for the obvious reason that we can multiply two at a time. If the word involves inverses, then we may need to perform inversion operations. We need to perform at most inversion operations.

Facts

  • Babai-Szemeredi reachability lemma says that for any element in a finite group and any generating set for the finite group, there is a word for the element in terms of the generating set that has straight line complexity .