# Affordable as a Bus, Comfortable as a Taxi: A Promising Type of Public Transport for Large and Medium-Sized Cities.Part2

Средний
56 мин
1.1K
Автор оригинала: Sergey Kovalenko

(Jean-Claude Mézières)

Translation provided by ChatGPT, link to the original article in Russian

Link to Part 1: «Preliminary Analysis» (ру / eng )
Link to Part 2: «Experiments on a Torus» (ру / eng )
Link to Part 3: «Practically Significant Solutions» (ру / eng )
Link to «Summary» (ру / eng )

## Experiments on the Torus

This is the second part of a study dedicated to exploring new public transportation movement schemes. In the first part, we examined the simplest non-stop scheme and a single-transfer scheme based on it, which can be implemented in a grid city on a plane. In this part, our city model will be a grid city on a «flat» torus. Unlike a rectangle, a torus has no edge, and the positions of all points on it are absolutely equivalent. Due to the absence of an edge and (transitive) symmetry, calculations for a toroidal city are simpler, and numerical results are nearly identical to those for a rectangular city on a plane. These two conditions make a toroidal grid city an ideal testing ground for new passenger transportation movement schemes. In this article, we will explore two such schemes on the torus, and in the next one, we will return to the plane and adapt the results obtained here for use under the realistic conditions of a rectangular city.

The content of this study is not standalone and presupposes familiarity with the first part of the article. To understand Chapter 2, you will need a level of mathematics that corresponds roughly to the first two years of university; for everything else, high school level should suffice. It can be helpful to have a pencil and a piece of paper at hand while reading. If your browser displays formulas incorrectly, try refreshing the page a few times.

### 1. Euclidean Torus

#### 1.1 Rectangle with Mirror Teleportation

Let's take a rectangular sheet of paper and place it in front of us so that we can refer to its top, bottom, right, and left edges. Then, imagine that little drawn figures can move across the surface of . For these figures, we will establish the following teleportation rules:

1) every time a figure crosses the top boundary of the sheet at some point , it is immediately teleported to the mirror-symmetric point on the bottom boundary of the sheet, and vice versa;

2) every time a figure crosses the right boundary of the sheet at some point , it is immediately teleported to the mirror-symmetric point on the left boundary of the sheet, and vice versa;

(figure 1)

What will happen if a figure tries to exit the boundary of the sheet through its corner, for example, through the top left? In this case, we will assume that the figure is crossing two sides of the sheet at once: the top and the left, hence both rules 1) and 2) apply. It's easy to check that no matter the order of applying these rules, the result will be the same: the figure from the top left corner will be transferred to the bottom right corner.

#### 1.2 Geometric Interpretation.

The teleportation between the opposite edges of the rectangle can be visually implemented. To do this, first align the bottom edge of the sheet with the top and glue them together, resulting in a hollow cylinder. Next, this cylinder needs to be significantly flattened, bent into a bagel shape, and its ends glued together. If everything is done correctly, the result will be a torus . The line where the top edge of the sheet was glued with the bottom will be one of the parallels on this torus, and the line where the right edge was glued with the left — one of its meridians. The movement of any figure on the original sheet of paper can now be viewed as its movement on the torus glued from this sheet, and vice versa. With this mapping, the teleportation of a figure between two opposite sides of occurs exactly when its movement on the torus crosses the line where these sides were glued. Due to this duality, we will say that the rectangular sheet with mirror teleportation is a representation of the torus . Moreover, since every small patch cut from the surface can be laid out on a plane, we will call the torus itself flat.

(figure 2)

We have already talked about the meridians and parallels of the torus, let's give at least a semi-formal definition to these concepts. Let be a rectangle with mirror teleportation, — the torus glued from it. We will call any segment on , the ends of which lie on the sides of , a through segment. Among all through segments, only strictly vertical and strictly horizontal ones have ends connected by the teleportation rule. Such segments will turn into circles when gluing the sheet into a torus. We will call horizontal through segments on and the resulting circles on the parallels of the torus, and the vertical through segments on and the circles formed by them on — its meridians.

#### 1.3 Main Maps.

Let's glue a flat torus from a rectangular sheet and apply some drawing on its surface. If we then carefully cut the adhesive seams, we get the original sheet of paper, which now carries a «cut» drawing from the torus. In this sense, the original sheet of paper can be considered as a map of the surface of the torus , similar to those used by humanity to depict, for example, the surface of the Earth. The torus can be cut not only along its adhesive seams. As a result of various cuts, different surfaces and a different number of whole components can be obtained.

Exercise. Try to cut the torus in such a way that you get a doubly twisted paper ring. Try to find such a cut that gives two paper rings, connected in a two-link chain (a fragment of a Christmas garland). A paper ring that is twisted only once is a Möbius strip. Think about whether a Möbius strip can be cut out of a torus.

In cases where a single flat sheet is obtained as a result of cutting a torus, we will call this sheet its map. Of course, not all maps of the torus will have a rectangular shape. Maps that are obtained by cutting the torus along some of its meridian and some of its parallel (i.e., parallel to the adhesive seams), we will call main. It should be obvious that every main map is rectangular.

Let be one of the main maps of the torus . Each point on the map represents a single point on the torus . For internal points on the map , this correspondence is one-to-one. At the same time, if point lies on any of the sides of , then itself and the point symmetrically opposite to it on the opposite side of (we will call such pairs of points conjugate) represent the same point on . In particular, all four corner points of the map are different representations of the point of intersection of that parallel and that meridian of the torus , along which the map was obtained.

From the very definition of the main maps, it follows that each meridian and parallel on them will look like a through-segment with conjugate ends. We will assume that all main maps are oriented in space in such a way that the parallels on them are horizontal, meridians — vertical, and the directions up-down, right-left on all of them coincide.

It is easy to check that for any point on the torus, there is exactly one main map in which is strictly in the center. We will denote this map as and talk about it as the main map, centered at the point .

#### 1.4 Transformations of one main map of a torus into another

The fact that all main maps are the result of cutting a torus along its parallels and meridians gives us a key to understanding how to obtain one main map from another. Imagine that we have two main maps and of the torus . Suppose the first is obtained by cutting the torus along its parallel and meridian , and the second — by cutting along the parallel and meridian . On the map , the image of the parallel will be the set of all points of the lower and upper edge of , the image of the meridian — the set of all points of its left and right edge. As for the map , in the general case, the parallel and the meridian will be depicted on it as «ordinary» horizontal and vertical through segments.

(Figure 3)

To turn the map into the map it is enough to perform the following actions:

1) Cut along the parallel , swap the lower and upper segments, and then glue them together. The resulting sheet will also be a main map, let's denote it as . The lower and upper boundary of will serve as the parallel , as in the map , and the meridian , as in the map , will be its internal through segment. It remains to
2) Cut along the meridian , swap the right and left segments, after which glue them back together. The result of these actions will exactly be the map .

