Docsity

E-times cow path problem, Exams of Mathematics

Partial preview of the text

Download E-times cow path problem and more Exams Mathematics in PDF only on Docsity!

BSc Thesis Applied Mathematics

Finding lower bounds for the

competitive ratio of the cow

path problem with a

non-optimal seeker

M.C. Vos

Supervisor: W. Kern

June 23, 2020

Department of Applied Mathematics Faculty of Electrical Engineering, Mathematics and Computer Science

Finding lower bounds for the competitive ratio of the cow

path problem with a non-optimal seeker

M.C. Vos∗

June 23, 2020

Abstract A tight lower bound for the competitive ratio of deterministic algorithms for the cow path is well-known. In this thesis, we generalize the cow path problem by assuming that the seeker finds the hider after some known number of visits. We seek to find lower bounds for the competitive ratio of deterministic algorithms for this problem. The thesis describes the general form of optimal algorithms and succeeds in finding a tight lower bound for the competitive ratio when the required number of visits is odd.

Keywords: cow path, competitive, lower bound, online, algorithm

1 Introduction

Search problems are a well studied and widely applied topic in mathematics and computer science. The cow path problem, also known as the linear search problem, is a well-known example of such a problem. It was first formulated by Richard Bellman in 1963 [3], and was independently considered by Anatole Beck [1]. The problem can be regarded as fol- lows. A cow is looking for a daisy growing somewhere on a straight line. It will find the daisy when it stands exactly on top of it. Mathematically, this line is the real number line with the cow starting at the origin. The daisy can be found at some real number, at least m 0 > 0 distance away from the origin. The cow can move up and down the real number line with a velocity of one. The goal of the problem is to find a path (algorithm) that visits each x ∈ R after travelling a distance of at most ρ|x|. Such an algorithm is said to be ρ-competitive. Algorithms for the cow path problem are said to be online, meaning they rely on imperfect information. For the offline version of the same problem, the location of the daisy is known beforehand. The competitive ratio of an online algorithm is defined as the worst case ratio for the distance travelled before finding the daisy between the online algorithm and an optimal offline algorithm. An optimal online algorithm is one that min- imizes this competitive ratio. By viewing the problem from a game-theory perspective, Beck and Newman[2] were the first to show that a 9-competitive deterministic algorithm exists and is optimal among deterministic algorithms. Since then, many different proofs have been found that give this same result. In the paper describing the problem, Bellman also posed the question of what would hap- pen if the cow has a probability 0 < p ≤ 1 of finding the daisy each time it reached its location. Little research has been done for this problem. Heukers [5] and Maduro [6] have found some algorithms that function better than the optimal algorithm for the "normal" cow path problem. However, nothing is known about the form of an optimal algorithm

∗Email: [email protected]

Figure 1: Moving from a to a − 3 s with velocity 13 (vertical movement irrelevant)

Now that we have determined exactly what is meant with an algorithm, a formal definition can be given.

Definition 2.1. Algorithm: A ρ-competitive algorithm A is a path that visits each x ∈ R at least E times after traveling at most ρ|x| time. The algorithm moves up and down the real number line. The velocity of this movement is v(t) = (^2) n^1 +1 n ∈ N on time- intervals (a, b]. Each point attained on the interval is visited (^) v(^1 t) times. A defined by the

R+^ → R-function A(t) and its velocity function v(t).

It is useful to define some other functions associated with an algorithm A. Denote by VA(x, t) the number of visits to location x in time-interval [0, t]. A point x is said to be saturated at t if and only if VA(x, t) ≥ E. The saturation time of x, mA(x), is the time of the Eth visit to x. It is often useful to consider the situation when the A crosses the origin. Let zn be the sequence of all such times t, with zk+1 > zk for all k. So for all k, ∃ > 0 s.t. A(zk − δ)A(zk + δ) > 0 ∀δ s.t. 0 < δ < .

To perform operations on algorithms, the notion of parts is required.

Definition 2.2. Part: A part Ω of A on some time interval (ts, te) is the (ts, te) → R function with Ω(t) = A(t)∀ t ∈ (ts, te).

