1 Introduction

Fixed point theory in partially ordered sets plays a central role in the research activity in Mathematics and Computer Science [1,2,3,4,5]. In particular, Kleene’s fixed point theorem is one of the fundamental pillars of Denotational Semantics (see, for instance, [1, 5, 6]). The aforesaid result allows to state the so-called Scott’s induction principle which models the meaning of recursive specifications in programming languages as the fixed point of non-recursive monotone self-mappings defined in partially ordered sets, in such a way that the aforesaid fixed point is the supremum of the sequence of successive iterations of the non-recursive mapping acting on a distinguished element of the model (see [7, 8]). In Scott’s approach, the non-recursive mapping models the evolution of the program execution and the partial order encodes some computational information notion so that each iteration of the mapping matches up with an element of the mathematical model which is greater than (or equal to) those that are associated to the preceding steps of the computational process. It is assumed that in each step the computational process gives more information about the meaning of the denotational specification than the preceding steps. Therefore, the aforementioned fixed point encodes the total information about the meaning provided by the elements of the increasing sequence of successive iterations and, in addition, no more information can be extracted by the fixed point than that provided by each element of such a sequence.

In order to guarantee the existence of fixed point of a monotone self-mapping, Kleene’s fixed point theorem assumes conditions about the partially ordered set (order-completeness) and the self-mapping (order-continuity). However, in many real applications one of two conditions can be unfulfilled. Motivated, in part, by this fact a few works have focused their efforts on generalized versions of Kleene’s fixed point theorem recently (see, for instance, [9,10,11]). In the original version of the celebrated Kleene fixed point theorem, and also in the aforesaid references, the assumed conditions have a global character, i.e., each element of the partially ordered set (the mathematical model) must satisfy them. However, in the aforementioned real applications, coming, for example, from Denotational Semantics or Logic Programming, to check the aforesaid conditions for all elements of the partially ordered set is unnecessary. In fact, the proof of Kleene’s fixed point theorem is based on the construction of a sequence of iterations from a fixed element and, thus, the global assumed conditions apply for warranting the desired conclusions. In the view of the preceding remark, it seems natural to wonder whether the hypothesis in the statement of Kleene’s fixed point theorem can be weakened in such a way that the new ones are better suited to the demands of the real problems (with local more than global character) and, at the same time, preserve the spirit of the original Kleene’s fixed point theorem.

In this paper we provide an affirmative answer to the question posed. Concretely, we characterize those properties that a self-mapping must satisfy in order to ensure that its set of fixed points is non-empty when a general partially ordered set is under consideration and no notion of order-completeness is assumed. Moreover, we derive a few characterization when, in addition, the partially ordered set is chain complete and the self-mapping is order-continuous. Special interest is paid to that case in which the partially ordered set is coming from a quasi-metric space, since such generalized distances have shown to be useful in Denotational Semantics, Logic Programming and Asymptotic Complexity of algorithms [2, 3, 12]. Finally, the developed theory is applied to discuss the asymptotic complexity of those algorithms whose running time of computing fulfills a recurrence equation. Thus, on the one hand, a fixed point method for asymptotic complexity is developed in such a way that those fixed point methods given in [12,13,14] and that are based on the use of contractive mappings are retrieved as a particular case. On the other hand, the aforementioned new fixed point method captures the essence of that for discussing the asymptotic complexity of Probabilistic Divide and Conquer algorithms given in [15]. Nonetheless, our new method improves the aforesaid methods because it imposes fewer requirements than those that have been assumed in the literature and, in addition, it allows to state simultaneously upper and lower asymptotic bounds for the running time computing. Besides, the new fixed point method also preserves the original Scott’s ideas providing a common framework for Denotational Semantics and Asymptotic Complexity of algorithms.

2 The fixed point theorems

This section is devoted to discern which are the minimal conditions that allow to guarantee the existence of fixed point for a self-mapping defined in partially ordered sets. In order to achieve our objective we recall a few pertinent notions.

Following [1], a partially ordered set is a pair \((X,\preceq )\) such that X is a nonempty set and \(\preceq \) is a binary relation on X which holds, for all \(x,y,z\in X\):

$$\begin{aligned}&\text {(i)} \quad x\preceq x \quad \text {(reflexivity)},\\&\text {(ii)} \quad x\preceq y \text { and }y\preceq x \Rightarrow x=y \quad \text {(antisymmetry),} \\&\text {(iii)} \quad x\preceq y\text { and }y\preceq z \quad \text {(transitivity).} \Rightarrow x\preceq z \end{aligned}$$

If \((X,\preceq )\) is a partially ordered set and \(Y\subseteq X\), then an upper bound for Y in \((X,\preceq )\) is an element \(x\in X\) such that \(y\preceq x\) for all \(y\in Y\). An element \(z\in Y\) is the minimum of Y in \((X,\preceq )\) provided that \(z\preceq y\) for all \(y\in Y\). Thus, the supremum of Y in \((X,\preceq )\), if exists, is an element \(x^\star \in X\) which is an upper bound for Y and, in addition, it is the minimum of the set \((UB(Y),\preceq )\), where \(UB(Y)=\{u\in X:u \text{ is } \text{ an } \text{ upper } \text{ bound } \text{ for } Y \}\). Moreover, fixed \(x\in X\), the sets \(\{y\in X: x\preceq y\}\) and \(\{y\in X: y\preceq x\}\) will be denoted by \(\uparrow _{\preceq } x\) and \(\downarrow _{\preceq } x\), respectively.

According to [16], a partially ordered set \((X,\preceq )\) is said to be chain complete provided that there exists the supremum of every increasing sequence. Of course, a sequence \((x_{n})_{n\in {\mathbb {N}}^\star }\) is said to be increasing whenever \(x_{n}\preceq x_{n+1}\) for all \(n\in {\mathbb {N}}\), where \({\mathbb {N}}^\star \) denotes the set \({\mathbb {N}}\cup \{0\}\) and \({\mathbb {N}}\) denotes the set of positive integer numbers.

After recalling the above notions on partially ordered sets, we present the well-known Kleene’s fixed point theorem (see [1, 5, 6, 16]). First, let us recall that a mapping \(f:X\rightarrow X\) is said to be \(\preceq \)-continuous provided that the supremum of the sequence \((f(x_{n}))_{n\in {\mathbb {N}}^\star }\) is f(x) for every increasing sequence \((x_{n})_{n\in {\mathbb {N}}}\) whose supremum in \((X,\preceq )\) exists and is x.

Theorem 1

Let \((X,\preceq )\) be a chain complete partially ordered set and let \(f:X\rightarrow X\) be a \(\preceq \)-continuous mapping. Assume that there exist \(x_{0}\in X\) such that \(x_{0}\preceq f(x_{0})\).

Then, there exist a fixed point \(x^{\star }\) which is supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\in \uparrow _{\preceq }x_{0}\). Moreover, \(x^{\star }\in \downarrow _{\preceq }y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq y_{0}\) and \(f(y_{0})\preceq y_{0}\). Furthermore, \(x^{\star }\) is the minimum fixed point in \(\uparrow _{\preceq }x_{0}\).

It is well known that each \(\preceq \)-continuous mapping is monotone. So, Kleene’s theorem cannot be applied, at least, to non-monotone mappings. However, the next example shows that there are self-mappings on a chain complete partially ordered set, which fulfill the conclusions of the above theorem, but there are not monotone (and consequently, there are not \(\preceq \)-continuous).

Example 1

Consider the chain complete partially ordered set \((\left[ 0,1\right] ,\le )\), where \(\le \) stands for the usual partial order defined on [0, 1]. Define \(f:\left[ 0,1\right] \rightarrow \left[ 0,1\right] \) by