#### 1.5 Curves on the torus

Let's discuss how the main maps depict curves (continuous lines) on the surface of the torus.
Let be the main map of the flat torus , and be an arbitrary curve on . If we glue the opposite edges of , we will turn it back into , while the curve will become a curve on the torus. Thus, each curve on the main map can be thought of as a curve on the surface of the torus . In the opposite direction, the latter statement is not true, as not every curve on the surface of will become a curve on after transforming it into the main map .

Suppose is to be obtained by cutting along its parallel and meridian . Consider an arbitrary curve on the surface of the torus . The points of intersection of with the lines of future cuts and divide it into a sequence of segments . Each of these segments will become an independent curve on after cutting , and their sequence will have the property that the starting point of each next curve will be conjugate to the end point of the previous one. This time, the opposite statement is also true: any sequence of curves on , in which the starting point of each next curve is conjugate to the end point of the previous one, will turn into some single curve on the surface of after gluing the map into the torus . In this sense, we will say that the sequence of curves defines a curve on .

(Figure 4)

For an arbitrary curve on the surface of a flat torus of an arbitrary meridian and parallel , we can construct the projection of the set of points onto along , denote it as and the projection of onto m along , which we will denote as . The sets and will either be segments on and , or completely coincide with or . We will call the length of the width or horizontal span of the curve , and the length of — its height or its vertical span. From the properties of parallels, it follows that the definition of horizontal and vertical span does not depend on the choice of a specific and .

When projecting passenger transport schemes, we will always strive to ensure that each trip on this transport takes as little time as possible. This goal cannot be achieved if one does not make sure that the routes of travel on such transport are in some sense the shortest curves between the points of their beginning and end, or curves close to the shortest ones. Let's try to understand what the shortest curves of the flat torus look like, in particular, how they are depicted on its main maps.

#### 1.6 Shortest paths on the torus.

In the survey of shortest routes, we will be interested in two cases: the shortest routes among all the curves on the torus and the shortest routes among so-called «stepped» curves. We will call such polygons «stepped», where each segment is either a horizontal or vertical segment (a piece of parallel or meridian of the torus).

The shortest route from point to point in the class of all curves on the plane, or within a rectangle is, as is known, (directed) segment (recall why). To formulate which routes on the plane are the shortest in the class of stepped curves, let's note that each stepped route defines a certain direction on each of its straight segments. It is not difficult to check that on a plane or inside a rectangle, the stepped route is the shortest if and only if all its horizontal segments, as well as all its vertical segments, are directed in one direction (see paragraph 4.4 part 1). For example, if point is above and to the right of point , then the shortest stepped routes from to will be exactly those where each horizontal segment «looks» to the right and vertical ones — upwards (all steps «lead» to the right up).

If the plane is equipped with Cartesian coordinates with a horizontal axis and a vertical axis , then the above-written criterion of shortestness can be reformulated in another interesting way. We will call an arbitrary route monotonic if the movement of a point along $\gamma$ is accompanied by a (non-strictly) monotonic change in its coordinates and . Try to convince yourself that on a coordinate plane, the stepped route will be the shortest if and only if it is monotonic. The length of any monotonic stepped curve with ends and equals the sum of the lengths of the vertical and horizontal components (projections) of the vector .

(Figure 5)

On the flat torus , things are a bit more complicated with the shortest paths. For instance, if you take a rectangular sheet with mirror teleportation between the edges as a representation of the torus, you can indicate such pairs of points and on it that the path from to consisting of two or even three segments and teleportations between their ends will be shorter than the segment .

(Figure 6)

Fortunately, by using a special choice of the main map, the issue of constructing the shortest paths on the torus can be greatly simplified. It turns out that if is the main map of the torus , centered at its point , then for any point , the shortest route that connects and on will also be the shortest route that connects and on . Conversely, every shortest route between and on will be depicted on the map as its shortest between and . This is equally true for routes shortest in the class of all curves, and for routes shortest in the class of stepped curves. In particular, the shortest line on the torus between and will be depicted on the map in the form of a segment , or rather, in the form of a segment connecting point with one of those points that represent on the map . The shortest stepped curve on the torus with ends and will be depicted on as one of the monotonic stepped curves between and (one of the images of) . The reasoning behind these assertions is as follows:

The shortest path on the torus from point to point on the map appears either as a regular curve , or as a curve with teleportations . The fact that the second case is essentially impossible (only if all except for consist of a single point) is easily proven by induction on .

If , then there is nothing to prove.
At on the map we have two curves: and , glued together with a single teleportation. Using your knowledge of school geometry, show that, both in the class of all curves and in the class of stepped curves, replacing and with a single shortest curve for from to , certainly won't make the path between points and longer.

(Figure 7)

Let and is the representation by the map of the shortest path from to . We denote the end of the segment as , the beginning of as , and the end of as . Since any segment of the shortest path is obviously the shortest path itself, a splice of segments and will be a two-segment shortest between point and point . But if so, then we can use the statement proven for and replace the path with a single-segment path of the same or shorter length. By doing this, we get the path , which connects and , consists only of segments and is no longer than the path , i.e., it is the shortest.

#### 1.7 Small Rectangles

Let and be two arbitrary points on the surface of the torus, which do not lie on the same meridian or parallel, and are the only meridian and parallel passing through the point , and are the only meridian and parallel passing through the point . Together, the curves , , and divide the surface of the torus into 4 (connected) areas, each of which, with an appropriate choice of the main map, will be depicted on it as a rectangle.

(Figure 8)

In general, only one of these four rectangles will have each of the horizontal sides less than half a parallel, and the length of each vertical side will be less than half a meridian. This (generally) single rectangle we will call a small rectangle, stretched over the points and , and denote as .

The utility of the concept of a small rectangle lies in the following. No matter what point is on the surface of the torus, the rectangle will be depicted as a single figure on the map . Consider the case when there is only one small rectangle stretched over and . It is evident that any shortest curve between and within , whether in the class of stepwise curves or all curves, is also the shortest in the same class on the map and vice versa. Since the set of shortest curves between and on the torus coincides with the set of shortest curves built between these points on the map , all these curves are the shortest within . Thus, small rectangles allow us to reason about the shortest paths on the torus without referring to its maps.

### 2*. Unmatched Taxi with Geodesic Route

#### 2.1 The Basic Dilemma of Mass Transport with a Variable Route

A trip in a personal vehicle can always be accomplished along the shortest route (among the possible ones). If we want to create mass transport that could compete in speed with a personal car, we should strive for the route of each of its passengers not to be too much longer than the shortest. At the same time, it is intuitively clear that massiveness, i.e., the average number of passengers in the cabin, and how close the routes of these passengers are to the shortest, are opposing qualities (look at how depends on in the schemes discussed in part 1). The aim of this chapter is, albeit indirectly and very roughly, to estimate to what extent these two opposing qualities can be combined. In fact, in this chapter, we will try to answer the following two questions:

1) How should the shared taxi, the pick-up points of its future passengers, and the drop-off points of those passengers who have already boarded it be arranged relative to each other so that it could transport each of its clients along his shortest route?

2) Suppose there is only one car operating in the city and the requirement remains that each passenger's trip should follow his shortest route. How large can we make the average number of passengers transported by this car at the same time if we choose the right route for it?

#### 2.2 Relative Position of Passenger Boarding and Drop-off Points in a Geodesic Taxi.

Let be the point in the grid city where the shared taxi is located at time , are the drop-off points of its current passengers, numbered in order of increasing the length of the shortest path to them from point . At any time, we will consider the positions of points , relative to the main map (following the car with a movie camera so that the car remains in the center of its field of view at all times). For convenience, we will even assume that as if the map is always the same for us, and the image on it gradually changes over time (what was said could be given a precise mathematical meaning, but I consider it superfluous to do so here).

Consider some moment when the car has not yet reached . In general, points and do not lie on the same meridian or parallel, so by rotating the map by degrees, we can always ensure that is strictly above and strictly to the right of . Let be the stepwise route by which our car should get from point to point . By condition, must be one of the shortest stepwise curves between and , from which it follows that:

1) the curve is monotone in the rectangle , the path along it on each linear section is directed either to the right or upwards (paragraph 4.4 part 1);

2) since the path of the car from to all other drop-off points is also the shortest by condition, then all these points belong to (can you explain why?).

To describe which routes between and are permissible for the geodesic taxi and which additional passengers it can pick up along the way, consider small rectangles , as well as a small rectangle and , where is the point in the upper right corner of the map at time . We will call all these rectangles travel rectangles.

(Fig 9)

From 1), 2), and the results of paragraph 1.7 we can assert the following:
a) any permissible route of a geodesic taxi between and lies entirely inside the rectangles and within each of these rectangles it is the shortest stepwise curve between its lower left and upper right corner;
b) conversely, let be a monotonous stepwise route from to within , be a monotonous stepwise route from to within be a monotonous stepwise route from to within , then their «glueing» is a permissible route for the geodesic taxi from point to ;
c) until the taxi reaches , it can only pick up travelers whose boarding points are in . A traveler who is at point at time can be delivered by this car to his destination point if and only if point is within one of the travel rectangles when considering them as they are at this moment .

To answer what the average value of n is, we need to know the characteristic size of the travel rectangles. The area, length, and height of the travel rectangle are random variables, and the distribution law of each changes as the taxi approaches this rectangle. Let's see how this happens.

#### 2.3 Movement along the route.

Consider two consecutive moments when the car drops off its clients. Let the last time the car dropped off its client was at time and at point , and the next one it should drop off at time and at point . In order to maintain balance, on the way from to the car must pick up on average one passenger, i.e., on average within the rectangle it will find one suitable traveler for itself, denote his boarding place as , and the drop-off place as .

Compared to the disposition of travel rectangles on the map at the moment , at the moment , i.e., when the car reaches , it will change. Firstly, the travel rectangle will cease to be travel. Then, if we forget for a moment about the appearance of the new drop-off point , we can say that all the rectangles will shift towards the center of the map by the vector , and the rectangle will not only shift by , but will also grow new territory from the top and to the right. Finally, adding the point , unless it remained inside , will turn one of the travel rectangles into two new travel rectangles and two more which we are not interested in.

(Fig 10)

Simply put, during the movement of our car, the chain of travel rectangles moves towards the center of , the one on the top right grows, the one at the very center drops out, plus with some probability each element of the chain, with loss of area, divides in two.

Before we assess the size of the travel rectangles, let's consider a very similar simpler problem.

#### 2.4 Auxiliary problem.

Imagine a conveyor belt operating outdoors, and snowflakes are falling onto it from above. Let's assume the upper part of the conveyor belt has a length of and moves from right to left at a speed of . Assume that the snow falls absolutely randomly with equal intensity in time and space and this intensity is such that while the conveyor makes a half turn, on average n snowflakes manage to fall on it. It is necessary to find how the average distance between neighboring snowflakes on the belt depends on how far these snowflakes are from the left edge of the conveyor.

(Fig 11)

Here we need to clarify what we actually mean by the term «average distance». We will assume that is large. In our minds, we will divide the conveyor belt into segments of length , and we will choose to be much less than on the one hand, and on the other hand, the number should be much greater than one. Let be one of such segments and at the considered moment in time its left edge is at a distance of from the left edge of the conveyor. If is of the same order as , then at this moment there are about snowflakes on . Let's stop time and randomly select a point from segment with a uniform distribution. Let be the position of the nearest snowflake to on the left, and be the position of the nearest snowflake to on the right. Actually, by the average distance between snowflakes in that area of the belt, which is at a distance from the left edge of the conveyor, we will mean the expected value of the length of the segment . Let's consider two ways to calculate what it equals to: one — simple and accurate, and the other — a bit more complicated and approximate, but allowing itself to be generalized to the problem with travel rectangles.

Simple Solution.
Let's set up an imaginary plane across the conveyor at a distance x from its left edge. The average number of snowflakes that the conveyor belt carries across per unit of time equals the average number of snowflakes that manage to fall on the conveyor to the right of per unit of time. The average number of the latter is . Moreover, the randomness and independence of snowflakes falling on the belt lead to their positions on the belt being random and independent of each other. In particular, if you see a snowflake that just lay on the conveyor crossing , or on the contrary, for a long time no snowflake crossed , these observations alone do not give you any information about how soon the next snowflake will cross . Such observations also do not provide information about how much time has passed since the snowflake last crossed . The homogeneity in time and the independence of snowflake crossing events through the plane suggest that we have a Poisson process in front of us. The average waiting time for this process is equal to

Let and be the moments in time when the points we marked on the belt, and , will cross once again. Let be a randomly chosen moment from the time interval , is a point on the belt, which at the time is at the cut . Since the process of snowflakes passing through the cut is Poissonian, the nearest moment of a snowflake passing through after and the last one before are both on average away from by . Thus, the average distance between the nearest snowflakes to the right and left of is . This number is the solution to our problem, because randomly choosing from the interval the point with uniform probability is the same as randomly choosing from the time interval the moment , at which the point will pass through .

Almost legal solution that can be generalized.
Let's choose equal to . As before, let be one of the conveyor belt segments of length . Let's consider a sequence of time moments , when the left edge of the segment was at a distance of from the right edge of the conveyor, and track how the average distance between snowflakes on at the moment changes with .

