Complexity index

From testwiki
Jump to navigation Jump to search

Template:Multiple issues In modern computer science and statistics, the complexity index of a function denotes the level of informational content, which in turn affects the difficulty of learning the function from examples. This is different from computational complexity, which is the difficulty to compute a function. Complexity indices characterize the entire class of functions to which the one we are interested in belongs. Focusing on Boolean functions, the detail of a class 𝖒 of Boolean functions c essentially denotes how deeply the class is articulated.

Technical definition

To identify this index we must first define a sentry function of 𝖒. Let us focus for a moment on a single function c, call it a concept defined on a set 𝒳 of elements that we may figure as points in a Euclidean space. In this framework, the above function associates to c a set of points that, since are defined to be external to the concept, prevent it from expanding into another function of 𝖒. We may dually define these points in terms of sentinelling a given concept c from being fully enclosed (invaded) by another concept within the class. Therefore, we call these points either sentinels or sentry points; they are assigned by the sentry function 𝑺 to each concept of 𝖒 in such a way that:

  1. the sentry points are external to the concept c to be sentineled and internal to at least one other including it,
  2. each concept c including c has at least one of the sentry points of c either in the gap between c and c, or outside c and distinct from the sentry points of c, and
  3. they constitute a minimal set with these properties.

The technical definition coming from Template:Harv is rooted in the inclusion of an augmented concept c+ made up of c plus its sentry points by another (c)+ in the same class.

Definition of sentry function

For a concept class 𝖒 on a space 𝔛, a sentry function is a total function 𝑺:𝖒{,𝔛}2𝔛 satisfying the following conditions:

  1. Sentinels are outside the sentineled concept (c𝑺(c)= for all c𝖒).
  2. Sentinels are inside the invading concept (Having introduced the sets c+=c𝑺(c), an invading concept c𝖒 is such that c⊈c and c+(c)+. Denoting up(c) the set of concepts invading c, we must have that if c2up(c1), then c2𝑺(c1)).
  3. 𝑺(c) is a minimal set with the above properties (No 𝑺'𝑺 exists satisfying (1) and (2) and having the property that 𝑺(c)𝑺(c) for every c𝖒).
  4. Sentinels are honest guardians. It may be that c(c)+ but 𝑺(c)c= so that c∉up(c). This however must be a consequence of the fact that all points of 𝑺(c) are involved in really sentineling c against other concepts in up(c) and not just in avoiding inclusion of c+ by (c)+. Thus if we remove c,𝑺(c) remains unchanged (Whenever c1 and c2 are such that c1c2𝑺(c2) and c2𝑺(c1)=, then the restriction of 𝑺 to {c1}up(c1){c2} is a sentry function on this set).

𝑺(c) is the frontier of c upon 𝑺.

A schematic outlook of outer sentineling functionality

With reference to the picture on the right, {x1,x2,x3} is a candidate frontier of c0 against c1,c2,c3,c4. All points are in the gap between a ci and c0. They avoid inclusion of c0{x1,x2,x3} in c3, provided that these points are not used by the latter for sentineling itself against other concepts. Vice versa we expect that c1 uses x1 and x3 as its own sentinels, c2 uses x2 and x3 and c4 uses x1 and x2 analogously. Point x4 is not allowed as a c0 sentry point since, like any diplomatic seat, it should be located outside all other concepts just to ensure that it is not occupied in case of invasion by c0.

Definition of detail

Template:AnchorThe frontier size of the most expensive concept to be sentineled with the least efficient sentineling function, i.e. the quantity

D𝖒=sup𝑺,c#𝑺(c),

is called detail of 𝖒. 𝑺 spans also over sentry functions on subsets of 𝔛 sentineling in this case the intersections of the concepts with these subsets. Actually, proper subsets of 𝔛 may host sentineling tasks that prove harder than those emerging with 𝔛 itself.

The detail D𝖒 is a complexity measure of concept classes dual to the VC dimension D𝖡C. The former uses points to separate sets of concepts, the latter concepts for partitioning sets of points. In particular the following inequality holds Template:Harv

D𝖒D𝖡C+1

See also Rademacher complexity for a recently introduced class complexity index.

Example: continuous spaces

Class C of circles in ℝ2 has detail D𝖒=2, as shown in the picture on left below. Similarly, for the class of segments on ℝ, as shown in the picture on right.

Two points x1,x2 outside c (thick circle) are sufficient to prevent a larger circle not containing them from including it
The class of segments in ℝ and two points needed to sentinel its concepts

Example: discrete spaces

The class 𝖒={c1,c2,c3,c4} on 𝔛={x1,x2,x3} whose concepts are illustrated in the following scheme, where "+" denotes an element xj belonging to ci, "-" an element outside ci, and βƒ a sentry point:

x1 x2 x3
c1= -⃝ -⃝ -
c2= -⃝ + +
c3= + -⃝ +
c4= + + +

This class has D𝖒=2. As usual we may have different sentineling functions. A worst case Template:Math, as illustrated, is: 𝐒(c1)={x1,x2},𝐒(c2)={x1},𝐒(c3)={x2},𝐒(c4)=. However a cheaper one is 𝐒(c1)={x3},𝐒(c2)={x1},𝐒(c3)={x2},𝐒(c4)=:

x1 x2 x3
c1= - - -⃝
c2= -⃝ + +
c3= + -⃝ +
c4= + + +

References