$$\begin{aligned} f(x)=\left\{ \begin{array}{ll} 1-\frac{x}{2},&{} \quad \text { if } x\in [0,\frac{1}{2}[\\ \frac{1+x}{2}, &{} \quad \text { if } x\in [\frac{1}{2},1] \end{array}\right. . \end{aligned}$$

On the one hand, we can observe that f is not monotone on \((\left[ 0,1\right] ,\le )\), so it is not \(\le \)-continuous. Nevertheless, f has as a fixed point \(x=1\).

On the other hand, \(\frac{1}{2}\le f(\frac{1}{2})\), since \(f(\frac{1}{2})=\frac{3}{4}\). Furthermore, a straightforward computation shows that the sequence \((f^n(\frac{1}{2}))_{n\in {\mathbb {N}}^\star }\) is increasing in \(([0,1],\le )\) and, in addition, 1 is its supremum. The rest of conclusions of Theorem 1 are clearly obtained due to the fact that 1 is the supremum of [0, 1].

The preceding example suggests the possibility of providing a more general version of Kleene’s fixed point theorem where weakener conditions are assumed. To this end, we introduce the following concept related to \(\preceq \)-continuity.

Definition 1

Let \((X,\preceq )\) be a partially ordered set and let \(x_{0}\in X\). A mapping \(f:X\rightarrow X\) will be said to be orbitally \(\preceq \)-continuous at \(x_{0}\) provided that f preserves the supremum of the sequence \((f^{n}(x_{0}))_{n\in {\mathbb {N}}^\star }\), i.e., f(x) is the supremum of the sequence \((f^{n+1}(x_{0}))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq )\), whenever x is the supremum of sequence \((f^{n}(x_{0}))_{n\in {\mathbb {N}}^\star }\).

It is not hard to check that the self-mapping defined in Example 1 is orbitally \(\preceq \)-continuous at \(\frac{1}{2}\).

Notice that, initially, there is not a direct relationship between the preceding notion and the \(\preceq \)-continuity. Clearly there are \(\preceq \)-continuous self-mappings that are not orbitally \(\preceq \)-continuous such as the next example illustrates.

Example 2

Consider the partially ordered set \((\left[ 0,1\right] ,\preceq _{1})\) where \(\preceq _{1}\) is defined for all \(x,y\in [0,1]\) as follows:

$$\begin{aligned} x\preceq _{1}y \Leftrightarrow x=y \text { or } y=1. \end{aligned}$$

Define \(f:\left[ 0,1\right] \rightarrow \left[ 0,1\right] \) by \(f(x)=\frac{x}{2}\). Clearly f is \(\preceq _{1}\)-continuous, since a sequence \((x_{n})_{n\in {\mathbb {N}}^{\star }}\) is increasing in \(([0,1],\preceq _{1})\) provided that \(x_{n}=x_{n+1}\) for all \(n\in {\mathbb {N}}^{\star }\). However, f is not orbitally \(\preceq _{1}\)-continuous, for instance, at 1. Indeed, the sequence \((f^{n}(1))_{n\in {\mathbb {N}}^{\star }}\) is given by

$$\begin{aligned} f^{n}(1)=\left\{ \begin{array}{ll} 1 &{}\quad \text { if } n=0 \\ \frac{1}{2^{n}} &{} \quad \text { if } n\ge 1 \\ \end{array}\right. \end{aligned}$$

and, thus, it has 1 as the supremum in \(([0,1],\preceq _{1})\). Nevertheless, the sequence \((f^{n+1}(1))_{n\in {\mathbb {N}}^{\star }}\) is given by \(f^{n+1}(1)=\frac{1}{2^{n+1}} \) for all \(n\in {\mathbb {N}}^{\star }\) and it has not f(1) as the supremum in \(([0,1],\preceq _{1})\).

It must be pointed out that, given a partially ordered set \((X,\preceq )\) and \(x_{0}\in X\), every \(\preceq \)-continuous self-mapping is orbitally \(\preceq \)-continuous at \(x_{0}\) whenever \(x_{0}\preceq f(x_{0})\).

The next example shows that there are orbitally \(\preceq \)-continuous self-mappings that are not \(\preceq \)-continuous.

Example 3

Consider the partially ordered set \((X,\preceq _{X})\) such that \(X=[0,1]\cup \{2\}\) and the partial order \(\preceq _{X}\) defined on X as follows:

$$\begin{aligned} x\preceq _{X}y\Leftrightarrow \left\{ \begin{array}{ll} x,y\in [0,1] \text{ and } y\le x&{}\\ \text{ or } &{}\\ x\in ]0,1]\cup \{2\} \text{ and } y=2&{} \\ \end{array}\right. \!\!\!. \end{aligned}$$

Define the mapping \(f(x)=0\) for all \(x\in [0,1]\) and \(f(2)=2\). It is clear that f is not monotone, since \(1\preceq _{X} 2\) but \(0=f(1)\not \preceq _{X}f(2)=2\). So, it is not \(\preceq _{X}\)-continuous. It is clear that f is orbitally \(\preceq _{X}\)-continuous at \(x_{0}\), with \(x_{0}\in [0,1]\cup \{2\}\).

Even more, orbitally \(\preceq \)-continuity at any \(x_{0}\) does not imply that the sequence \((f^{n}(x_{0}))_{n\in {\mathbb {N}}^\star }\) is increasing, as demonstrates the following example.

Example 4

Consider the chain complete partially ordered set \((\left[ 0,1\right] ,\le )\) introduced in Example 1. Define \(f:\left[ 0,1\right] \rightarrow \left[ 0,1\right] \) by \(f(x)=\frac{x}{2}\). Take \(x_0\in [0,1]\). Then, the sequence \((f^{n}(x_0))_{n\in {\mathbb {N}}^\star }\) is decreasing, since \(f^n(x_0)=\frac{x_0}{2^n}\), for each \(n\in {\mathbb {N}}\). Furthermore, \(x_0\) is the supremum of \((f^{n}(x_0))_{n\in {\mathbb {N}}^\star }\) and \(\frac{x_0}{2}\) is the supremum of the sequence \((f^{n+1}(x_0))_{n\in {\mathbb {N}}^\star }\). Since \(f(x_0)=\frac{x_0}{2}\) we have that f is orbitally \(\le \)-continuous at 1.

Another restrictive condition of Theorem 1 is the assumption of chain completeness of the partially ordered set. Indeed, the example below shows an instance of self-mapping defined in a non chain complete partially ordered which has a fixed point satisfying all the conclusions in the aforesaid theorem.

Example 5

Consider the partially ordered set \(([0,2[,\le )\), where \(\le \) stands for the usual partial order defined on [0, 2[. Obviously, \(([0,2[,\le )\) is not chain complete. The mapping \(f:[0,2[\rightarrow [0,2[\) given by \(f(x)=\frac{x+1}{2}\) has 1 as a fixed point. Moreover, the sequence \((f^{n}(0))_{n\in {\mathbb {N}}^\star }\) is increasing and f is orbitally \(\preceq \)-continuous at 0. Obviously 1 is the supremum of \((f^{n}(0))_{n\in {\mathbb {N}}^\star }\) and \(1\in \downarrow _{\le }y\) such that \(y\in [1,2[\) (notice that \(f(y)\le y \Leftrightarrow 1\le y\) and \(0\le y\) for all \(y\in [1,2[\)).

In order to yield a generalized Kleene’s fixed point theorem, the above exposed facts suggest the possibility of demanding only conditions on the sequence \((f^{n}(x_{0}))_{n\in {\mathbb {N}}^\star }\), for a given \(x_0\), in order to weaken to the maximum the assumptions in the statement of Kleene’s fixed point theorem.

The next result shows that such a Kleene type fixed point is possible in the suggested direction in such a way that it provides two characterizations of those properties that a self-mappings must satisfy in order to have a fixed point in partially ordered sets (without order-completeness assumptions). Before stating it, let us point out that, given a partially ordered set \((X,\preceq )\) and a mapping \(f:X\rightarrow X\), we will denote by Fix(f) the set \(\{x\in X: f(x)=x\}\).

Theorem 2

Let \((X,\preceq )\) be a partially ordered set and let \(f:X\rightarrow X\) be a mapping. Then the following are equivalent:

  1. (1)

    \(x^{\star }\in Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (2.1)

      The sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq )\),

    2. (2.2)

      \(x^{\star }\) is the supremum of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\in \uparrow _{\preceq }x_{0}\),

    3. (2.3)

      f is orbitally \(\preceq \)-continuous at \(x_{0}\).

  3. (3)

    There exists \(z_{0}\in X\) such that

    1. (3.1)

      \(z_0\preceq f(z_0)\) in \((X,\preceq )\),

    2. (3.2)

      \(x^{\star }\) is the supremum of \((f^n(z_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\in \uparrow _{\preceq }z_{0}\),

    3. (3.3)

      f is orbitally \(\preceq \)-continuous at \(z_{0}\).

Proof

To show that \((1)\Rightarrow (2)\) it is sufficient to set \(x^{\star }=x_{0}\) with \(x^{\star }\in Fix(f)\). Furthermore, it is not hard to check that \((2)\Rightarrow (3)\). Indeed, if we take \(z_0=x_0\), then (3) is satisfied, since \(z_0\preceq f(z_0),\) due to the sequence \((f^nz_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq )\). So, it remains to prove that \((3)\Rightarrow (1)\). To this end, suppose that there exist \(z_{0}\in X\) satisfying (3.1), (3.2) and (3.3). On the one hand, since \(x^\star \) is the supremum of the sequence \((f^n(z_0))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq )\) and \(z_0\preceq f(z_0)\), then \(x^\star \) is the supremum \((f^{n+1}(z_0))_{n\in {\mathbb {N}}^\star }\). On the other hand, since f is orbitally \(\preceq \)-continuous at \(z_{0}\) we have that \(f(x^{\star })\) is the supremum of \((f^{n+1}(z_0))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq )\). Hence \(f(x^{\star })=x^{\star }\).

The next example shows that Theorem 2 does not give, in general, the uniqueness of fixed point.

Example 6

Consider the partially ordered set \(([0,1],\le )\) introduced in Example 1. Let \(f:[0,1]\rightarrow [0,1]\) be the mapping given by \(f(x)=x\) for all \(x\in [0,1]\). It is obvious that the sequence \((f^n(x_{0}))_{n\in {\mathbb {N}}^\star }\) is increasing in \(([0,1],\le )\), for all \(x_{0}\in [0,1]\), and in addition, \(x_{0}\) is the supremum of \((f^n(x_{0}))_{n\in {\mathbb {N}}^\star }\) in \(([0,1],\le )\). Moreover, f is orbitally \(\le \)-continuous at \(x_{0}\), for all \(x_{0}\in [0,1]\). Clearly, \(Fix(f)=[0,1]\).

In the particular case in which the self-mapping is \(\preceq \)-continuous we get the following result.

Corollary 1

Let \((X,\preceq )\) be a partially ordered set and let \(f:X\rightarrow X\) be a mapping. Assume that there exists \(x_{0}\in X\) such that

  1. (1)

    \(x_0\preceq f(x_0)\),

  2. (2)

    \(x^{\star }\) is the supremum of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\in \uparrow _{\preceq }x_{0}\),

  3. (3)

    f is \(\preceq \)-continuous.

Then \(x^{\star }\in Fix(f)\ne \emptyset \). Moreover, \(x^{\star }\in \downarrow _{\preceq }y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq y_{0}\) and \(f(y_{0})\preceq y_{0}\). Furthermore, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq }x_{0}\) in \((X,\preceq )\).

Proof

Since f is monotone and \(x_{0}\preceq f(x_{0})\) we have that \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq )\). Since f is \(\preceq \)-continuous and \(x_{0}\preceq f(x_{0})\) we have that f is orbitally \(\preceq \)-continuous at \(x_{0}\). Hence the existence of \(x^{\star }\in X\) such that \(x^{\star }\in Fix(f)\) is guaranteed by Theorem  2.

Next we assume that there exists \(y_{0}\in X\) such that \(x_{0}\preceq y_{0}\) and that \(f(y_{0})\preceq y_{0}\). Then \(f^{n}(x_{0})\preceq f(y_{0})\preceq y_{0}\) for all \(n\in {\mathbb {N}}\). It follows that \(y_{0}\) is an upper bound of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq )\). Moreover, since \(x^{\star }\) is the supremum of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq )\) we deduce that \(x^{\star }\preceq y_{0}\). Whence we obtain that \(x^{\star }\in \downarrow _{\preceq }y_{0}\).

It remains to prove that \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq }x_{0}\) in \((X,\preceq )\). With this aim we suppose that there exists \(y^{\star }\in Fix(f)\cap \uparrow _{\preceq }x_{0}\). As it was pointed out above f is monotone and, thus, \(f^{n}(x_{0})\preceq y^{\star }\). So, since \(x^{\star }\) is the supremum of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) we have that \(x^{\star }\preceq y^{\star }\) as we claimed.

Taking into account Theorem 2 we obtain the next result.

Corollary 2

Let \((X,\preceq )\) be a chain complete partially ordered set and let \(f:X\rightarrow X\) be a mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      The sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq )\),

    2. (b)

      f is orbitally \(\preceq \)-continuous at \(x_{0}\).