By condition, while the belt moves a distance of , snowflakes manage to fall on the conveyor. Between and time, the belt will shift by , therefore only snowflakes will fall on the conveyor on average during this period. Since makes up only part of the conveyor length, of these snowflakes on average only one will fall on it. Its place of fall will be between some two snowflakes, which were already present on at the moment . Since the fall location of this new snowflake is randomly chosen with uniformly distributed probability along , the average distance between its right and left neighbors will be .

Let be the interval between the right and left neighbor of the new snowflake. As we have just established, the mathematical expectation of the length of is equal to . The new snowflake divides into two segments, — the left one and – the right one. If at time a random point is chosen from , then with a probability of it will fall into , and with a probability of it will end up outside .

In cases when falls inside the average distance between the nearest to snowflakes on the right and left will be given by the expression

The average (according to the position of the new snowflake inside ) value , therefore the average value of is .

What will be the average distance between the closest snowflakes to the right and left of when does not fall into ? Here we will make a very slippery assumption. We will assume that differs from by an amount significantly less than . Then:

Again, we make a not quite legal assumption that (we equate the square of the average with the average of the squares), then expression can be rewritten as:

or so

We replace the above difference equation with a differential one:

or the same

from which

or with (the most plausible value for Const at )

If we take the exact expression for that we found earlier:

and substitute into it , then we get

As you can see, our nearly legal estimate accurately reflected the law of dependence and only made a mistake in the coefficient by a factor of one and a half. We will use the same technique to estimate the area of ​​path rectangles.

#### 2.5 Estimation of the characteristic size of path rectangles

For the sake of simplicity, let's assume that the parallels and meridians of the torus, on which our imaginary city is located, have the same length . In this assumption, the taxi's «attached» map takes the form of a square with side . Since the up-down and right-left directions in such a city are equivalent, it is natural to expect that the chain of path rectangles will stretch along the diagonal of .

(Figure 12 — the red squares are path containers)

Let be the current location of our car, be the point where the top right corner of the map is currently located, and be the average number of passengers who will exit (enter) the taxi during the time it will take to get from to . Let's cover the segment with a chain of identical squares with a side , which we will call path containers. Given that the path squares are stretched along the segment , we can expect, especially with large values of , that most of them will be located inside the path containers we have constructed. We will number the containers with the index starting from the top right and try to estimate how they change with the number :
a) the average area of the path rectangle inside the container with number ;
b) the total area of all path rectangles inside the container with number .

Of course, we need to make a clarification regarding the concept of the «average area of a path rectangle» in the -th container. As in the conveyor task, by average we will understand the expected area of a path rectangle, which will be hit by a point randomly thrown, if the probability is uniformly distributed over the area of all path rectangles lying inside the container numbered .

Let's denote the top right corner of the container closest to the center as . When the taxi moves from to (more precisely, to the point closest to ), the path container numbered will move to the place of the path container numbered . We'll use this observation for our calculations (akin to the movement of a conveyor belt).

On the way from to , about passengers will manage to exit the taxi, which means that about the same number, i.e., new passengers will enter it. If we take the figure , consisting of the union of all path rectangles, then per unit of its area, there will be:

drop-off points for new passengers. In the container numbered , about such points will fall. Falling into a certain path rectangle, the new drop-off point will break it into two smaller ones with a total area, which on average is twice smaller than the area of the original one (Figure 10).

From this, the total area of the path rectangles inside the k-th container will become equal to , i.e.,

At the same time, the total area of those of its path rectangles into which new drop-off points did not fall will be approximately

Now, regarding the «average» area of those two new rectangles into which the old path rectangle breaks down when a drop-off point of another taxi passenger falls into it. According to my very rough calculations, it is approximately of the area of the old one (try to find the exact value). Of course, here the average means the outcome of throwing a random point into two new rectangles. If so, then for reasons similar to those we used in the conveyor task:

from which

or

We replace the difference equation with a differential one:

from which

for reasons of similarity, , and finally

Substituting the found expression for into , we get:

or

Again, we replace the difference equation with a differential one

from which

or

All that remains is to estimate the constant . Let's resort to the following considerations:

If at the moment when the car was in point , the first container contained drop-off points of its customers, then there were path rectangles in it and it is plausible to assume that the characteristic size of the sides of these rectangles was times smaller than the size of the side of the container. It turns out that we just need to estimate .

Let's go even further into the past. Before becoming the extreme right upper path container, container number 1 kind of surfaced from the edge of the map . While the area of the city inside container number 1 «was beyond the edge of the map», new passenger drop-off points could not fall into it. It seems plausible that at that stage the chance for new drop-off points to hit a unit of area of a path rectangle inside container number 1, was on average half as much as the chance to hit a unit of area of a path rectangle in containers of higher numbers. The segment of time when container 1 emerged from the edge of the map is adjacent to the segment of time when it moved to the position of container 2. Let's assume that during these two periods of time the distribution of the area of path rectangles inside 1 did not change much. If such an assumption is justified, then for an estimate of you can take half of the number of new drop-off points that fell into the first container during the period while it was moving from its place to the place of container number 2. Let's find out what it equals to.

The area of the path rectangles inside container number 1, according to , equals . The area of the path rectangles inside all containers, again according to , is given by the expression

From this it follows that out of approximately new drop-off points, which are added to the taxi's route during the time it crosses the — th container, approximately will fall into container number 1. Therefore,

and

#### 2.6 Average number of passengers in the cabin

First, we show that for large values of , the value of , i.e., the average number of passengers simultaneously transported by the taxi, is approximately equal to .

Indeed, if is large, then from it follows that almost the entire area of the path rectangles falls on the containers in the upper right corner, so almost all of our taxi's passengers travel a distance approximately equal to half the diagonal of the map . According to the conditions, moving the diagonal distance, the taxi picks up on average passengers. It remains to refer to the children's problem: if a bus picks up passengers for every mile, and each of the passengers travels on it just about one mile, then the average number of passengers in the bus is approximately (find the simplest way to solve it). It remains to express .

In order for the taxi to pick up new passengers when shifting by one container, the balance equation must hold:

The value of in this equation should be understood as the maximum time a traveler is willing to lose waiting for our taxi. Let's assume that if his wait is longer, he prefers another mode of transport. We will set the maximum value for from the principle we already used in the first part of the article. Basically, we require that the difference in travel time on our taxi and in a personal car on average does not exceed the average duration of a trip around the city in a personal car, multiplied by a small number .

The average length of travel in a toroidal city with uniform access (for the migration model, see paragraph 2.3 part 1) is , accordingly the average duration of a trip in a personal car is . Further, with a maximum waiting time of , the average time will be , from where:

or

Substituting the expression for into , we get

or finally:

Below are the values of for a number of model cities with

Hypothetical toroidal New York (London, Moscow):
effective diameter km,
permissible speed km/min
people/min sq km
people.