We can perform two operations on algorithms using these parts: deletion and insertion. Let Ω be the part of A on (ts, te). Then the algorithm A′, obtained from A by deleting Ω is defined as follows:

A′(t) =

A(t) for t ≤ ts A(t + (te − ts)) for t > ts

Let Ω be the part of some algorithm on (ts, te). Then the algorithm A′, obtained from A inserting Ω into at the point t 0 is defined as follows:

A′(t) =

A(t) for t ≤ t 0 Ω(t) for t ∈ (t 0 , t 0 + (te − ts)) A(t − (te − ts)) for t ≥ t 0 + (te − ts)

Clearly, removal and insertion can only be done if lim a→t+ s ,b→t− e

Ω(a) = Ω(b).

The velocity of A′(t) for both deletion and insertion is the same as the velocity in the right-hand side of the equations.

Definition 2.3. Restrictive points: The individual ratio of a point x ∈ R for some algorithm A is defined as mA |x(|x ). A point is said to be restrictive for A if its individual ratio equals the competitive ratio of A.

For ease of notation, the constant K is introduced:

K :=

E E is odd E + 1 E is even

2.2 Properties of optimal algorithms

We start our search for the structure of optimal algorithms by defining some properties of these algorithms.

Definition 2.4. Completing algorithm: Let β(t) be the set of the left- and rightmost visited points at time t. An algorithm A is said to be completing if for all k ≥ 1 , no visited point is unsaturated at zk, with the exception of the the left- and rightmost visited points. That is, ∀k ∈ N, x ∈ R \β(zk)), either VA(x, zk) = 0 or VA(x, zk) ≥ E holds. A is said to be completing until M if the above condition holds for all k s.t. zk ≤ M.

Our first result shows that there exist optimal algorithms that are completing up to an arbitrary point. For all practical purposes, this means that they are completing.

Lemma 1. Let A be an algorithm and let M ∈ R+. There exists an algorithm A′^ s.t. ρ(A′) ≤ ρ(A) where A′^ is completing until M.

Proof. If A is completing until M , choose A′^ = A and we are done. Assume A is not completing. Let zk be the largest element of zn s.t. A is completing until and including zk. W.l.o.g. assume that A is moving to the right at zk. Since A is not completing until zk+1, ∃x > 0 that is visited but not saturated in time-interval [zk, zk+1]. Clearly, the positive axis is saturated up until and including some point y at time zk+1. Now consider the sub-intervals (pi, qi) of [zk, zk+1] with A(pi) = A(qi) = y on which only points to the right of y are visited.

Let A′^ be obtained from A by removing all intervals (pi, qi) and then inserting those same intervals at the first time that A(t) visits y after zk+1. Clearly, A′^ is completing until zk+1. To see that ρ(A′) ≤ ρ(A), first notice that all points that get saturated outside (zk, zk+2) in A have the same saturation time for both A and A′. The values attained on [zk+1, zk+2] by A and A′^ are identical, but the entirety of this interval occurs earlier for A′^ than for A. Thus, for all points x′^ < 0 that get saturated by A on the interval [zk+1, zk+2], we have mA′ (x′) < mA(x′). Let c be a point to the right of y s.t. every point in the interval (y, c] is visited but not saturated in the time-interval [zk, zk+1] (such a point is guaranteed to exist). For all points x∗^ > c that get saturated by A on the interval [zk, zk+1], we have:

mA′ (x∗) |x∗|

mA′ (c) |c|

mA(c) |c| ≤ ρ(A).

There is thus no point in A′^ with an individual ratio larger than ρ(A). This gives ρ(A′) ≤ ρ(A). Repeating the above step multiple times yields an algorithm that is completing up to an arbitrary point.

Our next result seems incredibly specific at first look, but turns out to be crucial. It defines exactly how an optimal algorithm moves along an unsaturated interval.

W.l.o.g. assume lk+2 > 0. After saturating lk+2, A moves past the origin before saturating any points to the right of lk+2, which implies mA(x) > mA(lk+2) + 2lk+2 for all x > lk+2. Let A′^ be the algorithm obtained from A by deleting the part of A on (zk+1, zk+2). Then for s < (^2) ρl(kA+2) we find:

(lk+2 + s)ρ(A) ≥ mA(lk+2 + s) > mA′ (lk+2) + 2lk+ ( lk+2 + 2 lk+ ρ(A)

ρ(A) > mA′ (lk+2) + 2lk+

lk+2ρ(A) > mA′^ (lk+2)

ρ(A) > mA′ (lk+2) lk+

Assume ρ(A) < ρ(A′). Since mA(x) ≥ mA′^ (x) for x 6 = lk+2, the increase in competitive ratio for A′^ compared to A must be caused by lk+2. However, equation (3) shows that lk+ cannot be restrictive on A′^ if ρ(A′) > ρ(A), a contradiction. Thus, ρ(A′) ≤ ρ(A). For A′, lk < lk+2 holds for k ≤ n. By repeating these steps multiple times, an algorithm can be obtained with lk < lk+2 for all k up to an arbitrarily large value.

2.3 The optimal algorithm for E odd

Theorem 1. For E odd, there exists a sequence of real numbers (ln)k≥− 1 with lklk+1 ≤ 0 , l− 1 = l 0 = 0 and |lk+2| > |lk|, such that the algorithm A of the following form is optimal: Let k = − 1 and iterate trough the following steps:

  • Move from lk to lk+2 with velocity (^) E^1
  • Move from lk+2 to lk+1 with velocity 1
  • Set k = k + 1

Proof. Let A be an optimal algorithm. By lemma 1, it can be assumed that A is complet- ing. Let lk point with the largest absolute value that is visited by A on (zk− 1 , zk). Clearly, lklk+1 < 0 ∀k > 0. By lemma 3, we can assume that |lk+2| > |lk| ∀k ≥ − 1.

Consider the values A(t) attains on the interval (zk− 1 , zk) for k ≥ 1. Since VA(x, zk− 1 ) ≥ E ∀x ∈ [0, lk− 2 ), it is irrelevant how often points in that interval are visited. It should be clear that removing any turning points and setting the velocity to 1 in this interval will not in- crease the saturation time for any point, and lower it for many. This gives A(zk− 1 + |lk− 2 |) = A(zk − |lk− 2 |) = lk− 2. Since A is completing, it is furthermore known that A visits each x in J := (lk− 2 , lk) at least E times on the time-interval I := (zk− 1 + |lk− 2 |, zk − |lk− 2 |) and A(t) is contained to [lk− 2 , lk] on I.

We now prove that A(t) is optimal if it attains each value on J exactly E times on the time-interval (zk− 1 + |lk− 2 |, zk − |lk|) with A(zk − |lk|) = lk, and then moves with velocity 1 from lk to lk− 2 without turning. Every point in J is visited at least E times and every point (with the exception of a finite number of points) is visited exactly an even amount of times. Thus, (E + 1)|J| is the minimal length for I, meaning that this technique minimizes the saturation time for all x saturated after zk, with a possible exception for lk. Consider the amount of visits to lk. Currently, (^) k is visited E+1 2 times in (zk− 1 , zk). It is necessary to prove that visiting lk more often does not result in a lower competitive ratio. W.l.o.g. assume lk > 0. The quickest way to visit lk more often without visiting any point

to the right of lk is to move back and forth on the interval (lk − s, lk) after the E+1 2 -th visit to lk. Since all of the points in this interval are already saturated, the algorithm might as well move back and forth along the interval (lk, lk + s) instead. But that algorithm is not completing, and can be made completing again without increasing the competitive ratio by deleting the part that was just inserted and inserting it at the first visit to lk after t = zk. Thus the version of the algorithm where lk is visited more often can be transformed into an equivalent or better algorithm that visits lk only E− 2 1 times on (zk− 1 , zk). Now consider all points saturated in (zk− 1 , zk). By lemma 2, A has the structure specified in the theorem. By induction, it can be assumed that lk− 2 has been visited E+1 2 times at zk− 1. Thus, this technique minimizes the saturation time of lk− 2 , as it pays the remaining E− 1 2 visits as soon as possible. Like before, it is only necessary to consider restrictive points. Consider C :=

x ∈

J

∣∣ m A(x)^ ≥^ mA(y)^ ∀y^ ∈^ (lk− 2 , x)

. Since visiting every point in some interval of length l exactly D times takes Dl time, we have:

mA(x) ≥ zk− 2 + |lk− 2 | + E(|x − lk− 2 |) ∀ x ∈ C. (4)

If A is in the form of the theorem, (4) holds with equality ∀x ∈ C. Thus, the form specified in the theorem is optimal.

One can see that the form of the optimal algorithm for E odd is very similar to the form of the optimal algorithm for the normal cow path problem, which suggests that we might be able to modify existing proofs for the lower bound of the normal cow path problem to find a lower bound for the competitive ratio of the E-times cow path problem.

2.4 The optimal algorithm for E even

For E odd, there was no way around having to pay E + 1 visits to each point that is saturated on (zk− 1 , zk). For the case E even, this is not the case. It is possible to move from lk to lk+2 with velocity (^) E^1 − 1 and then back with velocity one, thus only paying E visits to each point. This is advantageous in the long term as points that are saturated after zk can only benefit from reducing the length of (zk− 1 , zk). It is, however, disadvantageous in the short term, as the points in (lk, lk+2) are saturated in reverse order, causing points close to lk have a large saturation time. Minimizing the competitive ratio of an algorithm requires balancing these short and long term advantages. This can be done by including a balance point bk+2 in the interval (lk, lk+2), resulting in the following structure:

Theorem 2. For E even, there exist real sequences (ln)k≥− 1 and (bn)k≥ 1 with lklk+1 ≤ 0 , bklk ≥ 0 , l− 1 = l 0 = 0, |lk+2| > |lk| and |lk+2| ≥ |bk+2| ≥ |lk|, s.t. the algorithm A of the following form is optimal: Let k = − 1 and iterate trough the following steps:

  • Move from lk to bk+2 with velocity (^) K^1
  • Move from bk+2 to lk+2 with velocity (^) E^1 − 1
  • Move from lk+2 to lk+1 with velocity 1
  • set k = k + 1

Thus x ≤ bk, which gives:

mA′^ (x) ≥ (E + 1)|x − lk− 2 | = mA(x). (6)

Equation (6) holds for all x ∈ C, so ρ(A) ≤ ρ(A′). There exists an optimal algorithm in the form of the theorem.

3 Finding lower bounds

3.1 Tight lower bound for E odd

The proof for the lower bound for E odd is a generalization of the proof for the lower bound of the normal cow path problem (the case E = 1) by Bernhard Fuchs et al [4]. Their paper considers the discrete version of this problem while we consider the continuous case. This explains why evaluating the equations in this thesis at E = 1 does not give the equations from their paper. Many of the proofs and lemmas of this chapter will follow the same general arguments as theirs.

Since we have proven that there exists an optimal algorithm in the form of theorem 1 for E odd, we only consider algorithms of that form. Only very specific points have to be considered to evaluate the competitive ratio of such an algorithm. The point x which has the largest ratio individual ratio of all points saturated in the time-interval (zk, zk+1) is m 0 for k = 1 and lk− 1 for k ≥ 2 (it is always the first point saturated after zk). Let A be an algorithm in the form of theorem 1. Denote with Mk the minimum possible saturation time of the first point saturated after zk (the saturation time of this point for an optimal offline algorithm) and denote with Lk the saturation time of this point for A. ρ(A) can then be found by solving max k≥ 1

Lk Mk. This gives:

M 1 = m 0 Mk+1 = |lk| ∀k ≥ 1

Lemma 4. At the first saturation after zk the online algorithm has travelled L 1 = M 1 + (E + 1)M 2 if k = 1 and

k∑− 1

2

Mi + (E + 2)Mk + (E + 1)Mk+1 if k ≥ 2

Proof. L 1 = (E + 1)|l 1 | + m 0 which equals the expression above. For k ≥ 2 we get

Lk =

∑^ k

i=

|li| + (E − 1)(|lk| + |lk− 1 |) + Mk

k∑+

i=

Mi + (E − 1)(Mk+1 + Mk) + Mk

k∑− 1

i=

Mi + (E + 2)Mk + (E + 1)Mk+1.

These equations can be used to determine the competitive ratio of specific algorithms. We first determine a candidate value for the competitive ratio of an optimal algorithm using the following lemma:

Lemma 5. Let A be an algorithm for the E-times cow path problem with E odd in the form of theorem 1. Furthermore assume that there is a constant ratio r > 1 between consecutive values of Mk (thus Mk+1 = rMk ∀k ≥ 1 ). Then for m 0 sufficiently large, A is optimal among all such algorithms with fixed r if and only if:

ρ(A) = 3 + 2E + 2

2(E + 1)

Proof. For m 0 sufficiently large, (^) ML^11 < ρ(A), so we can ignore k = 1. Expressing the sum in the equation for k ≥ 2 from lemma 4 in terms of M 1 yields:

Lk = 2

k∑− 1

2

ri−^1 M 1 + (E + 2)Mk + (E + 1)Mk+

= 2M 1

∑^ k

1

ri−^1 − 2(M 1 + Mk) + (E + 2 + (E + 1)r)Mk

This summation is a partial sum of an infinite geometric series. Rewriting gives:

Lk = 2M 1

1 − rk 1 − r − 2 M 1 + (E + (E + 1)r)Mk

=

2 M 1 − 2 rMk 1 − r − 2 M 1 + (E + (E + 1)r)Mk

= 2 rMk r − 1

r − 1 )M 1 + (E + (E + 1)r)Mk