In addition, there exists \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq }x_{0}\).

Proof

By the same arguments as in Theorem 2 we have that \((1)\Rightarrow (2)\). To show that \((2)\Rightarrow (1)\), assume that there exists \(x_0\in X\) satisfying (a) and (b). The fact that the partially ordered set \((X,\preceq )\) is chain complete provides the existence of \(x^{\star }\in X\) such that \(x^{\star }\) is the supremum of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq }x_{0}\). By Theorem 2 we obtain that \(x^{\star }\in Fix(f)\) and, hence, that \(Fix(f)\ne \emptyset \).

Combining Corollaries 1 and 2 we deduce the following one.

Corollary 3

Let \((X,\preceq )\) be a chain complete partially ordered set and let \(f:X\rightarrow X\) be a mapping. Assume that there exists \(x_{0}\in X\) such that

  1. (1)

    \(x_0\preceq f(x_0)\),

  2. (2)

    f is \(\preceq \)-continuous.

Then there exists \(x^{\star }\in Fix(f)\ne \emptyset \). Moreover, \(x^{\star }\in \downarrow _{\preceq }y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq y_{0}\) and \(f(y_{0})\preceq y_{0}\). Furthermore, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq }x_{0}\) in \((X,\preceq )\).

When the self-mapping is assumed to be only monotone (not \(\preceq \)-continuous), Theorem 2 yields the following results which provide a bit more information about the fixed point than the aforesaid theorem and improves Corollary 1.

Corollary 4

Let \((X,\preceq )\) be a partially ordered set and let \(f:X\rightarrow X\) be a monotone mapping. The following are equivalent:

  1. (1)

    \(x^{\star }\in Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      \(x_{0}\preceq f(x_{0})\),

    2. (b)

      \(x^{\star }\) is the supremum of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\in \uparrow _{\preceq }x_{0}\),

    3. (c)

      f is orbitally \(\preceq \)-continuous at \(x_{0}\).

In addition, \(x^{\star }\in \downarrow _{\preceq }y_{0}\) provided that \(y_{0}\in X\) such that \(y_{0}\in \uparrow _{\preceq }x_{0}\) and \(f(y_{0})\preceq y_{0}\). Moreover, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq }x_{0}\) in \((X,\preceq )\).

Proof

\((2)\Rightarrow (1)\). Since \(x_{0}\preceq f(x_{0})\) and f is monotone we have that the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq )\). So all assumptions in the statement of Theorem 2 are hold. Therefore, Theorem 2 gives that there exists \(x^{\star }\in Fix(f)\) which is the supremum of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\in \uparrow _{\preceq }x_{0}\).

The same arguments to those given in the proof of Corollary 1 can be applied to conclude the remainder assertions in the statement of the result.

To prove that \((1)\Rightarrow (2)\) it is enough to take \(x_{0}=x^{\star }\) with \(x^{\star }\in Fix(f)\).

The next example shows that we cannot omit the monotony of the self-mapping in the preceding result in order to guarantee that “\(x^{\star }\in \downarrow _{\preceq }y_{0}\) provided that \(y_{0}\in X\) such that \(y_{0}\in \uparrow _{\preceq }x_{0}\) and \(f(y_{0})\preceq y_{0}\)”.

Example 7

Consider the partially ordered set \((X,\preceq _{X})\) and the self-mapping introduced in Example 3. It is clear that \(0\in Fix(f)\). Corollary 4 guarantees that there exists \(x_{0}\in X\) (\(x_{0}\in [0,1]\)) such that \(x_{0}\preceq _{X} f(x_{0})\), 0 is the supremum of \((f^n(x_{0}))_{n\in {\mathbb {N}}^\star }\) and f is orbitally \(\preceq _{X}\)-continuous at \(x_{0}\). Moreover, it is obvious that \(f(2)\preceq _{X} 2\) and \(x_{0}\preceq _{X}2\) for all \(x_{0}\in ]0,1]\). However, \(0\not \preceq _{X}2\).

The chain completeness of the partially ordered set allows to refine Corollary 4 obtaining the result below.

Corollary 5

Let \((X,\preceq )\) be a chain complete partially ordered set and let \(f:X\rightarrow X\) be a monotone mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      \(x_{0}\preceq f(x_{0})\),

    2. (b)

      f is orbitally \(\preceq \)-continuous at \(x_{0}\).

In addition, there exists \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq }x_{0}\). Moreover, \(x^{\star }\in \downarrow _{\preceq }y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq y_{0}\) and \(f(y_{0})\preceq y_{0}\). Furthermore, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq }x_{0}\) in \((X,\preceq )\).

Proof

\((1)\Rightarrow (2)\). It is sufficient to take \(x^{\star }\in Fix(f)\) and set \(x_{0}=x^{\star }\).

\((2)\Rightarrow (1)\). Since f is monotone we have that the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq )\). The chain completeness of \((X,\preceq )\) warranties the existence of the supremum \(x^{\star }\) of \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq )\) and so \(x^{\star }\in \uparrow _{\preceq }x_{0}\). Besides, \(x^{\star }\in Fix(f)\) by Corollary 4.

Similar arguments to those given in Corollary 1 apply to show that \(x^{\star }\in \downarrow _{\preceq }y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq y_{0}\) and \(f(y_{0})\preceq y_{0}\) and to show that, in addition, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq }x_{0}\) in \((X,\preceq )\).

Observe that Corollary 5 improves the celebrated Kleene fixed point theorem (see Theorem 1).

Let us recall that some distinguished partially ordered sets which play a central role in Computer Science are those that come from a quasi-metric space (see, for instance, [2, 3]). In the following we focus our attention on obtaining appropriate versions of the exposed results in those cases in which the partial order is induced by a quasi-metric. To this end, we recall a few notions about quasi-metric spaces that we will require later on.

Following [17] (see also [2]), a quasi-metric on a nonempty set X is a function \(d:X\times X\rightarrow \)\({\mathbb {R}}^{+}\) such that for all \(x,y,z\in X\):

$$\begin{aligned}&\text {(i)} \quad d(x,y)=d(y,x)=0\Leftrightarrow x=y, \\&\text {(ii)} \quad d(x,z)\le d(x,y)+d(y,z). \end{aligned}$$

Each quasi-metric d on a set X induces a \(T_{0}\) topology \(\tau (d) \) on X which has as a base the family of open d-balls \( \{B_{d}(x,r):x\in X,\)\(r>0\},\) where \(B_{d}(x,r)=\{y\in X:d(x,y)<r\}\) for all \(x\in X\) and \(r>0.\)

A quasi-metric space is a pair (Xd) such that X is a nonempty set and d is a quasi-metric on X.

If d is a quasi-metric on a set X, then the functions \(d^{-1}\) and \(d^{s}\) defined on \(X\times X\) by \(d^{-1}(x,y)=d(y,x)\) and \(d^{s}(x,y)=\max \{d(x,y),d^{-1}(x,y)\}\) for all \(x,y\in X\) are a quasi-metric and a metric on X, respectively.