Hypothetical toroidal Berlin:
effective diameter km,
permissible speed km/min
people/min sq km
people.

Hypothetical toroidal Paris:
effective diameter km,
permissible speed km/min
people/min sq km
people.

Hypothetical toroidal Prague:
effective diameter km,
permissible speed km/min
people/min sq km
people.

Hypothetical standard toroidal half-million city.
population people,
density people/sq km,
effective diameter km,
permissible speed km/min
people/min sq km
people.

### 3. Shared Route-Corridor Taxi

#### 3.1 General Concept

Although they are rough estimates, the previous paragraph shows that with fairly realistic assumptions, the average number of passengers simultaneously transported by a shared taxi could be quite large: potentially 20-30 for megacities and 5-12 for cities with a population of several hundred thousand people. However, we should remember that these estimates were built for a single vehicle operating in non-competitive conditions, not for an entire taxi service fleet. Another note is that the route of this single geodesic taxi was prone to gravitate towards a diagonal direction, so even if there were many such vehicles in the city, it would still be difficult to meet the demand for rides with elongated directions, say, along meridians or along parallels.

What if we forcefully make different shared taxis move in different directions, albeit not exactly geodetically, but not on a very winding route either? One way to do this is to assign each vehicle a fixed route corridor within which it must then operate. Let's arrange everything so that the taxis assigned to one corridor move along it in a chain with a small temporal distance from each other. We will assume that a taxi assigned to a corridor must pick up and drop off all the travelers it encounters, if their starting and ending points are within this corridor. The work of such a taxi service will resemble the work of regular city buses, with the only difference that the routes of regular buses are strictly fixed, while the choice of route for shared taxis, although limited by the boundaries of their assigned corridor, is otherwise free. To make all city trips possible with such a taxi, at least one route corridor must pass through any two points in the city.

Our task is to find «good» networks of route corridors. Instead of dealing with an infinite set of route corridors of arbitrary shape, we use a popular method in mathematics called «discretization» and move to a sufficiently rich but (almost) finite subclass. Suppose we want to build a network of route corridors in a certain cellular city , and is their expected characteristic width. Using parallels and meridians, we divide our toroidal cellular city into equal squares , (where is the «row» number, is the column number) of size . As before, we will call the collection of these squares a cellular grid , and the squares themselves are cells or units of this grid. In this work, the route corridors are made up exclusively of cells of the grid . Let's formalize this idea a bit more precisely.

(Fig. 13)

#### 3.2 Cellular Paths: Definitions.

Some of the squares of the grid are adjacent by side. If the city has the shape of a torus and , , then each square of the grid is exactly adjacent to four other cells. Using the concept of adjacency, one can construct the exact concept of a cellular path:

A cellular path on the grid is called any finite sequence of its cells in which each next cell is side-adjacent to the previous . The number is called the (discrete) length of the path .

Those cellular paths whose last cell is adjacent to the first, we will call cyclic. By calling the path cyclic, we thereby imply that we consider the order of its elements not linear, but cyclic. From the point of view of the cyclic order, the element «follows» the element and, accordingly, the element «stands before» the element .

Any two cyclic cellular paths, which consist of the same cells in the same cyclic sequence, even if their linear sequences are different, we will consider equivalent and identify with each other. For example, we will consider as identical the cyclic paths and . If the reader is familiar with the concept of cyclic permutations, it should be obvious to them that two cyclic cellular paths are identical if and only if the linear recordings of their elements are translated into each other by a cyclic permutation.

(Figure 14)

Actually, the subjects of our further research will be such networks of route corridors, all corridors within which are (cyclic) cellular paths, built on the same square grid . Let's give a few more useful definitions.

A segment of the cellular path is called any cellular path , all elements of which are composed of consecutive elements of .

A segment of a cyclic cellular path we will call any cellular path , if it consists of the same elements as the path , and they are arranged in it in the same order in which they follow each other in (For example, for the cyclic the path will be its segment).

Let be the center of the square , and — any cellular path. Let's connect the center of each square in the sequence (with the shortest) segment to the center of the next square in . The resulting sequence of segments we will «glue» into a single stepped curve. This curve we will denote as and call the median line of the cellular path . The length of the median line of the cellular path is expressed by the formula , where is the length of the sequence , and is the length of the sides of the squares of the grid .

(Figure 15)

No matter what the cellular path is, in the sequences , formed by the first and second indices of its cells, each subsequent index is either equal to the previous one or is an adjacent integer (if is a torus, then the index is considered adjacent to the index , and the index – adjacent to the index ). The latter, in particular, means that the cells of the path are located on the grid in some sequentially lying rows and some sequentially standing columns. The number we will agree to call the height or vertical span of , and the number — its width or horizontal span.

#### 3.3 Cellular Paths of Minimal Length

Let's agree to call any cellular path, which contains the minimum number of cells among other cellular paths with the same start and end as it, minimal or geodesic. If the cellular path is minimal and serves as a segment for the cellular path , then in relation to \eta we will say that it is a minimal (geodesic) segment of the path .

Exercise: Verify that every one-cell path, just like any path composed of two different cells, will always be minimal. Prove that every segment \eta of any minimal cellular path will be its minimal segment.

There is a fairly simple criterion for minimality, almost obvious for those who have dealt with chess. If you move a rook several times, the sequence of cells it passes through will be a cellular path. Suppose you need to move a rook from cell to cell so that the number of intermediate cells on its path is minimal. It is easy to figure out that in the case when is located lower and to the left of , the solution to your problem will be any sequence of moves (starting at and ending at ), in each of which the rook moves either up or to the right. Let's give these considerations a rigorous form and generalize them to the case of a torus.

Let be an arbitrary cellular path, and the square is not the last element of it. The next square in the sequence , , either lies on the same horizontal with and adjoins it from the right or left, or these squares stand on the same vertical and adjoins from above or below. We will call the cellular path monotonic if and only if in the sequence each subsequent square, when it is on the same horizontal as the previous one, always adjoins it either only from the left or always only from the right, and when it stands on the same vertical as the previous one, it always adjoins it either only from the top or always only from the bottom. The figure below shows examples of monotonic and non-monotonic paths.

(fig 16)

Exercise: The numeric sequence is considered monotonic if as the number increases, the values of its elements change monotonically: they either do not decrease or do not increase. Let be a rectangle (without teleportation between edges), check that the cellular path on is monotonic if and only if both numeric sequences of indices and are monotonic. Try to generalize the last statement to the case when is a flat torus.

The concept of a monotonic cellular path is closely related to the concept of a monotonic step curve, which was introduced in paragraph 4.4 of Part 1 for the case of a plane and naturally extends to a flat torus (construct the generalization explicitly). It should be obvious to the reader that a path that includes more than one cell is monotonic if and only if its median line is monotonic (check!). In addition, as with curves, the monotonicity of cellular paths says something about their property to have a minimal length. The connections between these concepts are expressed in the following