=

( (^2) r r − 1

  • E + (E + 1)r

Mk − (2 +

r − 1

)M 1

Thus, (^) MLkk is increasing on k for k > 1 and converges to ρ = (^) r^2 −r 1 + E + (E + 1)r. This

function attains its minimum at r = 1 +

2 E+1 for fixed^ E. Substituting this value for^ r into the equation for ρ(A) yields the desired equation.

Let g(E) := 3 + 2E + 2

2(E + 1), the candidate-ρ found in the previous lemma. It turns out that g(E) is the the lowest possible competitive ratio for the E-times cow path problem for E odd, not just for algorithms with a fixed ratio between consecutive Mk. To prove this, assume that a (g(E) − )-competitive algorithm exists for some  > 0. It can be assumed that this algorithm is optimal, and thus that it has the structure specified in theorem 1. The algorithm is thus characterized by Mk and Lk. Let σk and αk be such that:

Lk = (g(E) − σk)Mk and Mk+1 = (1 + αk)Mk. (7)

We introduce the potential function

Φk := σk + (E + 1)αk. (8)

Applying lemma 7 to equation (9) shows that lim k→∞ Φk = −∞. But lim k→∞ Φk = lim k→∞ σk +

(E + 1)αk ≥  + (E + 1)(−1), a contradiction. Thus, no (g(E) − )-competitive algorithm exists for the E-times discrete cow path problem for E odd. This yields the main result of this thesis:

Theorem 3. For any online algorithm for the E-times cow path problem with E odd, ρ ≥ 3 + 2E + 2

2(E + 1).

This lower bound is clearly tight, as we obtained this value for the first time by analyzing competitive ratios of algorithms. An example of such an optimal algorithm is given in the following corollary:

Corollary 1. The algorithm in the form of theorem 1 with |l 1 | = m 0 and |lk| =

2 E+

|lk− 1 | is optimal.

3.2 Lower bound for E even

To find the optimal ratio between lk and bk+2 for algorithms in the form of theorem 2, one likely has to perform some quite involved function analysis, which is beyond the scope of this thesis. This ratio becomes an additional unknown which greatly influences the values of Lk. Furthermore, for arbitrary values of bk, the saturation times for both bk and lk might effect the competitive ratio, instead of just lk. Thus, it is impossible to use the above techniques to find a tight lower bound for E even, as long as this ratio is unknown. To find a lower bound, we design a theoretical algorithm which is guaranteed to behave better than any possible algorithm. The following is known about the part of an algorithm in the form of theorem 2 on (zk, zk+1):

zk+1 − zk ≥ 2 |lk+2| + (E − 2)|lk+2 − lk| (11) mA(x) ≥ zk + |lk| + E|x − lk| ∀x ∈ (lk, lk+2). (12)

It is clear that a theoretical algorithm for which both equations hold with equality for all positive k would be better than any real algorithm. We assume that such an algorithm exists and call it A. This assumption costs us the tightness of the lower bound. Such an algorithm leads to the following version of lemma 4:

L 1 = M 1 + E|l 1 | = M 1 + EM 2 (13)

and for k ≥ 2

Lk = 2

∑^ k

i=

|li| + (E − 2)(|lk| + |lk− 1 |) + Mk

k∑+

i=

Mi + (E − 2)(Mk + Mk+1) + Mk

k∑− 1

i=

Mi + (E + 1)Mk + EMk+1.

These are the exact equations for the optimal algorithm for the E′-times cow path problem for E′^ = E − 1. Since E′^ is odd, theorem 3 gives us the lower bound for the competitive ratio of this problem. Substituting E = E′^ + 1 into the equation of this theorem gives yields a lower bound for the E-times cow path problem for E even:

Theorem 4. For any algorithm for the E-times cow path problem with E even, ρ ≥ 1 + 2E + 2

2 E.

This lower bound for the case E even provides additional structure to the form of an optimal algorithm for this problem:

Corollary 2. For an optimal algorithm of the form in theorem 2, the following inequalities hold for all k:

|bk+2| < |lk| + |lk+2 − lk|

2 E

E

< |lk| +

|lk− 2 − lk|. (14)

Proof. Let A be an algorithm in the form of theorem 2. Increasing |bk| has a neutral or negative effect on the saturation time for all points outside the interval (bk, lk). Increasing bk should therefore only be done if there exists a pint in (bk, lk) that is restrictive on A. Denote with x+^ ∈ R a point with an infinitesimally larger absolute value than x with the same sign as x. Since the point b+ k is the last point saturated in (bk, lk), and also has the smallest absolute value of all these points, it is the only point in (bk, lk) that can be

restrictive. Similarly, lk− 2 is the only such point in the interval [lk− 2 , bk]. Thus, if mA(b

k ) |b+ k | < mA(lk− 2 ) |lk− 2 | ≤^ r, then^ |bk|^ is too large. It is therefore guaranteed that^

mA(b+ k )−mA(lk− 2 ) |b+ k −lk− 2 | ≥^ r^ ≥ 1 + 2E + 2

2 E. Denote with d the distance |lk − lk− 2 | and with d 1 the distance |b+ k − lk− 2 |, then:

mA(b+ k ) − mA(lk− 2 ) |b+ k − lk− 2 |

≥1 + 2E + 2

2 E

Ed + d 1 d 1

≥1 + 2E + 2

2 E

d 1 ≤

d 2 + 2

√ 2 E E

replacing d and d 1 by their expressions in terms of lk and b+ k and making the inequality strict by replacing b+ k with bk yields the desired equation.

4 Discretization

In some applications it is more useful to consider the discrete version of the E-times cow path problem. In this version of the problem, the daisy is guaranteed to be found at an integer point. Turning around is also only allowed at these points. It turns out that we can quite easily find a lower bound for the competitive ratio of this problem with the tools developed for the continuous version.

It is desirable to define the discretization in such a way that it is easy to see that a discretized version of theorem 1 or 2 holds. Since we essentially have s = 1, the concept of velocity becomes slightly more involved. To easily define this velocity, we require that every interval on which an algorithm moves with a velocity unequal to one has an even length. If this is not the case for some algorithm, the entire algorithm can be upscaled by doubling the value of m 0 and every turning point to make all these distances even length. This upscaling is allowed for the purposes of this thesis, as we are only looking for a lower bound. In this thesis, it is implicitly assumed that all such intervals have even length.

for k = 1 and

Lk =

∑^ k

i=

|li| + (E − 2)(|lk| + |lk− 1 |) + Mk

k∑+

i=

Mi − (2E − 1)

  • (E − 2)(Mk+1 + Mk − 4 E + 2) + Mk

k∑− 1

i=

Mi + (E + 1)Mk + EMk+1 − (4E − 2)(E − 2) − k(4E − 2).

for k ≥ 2. We need to create a result analogous to that of lemma 5. Let f (E) = (4E − 2)(E − 2) − k(4E − 2) to find:

Lk = 2

k∑− 1

2

ri−^1 M 1 + (E + 1)Mk + EMk+1 − f (E)

= 2M 1

∑^ k

1

ri−^1 − 2(M 1 + Mk) + (E + 1 + Er)Mk − f (E)

= 2M 1

1 − rk 1 − r

− 2 M 1 + (E − 1 + Er)Mk − f (E)

=

2 rMk r − 1

r − 1 )M 1 + (E − 1 + Er)Mk − f (E)