Every quasi-metric space (Xd) becomes a partially ordered set endowed with the specialization partial order \(\preceq _{d}\). The specialization partial order \(\preceq _{d}\) is defined on X as follows: \(x\preceq _{d}y \Leftrightarrow d(x,y)=0\) (see [2]).

According to [18], a quasi-metric space (Xd) is chain complete provided that the associated partially ordered set \((X,\preceq _{d})\) is chain complete. Clearly from the preceding results we get a sequence of corollaries when the partial order is assumed to be the specialization partial order coming from a quasi-metric. We only stress two of the aforementioned results, when the partial order matches up with the specialization one, because they will be of special interest later on.

Corollary 6

Let (Xd) be a chain complete quasi-metric space and let \(f:X\rightarrow X\) be a mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      The sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq _{d})\),

    2. (b)

      f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

In addition, there exists \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq _{d}}x_{0}\).

Notice that the preceding result comes from Corollary 2. If in addition, we demand monotony on the mapping we obtain the next corollary which is derived from Corollary 5.

Corollary 7

Let (Xd) be a chain complete quasi-metric space and let \(f:X\rightarrow X\) be a monotone mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      \(x_{0}\preceq _{d} f(x_{0})\),

    2. (b)

      f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

In addition, there exist \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq _{d}}x_{0}\). Moreover, \(x^{\star }\in \downarrow _{\preceq _{d}}y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq _{d} y_{0}\) and \(f(y_{0})\preceq _{d} y_{0}\). Furthermore, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq _{d}}x_{0}\) in \((X,\preceq _{d})\).

It must be stressed that Corollary 7 improves Theorem 7 in [18], since it gives a characterization about the existence of fixed point. Notice that the aforesaid Theorem 7 only proves the implication \((2)\Rightarrow (1)\) when the self-mapping is \(\preceq _{d}\)-continuous. Besides, Corollary 7 yields information about the fixed point in the particular case in which there exists “\(y_{0}\in X\) such that \(x_{0}\preceq _{d} y_{0}\) and \(f(y_{0})\preceq _{d} y_{0}\)” and such an information is not provided by Theorem 7.

It seems natural to wonder whether there are a wide number of examples of chain complete quasi-metric spaces (Xd), or on the contrary if it is strange to find instances of this type of spaces. The next results answer the posed question affirmative, i.e., showing that the so-called \(\preceq _{d}\)-complete (in the sense of [18]) provide a wide class of quasi-metric spaces that satisfy the aforesaid property (see Propositions 1 and 2 below). Before introducing the announced result let us recall that a quasi-metric space (Xd) is \(\preceq _{d}\)-complete provided that each increasing sequence \((x_{n})_{n\in {\mathbb {N}}}\) in \((X,\preceq _{d})\) converges with respect to \(\tau (d^{s})\).

In view of the above introduced notion we show that there are a wide class of quasi-metric spaces which are \(\preceq _{d}\)-complete. To this end, let us recall a few appropriate notions of completeness that arise in a natural way in the quasi-metric framework.

According to [19], a sequence \((x_{n})_{n\in {\mathbb {N}}}\) in a quasi-metric space (Xd) is said to be right (left) K-Cauchy if, given \(\varepsilon >0\), there exists \(n_{0}\in {\mathbb {N}}\) such that \(d(x_{m},x_{n})<\varepsilon \) (\(d(x_{n},x_{m})<\varepsilon \)) for all \(m\ge n\ge n_{0}\). A quasi-metric space (Xd) is said to be right K-sequentially complete provided that every right K-Cauchy sequence converges with respect to \(\tau (d)\). Following [20] (see also [21]), a quasi-metric space (Xd) is left (right) Smyth complete provided that every left (right) K-Cauchy sequence converges with respect to \(\tau (d^{s})\). On account of [22], a quasi-metric space (Xd) is called weightable provided the existence of a function \(w_{d}:X\rightarrow {\mathbb {R}}^{+}\) such that

$$\begin{aligned} d(x,y)+w_{d}(x)=d(y,x)+w_{d}(y) \end{aligned}$$

for all \(x,y\in X\). Finally, a quasi-metric space (Xd) is said to be bicomplete if the induced metric space \((X,d^{s})\) is complete (see, for instance, [17]).

Next we show that all preceding classes of “complete” quasi-metric spaces are instances of \(\preceq _{d}\)-complete quasi-metric spaces. To this end, we count with the help of Lemma 1 whose proof we omit because it was given in [18].

Lemma 1

Let (Xd) be a quasi-metric space. If \(x\in X\) and \((x_{n})_{n\in {\mathbb {N}}}\) is an increasing sequence in \((X,\preceq _{d})\) which converges to x with respect to \(\tau (d^{s})\), then x is the supremum of \((x_{n})_{n\in {\mathbb {N}}}\) in \((X,\preceq _{d})\).

Proposition 1

Let (Xd) be a quasi-metric space such that one of the following assertions holds:

  1. 1.

    (Xd) is left Smyth complete,

  2. 2.

    \((X,d^{-1})\) is right Smyth complete,

  3. 3.

    (Xd) is weightable and bicomplete.

Then (Xd) is \(\preceq _{d}\)-complete.

Proof

  1. 1.

    Let \((x_{n})_{n\in {\mathbb {N}}}\) be an increasing sequence in \((X,\preceq _{d})\). Then there exists \(n_{0}\in {\mathbb {N}}\) such that \(d(x_{n},x_{m})=0\) for all \(m\ge n\ge n_{0}\). Thus \(d(x_{n},x_{m})=0\) for all \(m\ge n\ge n_{0}\). It follows that the sequence \((x_{n})_{n\in {\mathbb {N}}}\) is left K-Cauchy in (Xd). Since the quasi-metric space (Xd) is left Smyth complete we deduce the existence of \(x\in X\) such that \((x_{n})_{n\in {\mathbb {N}}}\) converges to x with respect to \(\tau (d^{s})\). By Lemma 1 we obtain that x is the supremum of \((x_{n})_{n\in {\mathbb {N}}}\) in \((X,\preceq _{d})\).

  2. 2.

    Let \((x_{n})_{n\in {\mathbb {N}}}\) be an increasing sequence in \((X,\preceq _{d})\). Then there exists \(n_{0}\in {\mathbb {N}}\) such that \(d(x_{n},x_{m})=0\) for all \(m\ge n\ge n_{0}\). Hence we have that \(d^{-1}(x_{m},x_{n})=0\) for all \(m\ge n\ge n_{0}\). Since the quasi-metric space \((X,d^{-1})\) is right Smyth complete we deduce the existence of \(x\in X\) such that \((x_{n})_{n\in {\mathbb {N}}}\) converges to x with respect to \(\tau (d^{s})\). By Lemma 1 we obtain that x is the supremum of \((x_{n})_{n\in {\mathbb {N}}}\) in \((X,\preceq _{d})\).

  3. 3.

    On account of [17], every weightable bicomplete quasi-metric space is always left Smyth complete.

The following result states that every quasi-metric, which is complete in any sense of Proposition 1, is chain complete.

Proposition 2

Let (Xd) be a \(\preceq _{d}\)-complete quasi-metric space. Then \((X,\preceq _{d})\) is chain complete.

Proof

Let \((x_{n})_{n\in {\mathbb {N}}}\) be an increasing sequence in \((X,\preceq _{d})\). Since the quasi-metric space (Xd) is \(\preceq _{d}\)-complete we have that there exists \(x\in X\) such that \((x_{n})_{n\in {\mathbb {N}}}\) converges to x with respect to \(\tau (d^{s})\). By Lemma 1 we deduce that x is the supremum of \((x_{n})_{n\in {\mathbb {N}}}\) in \((X,\preceq _{d})\). It follows that \((X,\preceq _{d})\) is chain complete.

From Corollary 6 we deduce the next two results.

Corollary 8

Let (Xd) be a \(\preceq _{d}\)-complete quasi-metric space and let \(f:X\rightarrow X\) be a mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      The sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq _{d})\),

    2. (b)

      f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

In addition, there exists \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq _{d}}x_{0}\).

Proof

By Proposition 2 we have that the partially ordered set \((X,\preceq _{d})\) is chain complete. Applying Corollary 6 we obtain the desired conclusions.

Corollary 9

Let (Xd) be a quasi-metric space such that one of the following assertions holds:

  1. 1.

    (Xd) is left Smyth complete,

  2. 2.

    \((X,d^{-1})\) is right Smyth complete,

  3. 3.

    (Xd) is weightable and bicomplete.

Let \(f:X\rightarrow X\) be a mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      The sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq _{d})\),

    2. (b)

      f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

In addition, there exists \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq _{d}}x_{0}\).

From Corollaries 7 and 9 we derive the next two results that will play a central role in our subsequent discussion.

Corollary 10

Let (Xd) be a \(\preceq _{d}\)-complete quasi-metric space and let \(f:X\rightarrow X\) be a monotone mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      \(x_{0}\preceq _{d} f(x_{0})\),

    2. (b)

      f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

In addition, there exists \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq _{d}}x_{0}\). Moreover, \(x^{\star }\in \downarrow _{\preceq _{d}}y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq _{d} y_{0}\) and \(f(y_{0})\preceq _{d} y_{0}\). Furthermore, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq _{d}}x_{0}\) in \((X,\preceq _{d})\).