Lemma about the minimum path (criteria for minimality).
Let be a rectangle or a flat torus, , , — square grid on , — cellular path over , in this case:

1) is minimal if and only if its median is the shortest in the class of step curves on ;
2) if is a rectangle, then the path will be minimal if and only if it is monotonic;
3) if is a torus, then the path will be minimal if and only if it possesses the following two properties:
a) is monotonic,
b) the median line of is such that its horizontal span is no more than half the length of the parallel, and vertically — no more than half the length of the meridian of the torus .

Proof.
As an example, I'll prove 1), and leave 2) and 3), which follow easily from 1), to the reader.

Sufficiency of 1). The length of the median line of a cellular path is expressed through the number of squares that this path is composed of. Therefore, if the median line is the shortest (in the class of step curves), then no other cellular path with the same start and end can consist of a smaller number of squares. So, if the median line of the path is the shortest, then the path itself is necessarily minimal.

Necessity of 1). All minimal cellular paths with the same start and end consist of the same number of squares, hence their median lines have the same length. It turns out, to complete the proof of 1) it is enough to construct at least one cellular path starting in the cell and ending in , where the median line would be the shortest step curve between the centers of these cells.

(fig 17)

Doing this is not difficult. According to 1.6, no matter what two points of the torus are, among the shortest step curves connecting the first with the second, there is at least one -shaped one (consisting of no more than one horizontal and no more than one vertical segment). Let be this -shaped shortest step curve from the center of to the center of . It is easy to see that the sequence of cells that the path passes through is a cellular path starting in and ending in . All that remains is to note that for this cellular path, the curve is its median line.

Exercise: Let , , be a square grid on a torus. Show that a monotone cellular path is minimal when its range horizontally does not exceed the integer part of the number , and its range vertically — does not exceed the integer part of the number .

#### 3.4 Requirements for «Good» Routing Corridor Networks

Geodesic Connectivity.
Suppose the city is already divided into squares and some set of cellular paths claims to serve as a network of route corridors for a shared taxi. If we want this taxi to allow any city journey, then we must require that any two cells and were connected by at least one segment of at least one cellular path from \Omega. We will call corridor networks that meet this requirement route-connected.

In fact, the requirement of simple route connectivity is still too weak and cannot guarantee the practical suitability of networks that meet it. The network, which consists of a single route corridor snaking around all the city's cells, is obviously route-connected, but it's hard to call it «good» in practical terms. A journey along the snake-like corridor from one random point to another will, on average, be much longer than if it were to follow the optimal route.

(fig 18)

The «snake» example suggests how we should modify the requirement of route connectivity to make it practically meaningful.

We will call a network of cellular routes geodesically connected if, for any pair of squares and in the grid , there exists at least one route in that connects these cells by one of its minimal (geodesic) segments. In other words, there should exist a cellular path and a segment of it among the elements of such that the squares and serve as the beginning and end for , and itself is minimal. If a network of route corridors is geodesically connected, then from the center of each square in the grid , in theory at least, a passenger can reach the center of any other by the shortest (stepped) route.

Competitive Minimalism.
Constructing any kind of geodesically connected network of route corridors is not difficult. For example, we get such a network if, for each pair of cells , we add some minimal cellular path from the first cell to the second to the initially empty set of corridors. As a result, the collected set of corridors will obviously be geodesically connected, but can it be considered «good» for practical implementation? To answer this question, let's estimate the average number of different route corridors in whose minimal segments allow you to get from a random cell to a random cell .

For simplicity, let's assume that the city's length and width are equal. In this case, the grid has as many columns as rows, let's denote their number as . Then:

1) the number of different pairs of squares in the grid will be of order ;
2) the number of different route corridors in will also be of order ;
3) on average, each corridor in will have about cells, so each such corridor will connect about pairs of cells in the grid ;
4) from 1)-3), it follows that typically a pair of cells will be connected by a number of corridors of the order of «total number of corridors» «average number of pairs of cells connected by one corridor» «total number of pairs of cells» .

It turns out that if we put into operation a shared taxi with a network of route corridors , then on average, cars from about different route corridors will compete for each passenger. The number is essentially how many times the city's width is larger than the width of a route corridor. Obviously, in practice, will not be less than . Now let's recall that our estimates of the average number of passengers a taxi will transport at once with a geodesic route were calculated under the assumption that there is no competition for passengers. If we divide the optimistic people we got then by , the result will no longer look so attractive and promising.

Imagine any route-corridor taxi. It is plausible to think that the price (cost) a passenger must pay for his ride, all other things being equal, will be inversely proportional to the number of his fellow passengers. The number of fellow passengers is inversely proportional to the number of cars competing for the passenger or the same — the number of route corridors competing for his journey. From the last two statements, we conclude that the average fare for a shared taxi is proportional to the average number of route corridors competing for this ride. If we want to make rides cheaper, we should use networks of route corridors in which competition between corridors is low. In other words, we can consider a network of route corridors \Omega to be «good» only when the average number of its corridors, whose minimal segments connect the squares and , is small and ideally close to one — this is the requirement of competitive minimalism.

Let's now move on to an example of a network that is both geodesically connected and sufficiently competitively minimalist.

### 4. Shared Taxi with Rectangular Routes

#### 4.1 Network of Large Rectangles

Suppose we are dealing with a flat torus that is divided into squares of the grid . It will be convenient for us to assume that the number of rows and columns is odd: , and , . Consider two arbitrary cells , . If these cells belong to different rows and columns, then from to exactly two -shaped shortest cellular paths can be drawn, and otherwise — exactly one shortest «straight» path (think about whether this statement will be correct if one of the numbers or is even?). In both cases, these shortest paths can be, and not in a unique way, completed to closed rectangles. The latter means that any two cells of the grid can be connected to each other by a geodesic segment of some rectangular cellular path.

(Fig 19)

In order to connect all pairs of cells with geodesic segments, it is not necessary to take all rectangles on . The shortest \Gamma — shaped cellular path from to is no more than cells wide and no more than cell high (otherwise its median line will be too large, see paragraph 3.3), which means it can always be completed to a rectangle of size cells. Thus, for the network of route corridors to be geodesically connected, it is enough to include all rectangles of size cells.

We will call rectangular cyclic cellular paths with a width of cells and a height of cell «large rectangles» and divide them into clockwise-oriented (negatively oriented) and counterclockwise-oriented (positively oriented). It is easy to see that if cells and are in a general position relative to each other (that is, they lie in different rows and columns), then exactly one large rectangle passes through them (up to equivalence, see paragraph 3.2) oriented clockwise (negative orientation), and exactly one oriented counterclockwise (positive orientation). From this it follows that the set of all large rectangles with positive orientation and the set of all large rectangles with negative orientation are both geodesically connected networks of route corridors with a competition index close to 1.