=

( (^2) r r − 1

  • E − 1 + Er

Mk − (2 +

r − 1

)M 1 − f (E).

Thus, (^) MLkk is increasing on k for k > 1 and converges to ρ = (^) r^2 −r 1 + E − 1 + Er. Substituting E′^ = E − 1 yields the exact equation found in lemma 5 for the continuous odd case. Using the same r results in a competitive ratio of 1 + 2E + 2

2 E. It can be proven that this competitive ratio is a lower bound by following the same steps as before. Since this proof is so similar to the continuous case, it is omitted in this thesis, but can be found in appendix 6.1. In this chapter, we ignored the case E = 1, as an optimal algorithm for this case does not have the form specified in theorem 3. It is, however. known that 3 + 2

2 is a lower bound on the competitive ratio for the normal discrete cow path problem [4]. We can formalize these results in the following theorem.

Theorem 5. For any algorithm for the discrete E-times cow path problem, ρ ≥ 1 + 2E + 2

2 E.

5 Suggestions for further research

Although this thesis completely solves the case E odd, the general problem of a non-optimal seeker is still far from solved. Nothing is yet known about the expected value cow path problem mentioned in the introduction of this thesis. A nontrivial lower bound on the competitive ratio for this problem is likely the most widely applicable result still absent. The lower bound for E even found in corollary 2 is likely good enough for most applications (especially for large values of E). It would be nice, however, to be able to consider the E-times cow path problem completely solved, which requires finding a tight lower bound for E even as well. One way to find a larger lower bound for the continuous even case, is to

look more into the discrete version, as it can be shown that any ρ-competitive algorithm for the E-times continuous problem corresponds to a ρ-competitive algorithm for the E-times discrete problem.

References

[1] A. Beck. On the linear search problem. Israel Journal of Mathematics, 2(4):221–228, dec 1964.

[2] A. Beck and D. J. Newman. Yet more on the linear search problem. Israel Journal of Mathematics, 8(4):419–429, 1970.

[3] R. Bellman. Problem 63-9, An Optimal Search. SIAM Review, 5(3):274, 1963.

[4] B. Fuchs, W. Hochstättler, and W. Kern. Online matching on a line. Theoretical Computer Science, 332(1-3):251–264, feb 2005.

[5] F. Heukers. Searching with Imperfect Information, Technical report, University of Twente, jun 2017.

[6] G. Maduro. Comparing algorithms for the cow-path problem with a non-optimal seeker, Technical report, University of Twente. 2018.

is strictly positive for σk > 0 , E ≥ 1. It is sufficient to show that it is positive for σk very small, as this would show that a competitive ratio of g(E) − σk is impossible. Thus, we can view this equation as a polynomial in terms of σk and look at the coefficients of the lowest power first. Setting σk = 0 gives

(1 + E) ∗

E + 1

2(E + 1) ∗

E + 1

so the coefficient of the constant is 0. Now consider the linear coefficient:

2 E 2 E + 1

E + 1

+ (1 + E) ∗ 2

2 E

E + 1(E + 1)(2E + 1)

2(E + 1) ∗

−E

(E + 1)(2E + 1)

( 2 E√ 2

E + 1

2 E

E + 1

2(E + 1)

E

E + 1

2(E + 1)

E

E + 1

( (2√2(E + 1) − 1)E − 1

E + 1

( 3 E − 1

E + 1

Thus, the numerator of the fraction is always positive for small values of σk > 0.