Proof

By Proposition 2 we have that the partially ordered set \((X,\preceq _{d})\) is chain complete. Applying Corollary 7 we obtain the desired conclusions.

Corollary 11

Let (Xd) be a quasi-metric space such that one of the following assertions holds:

  1. 1.

    (Xd) is left Smyth complete,

  2. 2.

    \((X,d^{-1})\) is right Smyth complete,

  3. 3.

    (Xd) is weightable and bicomplete.

Let \(f:X\rightarrow X\) be a monotone mapping. Then the following are equivalent:

  1. (1)

    \(Fix(f)\ne \emptyset \).

  2. (2)

    There exists \(x_{0}\in X\) such that

    1. (a)

      \(x_{0}\preceq _{d} f(x_{0})\),

    2. (b)

      f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

In addition, there exists \(x^{\star }\in Fix(f)\) such that \(x^{\star }\) is the supremum of the sequence \((f^n(x_0))_{n\in {\mathbb {N}}^\star }\) and, thus, \(x^{\star }\uparrow _{\preceq _{d}}x_{0}\). Moreover, \(x^{\star }\in \downarrow _{\preceq _{d}}y_{0}\) provided that \(y_{0}\in X\) such that \(x_{0}\preceq _{d} y_{0}\) and \(f(y_{0})\preceq _{d} y_{0}\). Furthermore, \(x^{\star }\) is the minimum of \(Fix(f)\cap \uparrow _{\preceq _{d}}x_{0}\) in \((X,\preceq _{d})\).

3 The application

In 1995, Schellekens developed a new mathematical method to provide the asymptotic upper bounds of those algorithms whose running time of computing satisfies a recurrence equation (see [12]). This method is based on the use of the so-called complexity space. Let us recall that the complexity space is the quasi-metric space \(({\mathcal {C}},d_{{\mathcal {C}}})\) where

$$\begin{aligned} {\mathcal {C}}=\left\{ f:{\mathbb {N}}\rightarrow {\mathbb {R}}^{+}: \sum _{n=1}^{\infty } 2^{-n}f(n)<\infty \right\} \end{aligned}$$

and the quasi-metric \(d_{{\mathcal {C}}}\) is given by

$$\begin{aligned} d_{{\mathcal {C}}}(f,g)=\sum _{n=1}^{\infty } 2^{-n}\left( \max \left( \frac{1}{g(n)}-\frac{1}{f(n)},0 \right) \right) . \end{aligned}$$

On account of [12], each algorithm A can be associated to a function \(f_{A}\in {\mathcal {C}}\) such that \(f_{A}(n)\) represents the time taken by A to solve the problem for which A has been designed when the size of input data is \(n\in {\mathbb {N}}\). The mappings belonging to \({\mathcal {C}}\) were called complexity functions in [12].

Observe that the condition “\(\sum _{n=1}^{\infty } 2^{-n}f(n)<\infty \)” which is used to define \({\mathcal {C}}\) is not restrictive, since it is held by every computable algorithm, i.e., it is fulfilled by all algorithms B with \(f_{B}(n)\le 2^{n}\) for all \(n\in {\mathbb {N}}\). Moreover, the value \(d_{{\mathcal {C}}}(f_{A},f_{B})\) can be understood as the relative progress made in lowering the complexity by replacing any algorithm A with complexity function \(f_{A}\) by any algorithms B with complexity function \(f_{B}\). Thus, the condition \(d_{{\mathcal {C}}}(f_{A},f_{B})=0\) (or, equivalently, \(f_{A}\preceq _{d_{{\mathcal {C}}}} f_{B}\)) can be interpreted as the algorithm A is at least as efficient as the algorithm B, since \(d_{{\mathcal {C}}}(f_{A},f_{B})=0 \Leftrightarrow f_{A}(n)\le f_{B}(n)\) for all \(n\in {\mathbb {N}}\).

Notice that, given \(g\in {\mathcal {C}}\), \(d_{{\mathcal {C}}}(f_{A},g)=0\) implies that \(f_{A}\in {\mathcal {O}}(g)\), where \({\mathcal {O}}(g)=\{f\in {\mathcal {C}}: \text{ there } \text{ exists } c\in {\mathbb {R}}^{+} \text{ and } n_{0}\in {\mathbb {N}} \text{ with } f_{A}(n)\le c g(n) \) for all \( n\ge n_{0}\}\). According to [23], when the precise information about the running time of computing \(f_{A}\) of an algorithm A is not known, the fact that \(f_{A}\in {\mathcal {O}}(g)\) yields an asymptotic upper bound of the time taken by A in order to solve the problem under consideration. It must be stressed that the condition \(d_{{\mathcal {C}}}(g,f_{A})=0\) can be also interpreted as \(f_{A}\in \varOmega (g)\), where \(\varOmega (g)=\{f\in {\mathcal {C}}: \text{ there } \text{ exists } c\in {\mathbb {R}}^{+} \text{ and } n_{0}\in {\mathbb {N}} \text{ with } cg(n)\le f(n) \text{ for } \text{ all } n\ge n_{0}\}\). Of course, from a computational viewpoint the fact that \(f_{A}\in \varOmega (g)\) provides that the mapping g gives an asymptotic lower bound of the running time of computing of the algorithm A.

Observe that the asymmetry of \(d_{{\mathcal {C}}}\) plays a central role in order to provide information about the increase in complexity whenever an algorithm is replaced by another one. Clearly, a metric would be able to yield information on the increase but it, however, will not reveal which algorithm is more efficient.

The utility of the complexity space \(({\mathcal {C}},d_{{\mathcal {C}}})\) was shown by Schellekens in [12], where he gave an alternative proof of the fact that the Mergesort has optimal asymptotic average running time of computing, i.e., \(f_{M}\in {\mathcal {O}}(f_{\log })\cap \varOmega (f_{\log })\), where \(f_{M}\) represents the running time of the Mergesort and \(f_{\log }\in {\mathcal {C}}\) such that \(f_{log}(1)=c\) (\(c\in {\mathbb {R}}^{+}\)) and \(f_{log}(n)=n\log _{2}(n)\) for all \(n\in {\mathbb {N}}\) with \(n>1\). To achieve the mentioned target, Schellekens developed a technique based on the use of the celebrated Banach fixed point theorem. The aforesaid fixed point technique was applied to analyze those algorithms whose running time of computing satisfies a Divide and Conquer recurrence equation. Let us recall briefly that a Divide and Conquer recurrence equation is given as follows (see [12, 23] for a detailed discussion):