(Fig 20)

Below is a detailed analysis of a taxi with the network of route corridors. Note that along each route corridor in a chain of cars moves only in one direction: counterclockwise.

#### 4.2 Transport load and passenger flow.

To calculate the average number of passengers that a single taxi car carries at the same time, we introduce the concept of transport load. In a city covered by a grid of size rows columns, a random traveler moves on average cells horizontally cells vertically (from the center of the main map to its random point, see paragraph 4.4 of the first part). We can say that by appearing on the city map, a traveler creates a need for moving person on average person-cells — this is the transport load he brings. In one unit of time, travelers appear inside one cell, so each cell generates a transport load of per unit of time, and all cells together generate person-cells.

Taxi cars transport travelers and thus satisfy (neutralize) the transport load. Let be the average speed at which a taxi car integrally passes the cells of its route corridor, that is, is such a value that on average per unit of time the car moves forward by cells. Since any traveler's trip always goes along the minimum segment of the route corridor, from the passengers' point of view, the taxi does not pass «extra» cells. The latter means that in one unit of time one taxi car eliminates units of the transport load generated by the city. Let be the number of all cars in the taxi service. The requirement for balance between generation and elimination of transport load leads us to the equation:

To express from it, we need to find what is. Let's first say that is such that the average distance between neighboring buses of the same route is equal to , that is, there is exactly bus for each cell of the corridor. In this case, is exactly equal to the number of cells in all the route corridors , let's count them.

Each large rectangle contains cells. Each of the grid cells serves as the bottom left corner for exactly one large rectangle. From the last two statements, it follows that all the corridors contain (taking into account repetitions) grid cells . Substituting the found into equation , we get:

from where

Let's now assume that the bus interval is chosen arbitrarily. In this case, the distance between neighboring vehicles of one route will be , and their number in the city will change by times compared to what we had above. The more taxi cars there are, the less transportation load falls on each of them, and therefore the less the average number of passengers simultaneously transported by one car should be. Thus, for an arbitrary :

It is remarkable that ultimately does not directly depend on the average speed .

And so, we expressed , that is, the average number of passengers who are simultaneously in the salon of one car, averaged over all taxi cars and all their working time. However, it is interesting to know not only this super-averaged value, but also how the expected number of passengers in the salon changes over time for a specific car, and how its time-averaged value differs for different cars?

The answer to the second question should be obvious: since all route corridors of the network are equivalent (any large rectangle can be translated into any other by torus movement), then the average conditions over time of all cars circulating along these corridors will be absolutely identical. Let's now answer the question of how the expected number of passengers in a taxi cabin changes as it moves forward along its corridor.

(Fig 21)

Cars from many large rectangles compete for the transportation of passengers between squares located within one row or one column. In the same case, when squares and belong to different rows and different columns, you can get from one to another via a single large rectangle from . From all this, we can conclude that while a taxi is driving, say, along the left side of its assigned large rectangle , the vast majority of passengers it picks up there are heading to the cells of the lower side of , and most of the passengers it drops off came from the cells of the upper side of . It is clear that similar statements will be true in cases where the taxi is on any other side of .

Considering the remark above, we can count how many passengers, on average, a taxi picks up and drops off inside each non-corner cell of the rectangle . For definiteness, let's consider the cell on the left side of again. The expected number of passengers that the car will bring to from the cells of the upper side of can be expressed by the formula:

«area of cell » «area of cells on the upper side of » «area of the city»

In turn, the expected number of passengers who will go by this car from the cell to the cells of the lower side of can be approximately expressed by the formula:

«area of cell» " «area of cells on the lower side of» " «area of the city»

Since , the expected number of passengers in the cabin of this car almost does not change with the passing of cell , which means that due to the randomness of the choice of , it should remain almost unchanged throughout the entire route .

#### 4.3 Route traversal algorithm and travel time

In the chapter dedicated to intercellular taxi, we have already considered the traversal algorithm, which allows a taxi car to pick up passengers inside the route corridor assigned to it (paragraph 4.3 part 1). Let's slightly improve it.

Most cells of a large rectangle are «laid out in a straight line», while the corners make up its insignificant part. Consider the moment when the taxi car has just dropped off or picked up its next passenger and has a long straight stretch of the assigned route corridor ahead. We will not force this car to return to the middle line of its corridor, as was the case in the algorithm for intercellular taxi, but will allow it to move forward parallel to this middle line directly from the point where it is currently located.

(fig 22)

The car should move parallel to the middle line until it is directly to the right or directly to the left of the point where it should drop off or pick up its next client. When this happens, it should turn 90 degrees and drive the remaining distance to the pick-up/drop-off point in a straight line. Upon reaching it, the taxi car finds itself in conditions for which the algorithm of its actions is already defined. Let's now estimate how much our shared taxi will lose in speed to a personal car with this traversal algorithm.

For the previous traversal algorithm, in which the taxi car always returned to the middle line of the assigned corridor, each pick-up/drop-off point cost the passengers on board an average of an additional units of travel distance. Since the average distance between two randomly chosen points of the segment with length is (see paragraph 4.4 part 1), then in the new traversal algorithm, the average additional path from one stop is only — a small but valuable improvement. Let's now turn to the issue of travel time.

The journey length between random points in a toroidal cell city of size , if it is performed along the shortest route, is on average equal to (why?). In a personal car, such a distance can be overcome in

units of time.

In the case when city travels are carried out in a shared taxi, the waiting time for the car and the penalty associated with the fact that the passenger's journey route is no longer the shortest (we will neglect the pick-up/drop-off time and acceleration/braking penalty for now) are added to their duration. If the interval between cars operating within one route corridor is , then the waiting time for a suitable car for travel can be estimated as . Now, let's talk about the non-ideal nature of the route.

Above, we found that each stop of a taxi car that a passenger passes in transit costs him an average of additional travel units or the same — additional time. To understand how much these delays slow down the journey, we need to calculate the average number of taxi stops a passenger will endure during his trip. We will prove that if the expected number of passengers in the cabin remains almost constant over time, then the average number of stops endured by a passenger is about twice .

Indeed, let's imagine that every time a taxi passenger sees himself or any of his fellow travelers enter or leave the salon of this car, he makes a paper airplane and throws it out the window. If over a certain large period of time , passengers entered the car, then approximately the same number, i.e. , should have left the car over this period . Each time a new traveler boarded or left the car, this event was observed by approximately passengers (since is large and therefore the law of large numbers works). It turns out that over the time period , approximately paper airplanes were launched, i.e., on average, airplanes per passenger.

Adding up the waiting time and the penalty for the non-ideal nature of the route, we get a formula for the average travel time of a shared taxi passenger:

Exercise: try to come up with conditions under which the average number of times a passenger observes himself or other passengers getting on the bus (himself or other passengers getting off the bus) is only half the average number of passengers in this bus over time. Can these quantities be even smaller?

#### 4.4 Optimization

Let's select such values of and that, on the one hand, the average number of passengers in the taxi becomes maximal, and on the other hand, the average duration of their journey does not exceed more than times the average duration of a journey by private car (for comparison, see paragraphs 4.6 and 5.3 of Part 1). For simplicity, let's solve the problem for a torus with parallels and meridians of equal length: . Formally, we need to maximize

subject to the «constraint»

Let be an arbitrary number from the segment . Let's use the method from the first part and set:

and

From this, we get:

,

The expression

under the condition

reaches a maximum when , (check by calculating the derivatives), therefore finally:

#### 4.5 Estimates for (almost) real cities

Let's calculate what equals at optimal and in our already familiar typical cities when the value of equals .

Hypothetical toroidal New York (London, Moscow):
effective diameter km,
permitted speed km/min
people/min per sq km
people.
km
min

Hypothetical toroidal Berlin:
effective diameter km,
permitted speed km/min
people/min per sq km
people.
km
min

Hypothetical toroidal Paris:
effective diameter km,
permitted speed km/min
people/min per sq km
people.
km
min

Hypothetical toroidal Prague:
effective diameter km,
permitted speed km/min
people/min per sq km
people.
km
min

Hypothetical standard toroidal half-million city.
population people,
density people/sq km,
effective diameter km,
permitted speed km/min
people/min per sq km
people.
km
min

#### 4.6 Criticism

Of course, humanity has not yet learned how to fold real cities into a torus.
Naturally, we've overlooked acceleration/braking time as well as boarding/alighting time, and as a result we've overestimated the number of passengers for such oversights to be justified (demonstrate that the taxi car stops approximately times per unit length of the route corridor, calculate the average distance between its stops in each of the cities mentioned above).
Finally, we've once again exceeded the limits of our model's applicability since the grid cell sizes derived from it — km for New York, km for Berlin, and especially km for Paris — turned out to be definitely not «much larger than a half-kilometer block» (an implicit assumption for the routing algorithm, see paragraph 4.3 of part 1 for details). Nonetheless, this chapter still holds value because:

First, all the problems listed in this model can be rectified and we will do so in the third part of the paper.
Second, it applies the principle of decomposition: «break down the problem into its main parts and study each separately». Decomposition is a powerful research technique, popularized in ancient Greece. One of the main problems with shared taxis is the increase in the route length for its passengers — and this is the issue we've studied separately here.
Third, it's always important to compare like with like. If we look at the figures obtained under the same assumptions for intercellular taxis, we'll see that the average load of shared taxis with rectangular routes has almost tripled with the same value of . Such an increase in efficiency should hint to the reader that we are on the right track.

### 5. Research tasks for independent resolution

#### 5.1 Parting Advice

I wanted to include a description of an improved taxi scheme with one transfer in this article, but then I realized I didn't want to take away the reader's pleasure of making a discovery themselves. You will need a lot of imagination, some mental experiments, and simple calculations. Each time you find another solution, try to criticize it and think about whether it could be improved a little. Experiment, analyze, and experiment again. I will give you a few leading ideas, but otherwise, let this be entirely your own research project for a month or half a year.

#### 5.2 Improved Scheme with One Transfer

Assume you are dealing with a cellular city on a torus. Consider such a modification of the simple bus scheme (paragraph 3.1 in part 1) that allows an individual bus not to stop at the next stop if there's nobody there and not a single passenger on that bus wants to get off there. Suppose you have a requirement that the duration of the «average» journey on such buses should not exceed the «average» journey by private car by more than times. By varying the bus headway , optimize the expected number of passengers in each of them. What expression did you get for ? Try to think of a trick that, all other things being equal, would allow you to increase almost twice as much. Estimate the minimum size of cities for which the solutions you have found are suitable.

#### 5.3 The Best Passenger Transport Scheme on a Straight Line (for those confident in their math skills)

Suppose you have an infinite road extending in both directions and that on every kilometer of its length, on average, $\sigma$ new travelers appear every minute. These travelers choose their destinations randomly. By definition, the probability that a journey will be of length from to equals . For simplicity, let's assume that journeys are made from left to right. Think about how to organize passenger transportation in the «best possible way». The definition of «the best way» you can give at your discretion but in a way that it has practical value.

### Acknowledgements

One would think, what's so difficult, I'll get everything done by the beginning of winter. Working on the text, unexpected discoveries, errors, and dead-end paths stretched the research over six months. A usual story, if I had known in advance — I would never have taken it :)

I could not have walked this path without my friends, for which I am very grateful.

Also, I am grateful to a small winged muse, who always answered my smile with a smile :)

Days of work almost in complete solitude merged into one, I lost count of them. Music helped me not to lose heart and reach the end. I don't have the means to adequately pay for the artists' work, so let me thank them with a little advertising.

In case you need a little inspiration and beauty:

1) London Grammar – an amazing band, their songs are the most «catchy» I've ever heard. They've rightfully received recognition and probably don't need my promotion, but still.

2) Rachel Hardy — this lady knows how to get to your heart. Warning, at first, her voice will sound in your dreams. Belongs to a new generation of artists who are betting on YouTube. In my opinion, her creativity is greatly underrated.

3) Alexian — if you are a fan of Luc Besson's movies, you've definitely heard her. Her singing style is like no other.

4) Emily Linge — a very young singer, but damn, she managed to perform Bohemian Rhapsody in a way that in some places she outdid the queen herself!

Music without words for those moments when you are writing text:

5) Kelsey Lee Cate — an optimistic pianist and composer, I love listening to her in the mornings.

6) Karolina Es — beautiful string music and bright shows for cat-music lovers)

7) Rhapsodie — her interaction with the keys is like witchcraft, gives piano lessons.

Listen to a bedtime story

8) Puffin Cafe – the golden age of world fiction and attention to talented budding authors. Pleasant voice, good taste.

That's probably it for today. Thanks to those who read to the end, or at least tried to do so. If you want to write me a letter, send it to my email magnolia@bk.ru

Sergey Kovalenko
Spring 2023

Link to Part 1: «Preliminary Analysis» (ру / eng )
Link to Part 2: «Experiments on a Torus» (ру / eng )
Link to Part 3: «Practically Significant Solutions» (ру / eng )
Link to «Summary» (ру / eng )
+3

## Ближайшие события

19 сентября
CDI Conf 2024
Москва
24 сентября
Конференция Fin.Bot 2024
МоскваОнлайн
30 сентября – 1 октября
Конференция фронтенд-разработчиков FrontendConf 2024
МоскваОнлайн