$$\begin{aligned} T(n)=\left\{ \begin{array}{ll} c&{} \quad \text { if } n=1,\\ aT(\frac{n}{b})+h(n)&{} \quad \text { if } n\in {\mathbb {N}}_{b},\\ \end{array}\right. \end{aligned}$$
(1)

where \({\mathbb {N}}_{b}=\{b^{k}:k\in {\mathbb {N}}\}\), \(c\in {\mathbb {R}}^{+}\), \(a,b\in {\mathbb {N}}\) with \(a,b>1\) and \(h\in {\mathcal {C}}\) with \(h(n)<\infty \) for all \(n\in {\mathbb {N}}\).

Set \({\mathcal {C}}_{b,c}=\{f\in {\mathcal {C}}: f(1)=c \text { and } f(n)=\infty \text { for all } n\in {\mathbb {N}}\setminus {\mathbb {N}}_{b} \text { with } n>1\}\). It is clear that a mapping \(f\in {\mathcal {C}}_{b,c}\) is a solution to the recurrence equation (1) if and only if f is a fixed point of the mapping \(\varPhi _{T}:{\mathcal {C}}_{b,c}\rightarrow {\mathcal {C}}_{b,c}\) associated with the recurrence equation (1) and given by

$$\begin{aligned} \varPhi _{T}(f)(n)=\left\{ \begin{array}{ll} c &{} \quad \text {if }n=1, \\ af(\frac{n}{b})+h(n) &{} \quad \text {if } n\in {\mathbb {N}}_{b}, \\ \infty &{} \quad \text { otherwise} , \end{array} \right. \end{aligned}$$
(2)

for all \(f\in {\mathcal {C}}_{b,c}.\)

Concretely, the fixed point technique introduced by Schellekens is given by the following result:

Theorem 3

The quasi-metric space \(({\mathcal {C}}_{b,c},d_{{\mathcal {C}}})\) is left Smyth complete and the mapping \(\varPhi _{T}\) satisfies that \(d_{{\mathcal {C}}}(\varPhi _{T}(f),\varPhi _{T}(g))\le \frac{1}{2} d_{{\mathcal {C}}}(f,g)\) for all \(f,g\in {\mathcal {C}}_{b,c}\). Thus, a Divide and Conquer recurrence of the form (1) has a unique solution \(f_{T}\in {\mathcal {C}}_{b,c}\). Moreover, the following assertions hold:

  1. 1.

    If there exists \(g\in {\mathcal {C}}_{b,c}\) such that \(g\preceq _{d_{{\mathcal {C}}}} \varPhi _{T}(g)\), then \(f_{T}\in \varOmega (g)\).

  2. 2.

    If there exists \(g\in {\mathcal {C}}_{b,c}\) such that \(\varPhi _{T}(g)\preceq _{d_{{\mathcal {C}}}} g\), then \(f_{T}\in {\mathcal {O}}(g)\).

The technique introduced by the above result was tested and illustrated successfully with the following particular case of the recurrence equation (1):

$$\begin{aligned} T_{M}(n)=\left\{ \begin{array}{ll} c&{} \quad \text { if } n=1,\\ 2T_{M}\left( \frac{n}{2}\right) +\frac{n}{2}&{}\quad \text { if } n\in {\mathbb {N}}_{2},\\ \end{array}\right. \end{aligned}$$
(3)

where \(c\in {\mathbb {R}}^{+}\). Therefore Schellekens proved that the mapping \(\varPhi _{T_{M}}:{\mathcal {C}}_{2,c}\rightarrow {\mathcal {C}}_{2,c}\), defined by

$$\begin{aligned} \varPhi _{T_{M}}(f)(n)=\left\{ \begin{array}{ll} c &{}\quad \text {if }n=1, \\ 2f(\frac{n}{2})+\frac{n}{2} &{}\quad \text {if } n\in {\mathbb {N}}_{2}, \\ \infty &{}\quad \text { otherwise} , \end{array} \right. \end{aligned}$$
(4)

for all \(f\in {\mathcal {C}}_{2,c}\), satisfies the following: \(g_{1}\preceq _{d_{{\mathcal {C}}}} \varPhi _{T_{M}}(g_{1})\) and \(\varPhi _{T_{M}}(g_{2})\preceq _{d_{{\mathcal {C}}}} g_{2}\) for any \(g\in {\mathcal {C}}_{2,c}\) if and only if \(g_{1}=g_{2}\) and they are defined by

$$\begin{aligned} g(n)=\left\{ \begin{array}{ll} c &{}\quad \text {if }n=1, \\ \frac{1}{2} n\log _{2}(n) &{}\quad \text {if } n\in {\mathbb {N}}_{2}, \\ \infty &{}\quad \text { otherwise} , \end{array} \right. \end{aligned}$$
(5)

In [13, 14], the technique provided by Theorem 3 was extended to those cases in which the recurrence equation associated to the running time of computing is of the type below:

$$\begin{aligned} T(n)=\left\{ \begin{array}{ll} c_{n} &{}\quad \text {if } 1\le n\le k \\ \sum _{i=1}^{k}a_{i}T(n-i)+h(n) &{}\quad \text {if }n> k \end{array} \right. , \end{aligned}$$
(6)

where \(h\in {\mathcal {C}}\) such that \(h(n)<\infty \) for all \(n\in {\mathbb {N}}\), \(k\in {\mathbb {N}}\), \(c_{i},a_{i}\in {\mathbb {R}}^{+}\) with \(a_{i}\ge 1\) for all \(1\le i\le k\).

Observe that the recurrence equations of type (1) can be recovered from those of type (6). In fact, the former recurrence equations can be transformed into one of the following type

$$\begin{aligned} S(m)=\left\{ \begin{array}{ll} c &{}\quad \text {if } m=1 \\ aS(m-1)+r(m) &{}\quad \text {if }m> 1 \end{array} \right. , \end{aligned}$$
(7)

where \(S(m)=T(b^{m-1})\) and \(r(m)=h(b^{m-1})\) for all \(m\in {\mathbb {N}}\). (Recall that \({\mathbb {N}} _{b}=\{b^{k}:k\in {\mathbb {N}}\}\) with \(b\in {\mathbb {N}} \) and \(b>1\)).

The asymptotic lower and upper bounds for a few celebrated algorithms, like Quicksort, Hanoi, Largetwo and Fibonnacci (see [23, 24]), whose running time of computing holds the recurrence equation (6), were discussed by means of appropriate versions of the technique exposed in Theorem 3 and, thus, by means of the Banach fixed point theorem. Notice that in such versions the unique thing to be proved, additionally to original Schellekens’ proof, was the contractive character of the mapping \(\varPhi _{T}: {\mathcal {C}}_{c_{1}\ldots , c_{k}}\rightarrow {\mathcal {C}}_{c_{1}\ldots , c_{k}}\) associated to the recurrence equation (6) and the left Smyth completeness of the subset \({\mathcal {C}}_{c_{1}\ldots , c_{k}}\) with respect to \(\tau (d^{s}_{{\mathcal {C}}})\) , where \({\mathcal {C}}_{c_{1}\ldots , c_{k}}=\{f\in {\mathcal {C}}: f(i)=c_{i} \text{ for } \text{ all } 1\le i\le k\}\) and

$$\begin{aligned} \varPhi _{T}(f)(n)=\left\{ \begin{array}{ll} c_{i} &{}\quad \text {if } 1\le i\le k, \\ \sum _{i=1}^{k}a_{i}f(n-i)+h(n) &{}\quad \text {if } n>k, \\ \end{array} \right. \end{aligned}$$
(8)

for all \(f\in {\mathcal {C}}_{c_{1}\ldots ,c_{k}}\). Thus the technique introduced in Theorem 3 was extended to the new case as follows:

Theorem 4

The quasi-metric space \(({\mathcal {C}}_{c_{1}\ldots , c_{k}},d_{{\mathcal {C}}})\) is left Smyth complete and the mapping \(\varPhi _{T}\) given by (8) satisfies that

$$\begin{aligned} d_{{\mathcal {C}}}(\varPhi _{T}(f),\varPhi _{T}(g))\le \left( \max _{1\le i\le k}\frac{1}{a_{i}}\right) \left( \frac{2^{k}-1}{2^{k}}\right) d_{{\mathcal {C}}}(f,g) \end{aligned}$$

for all \(f,g\in {\mathcal {C}}_{c_{1},\ldots ,c_{k}}\). Thus, an algorithm whose running time of computing holds a recurrence equation of the form (6) has a unique solution \(f_{T}\in {\mathcal {C}}_{c_{1}\ldots , c_{k}}\). Moreover, the following assertions hold:

  1. 1.

    If there exists \(g\in {\mathcal {C}}_{c_{1}\ldots , c_{k}}\) such that \(g\preceq _{d_{{\mathcal {C}}}} \varPhi _{T}(g)\), then \(f_{T}\in \varOmega (g)\).

  2. 2.

    If there exists \(g\in {\mathcal {C}}_{c_{1}\ldots , c_{k}}\) such that \(\varPhi _{T}(g)\preceq _{d_{{\mathcal {C}}}} g\), then \(f_{T}\in {\mathcal {O}}(g)\).

Notice that, by means of the transformation given by (7), Theorem 3 can be retrieved from Theorem 4.

It must be stressed that the uniqueness of solution to the recurrence equations (or equivalently the uniqueness of fixed point of the mapping \(\varPhi _{T}\)) under consideration in Theorems 3 and 4 is guaranteed by the left Smyth completeness and the Banach fixed point theorem (we refer the reader to [12] for a detailed discussion). However, from a complexity analysis viewpoint, it is not necessary to debate about the uniqueness of the solution because the theory of finite difference equations provides such a uniqueness for the so-called initial value problems (see, for instance, Theorem 3.1.1 in [24]). So, the really novel and interesting about the techniques introduced by Theorems 3 and  4 is exactly the possibility of studying the asymptotic behavior of the solutions via fixed point arguments which differs from the classical difference equation approach (see, again, [24]).

Inspired, in part, by the fact already exposed, L.M. García-Raffi, S. Romaguera and Schellekens provided a mathematical method for asymptotic complexity analysis of algorithms which is not based on the use of the Banach fixed point theorem, or equivalently of Theorems 3 and 4, in [15]. Concretely they provided, by means of fixed point techniques and the use of increasing sequences of complexity functions, asymptotic upper bounds for the running time of computing of the so-called Probabilistic Divide and Conquer algorithms (see [25] for a detailed discussion of this type of algorithms).

Let us recall that the running time of computing of Probabilistic Divide and Conquer algorithms satisfies the following recurrence equation:

$$\begin{aligned} T(n)=\left\{ \begin{array}{ll} c_{n} &{} \quad \text {if } 1\le n<k \\ \sum _{i=1}^{n-1}v_{i}(n)T(i)+h(n) &{} \quad \text {if }n\ge k \end{array} \right. \!\! , \end{aligned}$$
(9)

where \(h\in {\mathcal {C}}\) such that \(h(n)<\infty \) for all \(n\in {\mathbb {N}}\), \(k\in {\mathbb {N}}\) such that \(k\ge 2\) and \(c_{i}\in {\mathbb {R}}^{+}\) for all \(1\le i<k\). Moreover, \((v_{i})_{i\in {\mathbb {N}}}\) is a sequence of positive mappings defined on \({\mathbb {N}}\) in such a way that there exists \(K\in {\mathbb {R}}^{+}\) with \(K>0\) satisfying that \(\sum _{i=1}^{n-1}v_{i}(n)\le K\).

To get asymptotic upper bounds of the running time in those cases in which the recurrence equation (9) is under consideration the next auxiliary result was key and it was proved in [15].

Proposition 3

Let \({\mathcal {R}}\subseteq {\mathcal {C}}\) such that \(({\mathcal {R}},d_{{\mathcal {C}}})\) is left Smyth complete. Let \(\varPhi :{\mathcal {R}} \rightarrow {\mathcal {R}}\) be a monotone mapping with respect to \(\preceq _{d_{{\mathcal {C}}}}\). If there exists \(g\in {\mathcal {R}}\) such that \(g\preceq _{d_{{\mathcal {C}}}} \varPhi (g)\), then there exists \(f\in {\mathcal {R}}\) such that the sequence \((\varPhi ^{n}(g))_{n\in {\mathbb {N}}^\star }\) converges to f with respect to \(\tau (d^{s}_{{\mathcal {C}}})\) and, in addition, f is an upper bound of \((\varPhi ^{n}(g))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq _{d_{{\mathcal {C}}}})\).

A specific method to provide the aforementioned asymptotic upper bounds for the solution to recurrence equations of type (9) was proved using Proposition 3 in [15]. Concretely, it was given the result below.

Theorem 5

Let \(k\in {\mathbb {N}}\) with \(k\ge 2\) and let \({\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\) be the subset of \({\mathcal {C}}\) given by \({\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}=\{f\in {\mathcal {C}}:f(i)=c_{i} \text { for all } 1\le i<k\}\). Define the mapping \(\varPhi _{T}:{\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\rightarrow {\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\) by

$$\begin{aligned} \varPhi _{T}(f)(n)=\left\{ \begin{array}{ll} c_{n} &{} \text {if } 1\le n<k \\ \sum _{i=1}^{n-1}v_{i}(n)f(i)+h(n) &{} \text {if } n\ge k \\ \end{array} \right. \!\! , \end{aligned}$$
(10)

for all \(f\in {\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\). Then the following assertions hold:

  1. 1.

    The quasi-metric space \(({\mathcal {C}}_{c_{1},\ldots ,c_{k-1}},d_{{\mathcal {C}}})\) is left Smyth complete

  2. 2.

    The mapping \(\varPhi _{T}\) is monotone with respect to \(\preceq _{d_{{\mathcal {C}}}}\) and there exists \(f_{T}\in {\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\) such that \(Fix(\varPhi _{T})=\{f_{T}\}\). So \(f_{T}\) is the unique solution to the recurrence equation (9).

  3. 3.

    If there exists \(f\in {\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\) such that \(\varPhi (f)\preceq _{d_{{\mathcal {C}}}} f\), then \(f_{T}\in {\mathcal {O}}(f)\).

The advantage of the method exposed in the preceding result is given by the fact that it makes use of the Banach fixed point theorem. However, the aforesaid method has been designed specifically for Probabilistic Divide and Conquer algorithms. Observe, in addition, that the uniqueness of solution to the recurrence equation (9) was warrantied by means of induction techniques in [15], i.e., following the aforesaid classical techniques from finite difference equations. Motivated by this fact we show that the theory exposed in Sect. 2 provides a general framework for discussing asymptotic bounds (upper and lower) of the complexity of algorithms in such a way that both mathematical methods for such a purpose given in Theorems 35 can be retrieved as a particular case. In particular we can state the below method for asymptotic complexity analysis of algorithms. Notice that such a method does not deal with uniqueness since that’s what the theory of finite difference equation guarantees.

Theorem 6

Let \({\mathcal {R}}\subseteq {\mathcal {C}}\) such that \(({\mathcal {R}},\preceq _{d_{{\mathcal {C}}}})\) is chain complete. Let \(\varPhi :{\mathcal {R}} \rightarrow {\mathcal {R}}\) be a monotone mapping. If there exist \(f,g\in {\mathcal {R}}\) such that the following assertions hold:

  1. 1.

    \(g\preceq _{d_{{\mathcal {C}}}} \varPhi (g)\) and \(\varPhi \) is orbitally \(\preceq _{d_{{\mathcal {C}}}}\)-continuous at g,

  2. 2.

    \(g\preceq _{d_{{\mathcal {C}}}} f\) and \(\varPhi (f)\preceq _{d_{{\mathcal {C}}}} f\).

Then there exists \(f^{\star }\in {\mathcal {R}}\) such that \(f^{\star }\in Fix(\varPhi )\) and \(f^{\star }\in \varOmega (g)\cap {\mathcal {O}}(f)\).

Proof

By Corollary 7 we deduce that \(Fix(\varPhi )\ne \emptyset \) and that there exists \(f^{\star }\in Fix(\varPhi )\) such that \(f^{\star }\in \varOmega (g)\cap {\mathcal {O}}(f)\).

Corollary 12

Let \({\mathcal {R}}\subseteq {\mathcal {C}}\) such that \({\mathcal {R}}\) is closed with respect to \(\tau (d^{s}_{{\mathcal {C}}})\). Let \(\varPhi :{\mathcal {R}} \rightarrow {\mathcal {R}}\) be a monotone mapping. If there exist \(f,g\in {\mathcal {R}}\) such that the following assertions hold:

  1. 1.

    \(g\preceq _{d_{{\mathcal {C}}}} \varPhi (g)\) and \(\varPhi \) is orbitally \(\preceq _{d_{{\mathcal {C}}}}\)-continuous at g,

  2. 2.

    \(g\preceq _{d_{{\mathcal {C}}}} f\) and \(\varPhi (f)\preceq _{d_{{\mathcal {C}}}} f\).

Then there exists \(f^{\star }\in {\mathcal {R}}\) such that \(f^{\star }\in Fix(\varPhi )\) and \(f^{\star }\in \varOmega (g)\cap {\mathcal {O}}(f)\).

Proof

If \({\mathcal {R}}\) is closed with respect to \(\tau (d^{s}_{{\mathcal {C}}})\), then \(({\mathcal {R}},d_{{\mathcal {C}}})\) is left Smyth complete, since \(({\mathcal {C}},d_{{\mathcal {C}}})\) is left Smyth complete. Proposition 1 ensures that \(({\mathcal {R}},d_{{\mathcal {C}}})\) is \(\preceq _{d_{{\mathcal {C}}}}\)-complete and, thus, Proposition 2 gives that \(({\mathcal {R}},\preceq _{d_{{\mathcal {C}}}})\) is chain complete. Theorem 6 yields the desired conclusions.

In the following we show that Theorem 3 can be recovered from Theorem 6. To this end, we need the next sequence of useful results. The proof of the below lemma was given in [18].

Lemma 2

Let (Xd) be a quasi-metric space. If x is an upper bound of a sequence \((x_{n})_{n\in {\mathbb {N}}}\) in \((X,\preceq _{d})\) and, in addition, \((x_{n})_{n\in {\mathbb {N}}}\) converges to x with respect to \(\tau (d)\), then x is the supremum of \((x_{n})_{n\in {\mathbb {N}}}\) in \((X,\preceq _{d})\).

Taking into account the above result we have the next one.

Proposition 4

Let (Xd) be a \(\preceq _{d}\)-complete quasi-metric space and let \(f:X\rightarrow X\) be a monotone mapping. Assume that there exists \(x_{0}\in X\) such that \((f^{n}(x_{0}))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq _{d})\) and that f is continuous from \((X,\tau (d))\) into itself, then f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

Proof

Let \(x_0\in X\) such that the sequence \((f^{n}(x_{0}))_{n\in {\mathbb {N}}^\star }\) is increasing in \((X,\preceq _{d})\). Since the quasi-metric space (Xd) is \(\preceq _{d}\)-complete there exists \(x\in X\) such that the sequence \((f^{n}(x_{0}))_{n\in {\mathbb {N}}}\) converges to x with respect to \(\tau (d^{s})\). By Lemma 1, x is the supremum of \((f^{n}(x_{0}))_{n\in {\mathbb {N}}}\). Moreover, the continuity of f gives that \((f^{n+1}(x_{0}))_{n\in {\mathbb {N}}^\star }\) converges to f(x) with respect to \(\tau (d)\) and the monotony of f provides that f(x) is an upper bound of \((f^{n}(x_{0}))_{n\in {\mathbb {N}}^\star }\) in \((X,\preceq _{d})\). By Lemma 2 we have that f(x) is the supremum of \((f^{n+1}(x_0))_{n\in {\mathbb {N}}^\star }\). Therefore f is orbitally \(\preceq _{d}\)-continuous at \(x_{0}\).

From the preceding result we can derive the following one which was proved in [18].

Corollary 13

Let (Xd) be a \(\preceq _{d}\)-complete quasi-metric space and let \(f:X\rightarrow X\) be a mapping. If f is continuous from \((X,\tau (d))\) into itself, then f is \(\preceq _{d}\)-continuous.

In addition to the preceding results we have the next one which will be crucial in our subsequent discussion.

Proposition 5

Let (Xd) be a quasi-metric space and let \(f:X\rightarrow X\) be a mapping. Assume that there exists \(c\in [0,1[\) such that

$$\begin{aligned} d(f(x),f(y))\le cd(x,y) \end{aligned}$$

for all \(x,y\in X\). Then the following assertions hold:

  1. 1.

    f is monotone \((X,\preceq _d)\) and continuous from \((X,\tau (d))\) into itself.

  2. 2.

    If there exist \(v,w\in X\) with \(v\preceq _{d}f(v)\) and \(f(w)\preceq _{d} w\), then \(v\preceq w\).

Proof

1. Let \(x,y\in X\) with \(x\preceq _{d} y\). Then \(d(x,y)=0\). Since \(d(f(x),f(y))\le cd(x,y)\) we deduce that \(d(f(x),f(y))=0\). Thus \(f(x)\preceq _{d}f(y)\) and f is monotone. Consider \(x\in X\) and a sequence \((x_{n})_{n\in {\mathbb {N}}^\star }\) which converges to x with respect to \(\tau (d)\). Then \((f(x_{n}))_{n\in {\mathbb {N}}^\star }\) converges to f(x) with respect to \(\tau (d)\), since \(d(f(x),f(x_{n}))\le cd(x,x_{n})\) for all \(n\in {\mathbb {N}}\). It follows that f is continuous from \((X,\tau (d))\) into itself.

2. Suppose that there exist \(v,w\in X\) with \(v\preceq _{d}f(v)\) and \(f(w)\preceq _{d} w\). Then \(d(v,f(v))=d(f(w),w)=0\). Hence we have that

$$\begin{aligned} d(v,w)\le d(v,f(v))+d(f(v),f(w))+d(f(w),w)\le cd(v,w). \end{aligned}$$

It follows that \(d(v,w)=0\) and, thus, that \(v\preceq _{d} w\), because otherwise we deduce that \(1\le c\) which is a contradiction.

By virtue of what is set out in the previous results, we are able to show that Theorems 3 and 4 comes from Theorem 6 as it was announced. Indeed, the sets \({\mathcal {C}}_{b,c}\) and \({\mathcal {C}}_{c_{1}\ldots , c_{k}}\) were showed to be closed subsets of \({\mathcal {C}}\) with respect to \(\tau (d^{s}_{{\mathcal {C}}})\) in [13, 14], respectively. So the quasi-metric spaces \(({\mathcal {C}}_{b,c},d_{{\mathcal {C}}})\) and \(({\mathcal {C}}_{c_{1}\ldots , c_{k}},d_{{\mathcal {C}}})\) are left Smyth complete and, hence, \(\preceq _{d_{{\mathcal {C}}}}\)-complete. By Proposition 5 we have that the mappings \(\varPhi _{T}\), associated to (6) and to (8), are monotone and continuous, since they are contractive, i.e., they satisfy that

$$\begin{aligned} d_{{\mathcal {C}}}(\varPhi _{T}(f),\varPhi _{T}(g))\le \frac{1}{2} d_{{\mathcal {C}}}(f,g) \end{aligned}$$

for all \(f,g\in {\mathcal {C}}_{b,c}\) and

$$\begin{aligned} d_{{\mathcal {C}}}(\varPhi _{T}(f),\varPhi _{T}(g))\le \left( \max _{1\le i\le k}\frac{1}{a_{i}}\right) \left( \frac{2^{k}-1}{2^{k}}\right) d_{{\mathcal {C}}}(f,g) \end{aligned}$$

for all \(f,g\in {\mathcal {C}}_{c_{1},\ldots ,c_{k}}\).

Now, if there exists \(g\in {\mathcal {C}}_{b,c}\) (\(g\in {\mathcal {C}}_{c_{1}\ldots , c_{k}}\)) such that \(g\preceq _{d_{{\mathcal {C}}}} \varPhi _{T}(g)\), then, by Proposition 4, \(\varPhi _{T}(g)\) is orbitally \(\preceq _{d_{{\mathcal {C}}}}\)-continuous at g. Moreover, if there exists \(f\in {\mathcal {C}}_{b,c}\) (\(f\in {\mathcal {C}}_{c_{1}\ldots , c_{k}}\)) such that \(\varPhi _{T}(f)\preceq _{d_{{\mathcal {C}}}} f\) then Proposition 5 guarantees that \(g\preceq _{d_{{\mathcal {C}}}} f\). Therefore Theorem 6 (or Corollary 12) provides that there exists \(f^{\star }\in {\mathcal {C}}_{b,c}\) (\(f^{\star }\in {\mathcal {C}}_{c_{1}\ldots , c_{k}}\)) such that \(f^{\star }\in \varOmega (g)\cap {\mathcal {O}}(f)\).

Next we show that Theorem 5 can be derived form Theorem 6 as promised. First, according to [14], the quasi-metric space \(({\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}, d_{{\mathcal {C}}})\) is left Smyth complete and, hence, \(\preceq _{d_{{\mathcal {C}}}}\)-complete. So, by Proposition 2, we have that the partially ordered set \((X,\preceq _d)\) is chain complete.

It is clear that the mapping \(\varPhi _{T}\), given by (10), is monotone with respect to \(\preceq _{d_{{\mathcal {C}}}}\). Moreover, \(g_{h}\preceq _{d_{{\mathcal {C}}}}\varPhi _{T}(g_{h})\), where \(g_{h}\in {\mathcal {C}}_{c_{1},\ldots ,c_{k}}\) with \(g_{h}(n)=h(n)\) for all \(n\ge k\) and \(g_{h}(n)=c_{n}\) for all \(1\le n< k\). In fact, note that \(g_{h}\preceq _{d_{{\mathcal {C}}}} \varPhi (f)\) for all \(f\in {\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\).

Furthermore, \(\varPhi _{T}\) is orbitally \(\preceq _{d_{{\mathcal {C}}}}\)-continuous at \(g_{h}\). Indeed we have that the sequence \((\varPhi ^{m}_{T}(g_{h}))_{m\in {\mathbb {N}}^\star }\) is increasing in \(({\mathcal {C}}_{c_{1},\ldots ,c_{k-1}},\preceq _{d_{{\mathcal {C}}}})\) and \(({\mathcal {C}}_{c_{1},\ldots ,c_{k}},\preceq _{d_{{\mathcal {C}}}})\) is chain complete and, thus, that there exists \(f^{\star }\in {\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\) such that \(f^{\star }\) is the supremum of \((\varPhi ^{m}_{T}(g_{h}))_{m\in {\mathbb {N}}^\star }\) in \(({\mathcal {C}}_{c_{1},\ldots ,c_{k-1}},\preceq _{d_{{\mathcal {C}}}})\). On the one hand, since \(\varPhi _T\) is monotone we have that \(\varPhi _T(f^\star )\) is an upper bound of the sequence \((\varPhi ^{m+1}_{T}(g_{h}))_{m\in {\mathbb {N}}^\star }.\) On the other hand, fixed \(n\in {\mathbb {N}}\) such that \(n>k\) we have that, for every \(\varepsilon \), there exists \(m_{\varepsilon }\) such that

$$\begin{aligned} f^{\star }(i)<\varepsilon +\varPhi ^{m_{\varepsilon }}_{T}(g_{h})(i) \end{aligned}$$

for all \(k\le i\le n-1\). Thus we obtain that

$$\begin{aligned} \varPhi _{T}(f^{\star })(n)< & {} \sum _{i=k}^{n-1}v_{i}(n)\varepsilon +h(n)+\varPhi ^{m_{\varepsilon }}_{T}(g_{h})(n) \\= & {} \varepsilon \sum _{i=1}^{k-1}v_{i}(n)+\varPhi ^{m_{\varepsilon }+1}_{T}(g_{h})(n)\le K\varepsilon +f^{\star }(n). \end{aligned}$$

It follows that \(\varPhi _{T}(f^{\star })\preceq _{d_{{\mathcal {C}}}} f^{\star }\) and so \(\varPhi _{T}\) is orbitally \(\preceq _{d_{{\mathcal {C}}}}\)-continuous at \(g_{h}\).

Now, if there exists \(f\in {\mathcal {C}}_{c_{1},\ldots ,c_{k-1}}\) such that \(\varPhi _T(f)\preceq _{d_{{\mathcal {C}}}} f\), then \(g_{h}\preceq _{d_{{\mathcal {C}}}} \varPhi _T(f)\preceq _{d_{{\mathcal {C}}}} f\). Whence we obtain, by Theorem 6 (or Corollary 12), that \(f^{\star }\in \varOmega (g_{h})\cap {\mathcal {O}}(f)\).

It is worthy to observe that Proposition 3, the main result in which Theorem 5 is based on, can be derived from Lemma 1 and Propositions 1 and 2.

We end the paper, noting that Theorem 6 (and Corollary 12) introduces a fixed point technique for asymptotic complexity analysis of algorithms which does not assume requirements over all elements in a subset \({\mathcal {R}}\) of \({\mathcal {C}}\). It follows that we can reduce the set of elements over which we need to check those conditions that allow discuss the asymptotic complexity of an algorithm whose running time satisfies a recurrence equation. Hence the new technique improves those given in [12,13,14]. Besides, the aforementioned technique captures the essence of that given in Theorem 5 and, in addition, it allows to state upper and lower asymptotic bounds for the running time computing of algorithms. So, in this sense, it improves the technique introduced in Theorem 5. Besides, the new fixed point method preserve the original Scott’s ideas providing a common framework for Denotational Semantics and Asymptotic Complexity of algorithms.

4 Future work

It must be stressed that in Scott’s approach the \(\preceq \)-continuity of a mapping matches up with the notion of continuity with respect to the so-called Scott topology (see, for instance, [2]). Clearly in our new context the \(\preceq \)-continuity has been replaced by the orbital \(\preceq \)-continuity. So it seems natural to wonder whether such a notion can be interpreted as a kind of continuity with respect to any topology. Thus the authors propose as future work to analyze if that topology exists and, if so, characterize it.