Next Article in Journal
Numerical Solutions of Nonlinear Delay Mixed Integral Equation in Two Dimensions via Collocation Method Based on Chebyshev and Legendre Polynomials
Previous Article in Journal
Generalised Equations for Calculating Arsenic Removal Efficiency Using Synthetic Adsorbents
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Method for Solving the Monge–Kantorovich Problem Using an Automaton and Wavelet Analysis

by
Armando Sánchez-Nungaray
1,*,
Marcelo Pérez-Medel
2,
Carlos González-Flores
3,
Raquiel R. López-Martínez
1 and
Martín Solís-Pérez
4
1
Facultad de Matemáticas, Universidad Veracruzana, Xalapa 91000, Mexico
2
Facultad de Estudios Superiores Aragón, UNAM, Mexico City 04510, Mexico
3
Escuela Superior de Ingeniería Mecánica y Eléctrica Zacatenco, Instituto Politécnico Nacional, Mexico City 07738, Mexico
4
Instituto Tecnológico de Querétaro, Santiago de Querétaro 76000, Mexico
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2026, 31(2), 58; https://doi.org/10.3390/mca31020058
Submission received: 6 February 2026 / Revised: 14 March 2026 / Accepted: 1 April 2026 / Published: 9 April 2026
(This article belongs to the Section Natural Sciences)

Abstract

This article introduces an automaton designed to improve feasible solutions to the Monge–Kantorovich (MK) problem, particularly effective when the cost function is continuous. To enhance its performance, a good initial solution is obtained using the discrete wavelet transform. Specifically, a transportation problem is solved where the cost matrix is composed of the approximation coefficients of the transform, reducing the number of variables to one quarter of the original discrete problem. The solution to this reduced problem is extended using the detail coefficients, yielding a feasible solution to the original problem. This solution serves as the initial state of the tuning automaton, whose final states provide approximations to the optimal solution of the transportation problem.

1. Introduction

Recognized as one of the foundational formulations in optimal transport theory, the Monge–Kantorovich (MK) problem provides the theoretical framework for a wide range of applications, including image registration, mass redistribution problems, numerical approximation of measures, and modern machine learning models [1,2,3]. Efficiently solving this problem requires approximating measures and cost functions defined on high-dimensional spaces, which leads to significant computational challenges, particularly when fine discretizations are used or when progressively refined solutions are sought [4,5,6,7].
The Monge–Kantorovich problem is formulated as follows. Let X and Y be two compact subsets of R . We denote by M + ( X × Y ) the family of finite measures on X × Y . Given μ M + ( X × Y ) , its marginal measures on X and Y are defined by
Π 1 μ ( E 1 ) = μ ( E 1 × Y ) ,
and
Π 2 μ ( E 2 ) = μ ( X × E 2 ) ,
for each μ -measurable set E 1 X and E 2 Y . Let c be a real-valued function defined on X × Y , and let η 1 and η 2 be finite measures on X and Y, respectively. The Monge–Kantorovich mass transfer problem is then given by
MK : minimize μ , c : = c d μ subject to Π 1 μ ( E 1 ) = η 1 ( E 1 ) , Π 2 μ ( E 2 ) = η 2 ( E 2 ) , μ M + ( X × Y ) ,
which constitutes a linear optimization problem over the space of positive measures with prescribed marginals [5,6].
Wavelet-based multiresolution analysis (MRA), particularly Haar MRA, provides a natural framework for constructing hierarchical approximations of the MK problem. In this approach, the involved measures and cost functions are projected onto nested approximation spaces, yielding a sequence of discrete problems at increasing resolution levels. This multiscale structure significantly reduces the computational complexity of the problem while preserving its essential features [8,9,10,11]. However, even within this framework, obtaining an optimal solution at a fine resolution may still require solving large-scale transportation problems.
Multiresolution schemes based on wavelet decompositions have already been successfully applied to the Monge–Kantorovich problem. In particular, Haar-based approximations have been used to construct discrete versions of the MK problem and to derive efficient numerical schemes for its solution [12,13,14]. These approaches exploit the hierarchical nature of the wavelet transform to obtain good initial approximations at coarse levels, which are then refined as the resolution increases.
To further enhance computational efficiency, we propose complementing the wavelet-based approximation with an automaton specifically designed to operate on permutations. This automaton uses local cost information to guide transitions between feasible solutions, ensuring that each transition preserves feasibility while improving or maintaining the value of the objective function. The underlying structure of the automaton is closely related to classical assignment and transportation problems [15,16,17], and its behavior can be interpreted as a metaheuristic refinement strategy [4].
In our approach, the multiresolution analysis provides an initial feasible solution that is close to optimal at each resolution level. Specifically, we apply the discrete wavelet transform to the cost function and solve the corresponding transportation problem whose cost matrix consists of the approximation coefficients. This reduced problem involves only one quarter of the variables of the original discrete problem, leading to a substantial reduction in computational cost. Similar strategies have been shown to be effective in previous studies [12,13,14].
The solution obtained for the transportation problem at the approximation level is then extended to a feasible solution of the original problem by incorporating the detail coefficients of the wavelet decomposition. This extended solution serves as the initial state of the tuning automaton. The final states reached by the automaton are taken as approximations of the optimal solution of the Monge–Kantorovich problem. The convergence and stability of such approximation procedures are supported by classical results on approximation schemes and convergence of measures [5,6,18].
The content of this article is as follows: In Section 2, we present a series of preliminary results on multiresolution analysis (MRA) and wavelet transforms that will be applied to obtain approximations of the Monge–Kantorovich problem. In Section 3, we present an adjustment automaton for the permutation group. This tool will be fundamental in the development of this article, as it will allow us to improve the solutions to transportation problems. In Section 4, we present the discretizations of the Monge–Kantorovich problem, noting that the feasible solutions are permutations and defining a function on each state of the automaton (permutation and position) that will allow us to ensure that the next state is better than, or at least equal to, the current one. We then present some examples to illustrate how the automaton works, starting from a random permutation. In Section 5, we present several classic examples of Monge–Kantorovich problems, giving approximations of the solutions based on a methodology for solving transportation problems at each level of multiresolution analysis using the wavelet transform and the tuning automaton for permutations.

2. Preliminaries

This section presents the theoretical foundations underlying the proposed methodology. In particular, it presents multiresolution analysis (MRA) based on Haar wavelets and its extension to the two-dimensional case, along with the properties of measure projection through multiscale approximations.
A multiresolution analysis (MRA) on the real line R is defined as a sequence { V j } j Z in the function space of L 2 ( R ) . These subspaces satisfy the following properties:
(1).
V j V j + 1 , for every j Z .
(2).
L 2 ( R ) = j Z V j ¯ .
(3).
j Z V j = { 0 } .
(4).
V j = D 2 j V 0 .
(5).
There exists a function φ L 2 ( R ) , called the scaling function, such that the collection { T j φ } j Z forms an orthonormal system of translates and
V 0 = span ¯ { T j φ } j Z ,
  • where D a and T b denote the dilation and translation operators by the elements a and b, respectively.
Let φ ( x ) = χ [ 0 , 1 ) ( x ) and ψ ( x ) = χ [ 0 , 1 / 2 ) ( x ) χ [ 1 / 2 , 1 ) ( x ) , where χ A denotes the characteristic function of the set A. For each pair ( j , k ) Z × Z , we define the functions:
φ j , k ( x ) = ( D 2 j T k φ ) ( x ) = 2 j / 2 χ I j , k ( x ) , ψ j , k ( x ) = ( D 2 j T k ψ ) ( x ) = 2 j / 2 χ I j + 1 , 2 k ( x ) χ I j + 1 , 2 k + 1 ( x ) ,
where I j , k = 2 j k , 2 j ( k + 1 ) . Thus, the Haar multiresolution analysis (Haar-MRA) on R is the sequence of subspaces { V j } j Z generated by the scaling function φ ( x ) . Moreover, the set
j Z { ψ j , k } k Z
forms a basis of L 2 ( R ) and for each j Z , the space V j + 1 is decomposed as the direct sum V j W j , where
W j = span ¯ { ψ j , k } k Z .
The Haar multiresolution analysis on R can be extended to R 2 by defining the scaling function as Φ ( x , y ) = φ ( x ) φ ( y ) , along with the Haar wavelet functions on R 2 defined by
Ψ ( 1 , 2 ) ( x , y ) = φ ( x ) ψ ( y ) , Ψ ( 2 , 1 ) ( x , y ) = ψ ( x ) φ ( y ) , Ψ ( 2 , 2 ) ( x , y ) = ψ ( x ) ψ ( y ) .
Using these functions, we define the spaces
V 0 = span ¯ { T j , k Φ } ( j , k ) Z 2 and V j = D 2 j V 0 ,
where D a and T j , k represent the dilatation and translation operators a and ( j , k ) , respectively. These operators are explicitly defined as:
D a = D a D a and T j , k = T j T k .
Hence, the sequence { V j } j Z of subspaces of L 2 ( R 2 ) constitutes the Haar-MRA on R 2 . Consequently, we obtain the following decomposition:
V j + 1 = V j W j ( 1 , 2 ) W j ( 2 , 1 ) W j ( 2 , 2 ) ,
where
W j ( 1 , 2 ) = V j W j , W j ( 2 , 1 ) = W j V j and W j ( 2 , 2 ) = W j W j .
The Haar scaling system consists of all functions of the form
Φ j , k 1 , k 2 ( x , y ) = φ j , k 1 ( x ) φ j , k 2 ( y ) , j , k 1 , k 2 Z ,
while the Haar scaling system is the collection of all functions
Ψ j , k 1 , k 2 ( 1 , 2 ) ( x , y ) = φ j , k 1 ( x ) ψ j , k 2 ( y ) , Ψ j , k 1 , k 2 ( 2 , 1 ) ( x , y ) = ψ j , k 1 ( x ) φ j , k 2 ( y ) , Ψ j , k 1 , k 2 ( 2 , 2 ) ( x , y ) = ψ j , k 1 ( x ) ψ j , k 2 ( y ) ,
for all j , k 1 , k 2 Z .
In the two-dimensional Haar decomposition, the wavelet system Ψ ( 1 , 2 ) , Ψ ( 2 , 1 ) , and Ψ ( 2 , 2 ) corresponds to the horizontal, vertical, and diagonal detail components, respectively. Thus, each resolution level produces a low-pass approximation together with exactly three high-pass components.
It is well known that the collection of functions
j 0 Z j j 0 Φ j 0 , k 1 , k 2 , Ψ j , k 1 , k 2 ( 1 , 2 ) , Ψ j , k 1 , k 2 ( 2 , 1 ) , Ψ j , k 1 , k 2 ( 2 , 2 ) k 1 , k 2 Z
forms an orthonormal basis for L 2 ( R 2 ) . Furthermore, the collection
j Z Ψ j , k 1 , k 2 ( 1 , 2 ) , Ψ j , k 1 , k 2 ( 2 , 1 ) , Ψ j , k 1 , k 2 ( 2 , 2 ) k 1 , k 2 Z
also constitutes an orthonormal basis for L 2 ( R 2 ) .
Thus, the approximation operator at the level j Z is defined as
( P j f ) ( x , y ) = k 1 , k 2 Z f , Φ j , k 1 , k 2 Φ j , k 1 , k 2 ( x , y ) ,
for all f L 2 ( R 2 ) . The detail operators at this level are defined as
( Q j i f ) ( x , y ) = k 1 , k 2 Z f , Ψ j , k 1 , k 2 i Ψ j , k 1 , k 2 i ( x , y ) ,
with i { ( 1 , 2 ) , ( 2 , 1 ) , ( 2 , 2 ) } . Note that the projection satisfies the following decomposition
P j + 1 = P j + Q j ( 1 , 2 ) + Q j ( 2 , 1 ) + Q j ( 2 , 2 ) .
We now describe the approximation operator P j and detail operators Q j ( 1 , 2 ) , Q j ( 2 , 1 ) and Q j ( 2 , 2 ) from the geometric point of view. Given that j , k 1 , k 2 Z fixed, we consider the square defined by
S ( j , k 1 , k 2 ) = I j , k 1 × I j , k 2 = k 1 2 j , k 1 + 1 2 j × k 2 2 j , k 2 + 1 2 j .
This square can be decomposed as a disjoint union of the following squares:
S 11 ( j , k 1 , k 2 ) = S ( j + 1 , 2 k 1 , 2 k 2 ) , S 12 ( j , k 1 , k 2 ) = S ( j + 1 , 2 k 1 , 2 k 2 + 1 ) , S 21 ( j , k 1 , k 2 ) = S ( j + 1 , 2 k 1 + 1 , 2 k 2 ) , S 22 ( j , k 1 , k 2 ) = S ( j + 1 , 2 k 1 + 1 , 2 k 2 + 1 ) .
Thus, we have that
Φ j , k 1 , k 2 = 2 j χ S 11 , Ψ j , k 1 , k 2 ( 1 , 2 ) = 2 j χ S 11 S 21 χ S 12 S 22 , Ψ j , k 1 , k 2 ( 2 , 1 ) = 2 j χ S 11 S 12 χ S 21 S 22 , Ψ j , k 1 , k 2 ( 2 , 2 ) = 2 j χ S 11 S 22 χ S 12 S 21 ,
where the sets S i j , with i , i = 1 , 2 , are illustred in Figure 1.
Consequently, for f L 2 ( R 2 ) the operator P j f acts as a discretization of f that is constant over the disjoint squares S ( j , k 1 , k 2 ) . For more details on the fundamental results in multiresolution analysis, see the following works: [9,10,11,13].
Additionally, let X be a compact subset of R 2 . We assume that μ is a measure absolutely continuous with respect to the Lebesgue measure λ , whose Radon-Nikodym derivative f μ satisfies f μ L 1 ( X ) L 2 ( X ) .
It is well known that P j f μ f μ 2 0 as j . Moreover, by the compactness of X, we have the estimate
P j f μ f μ 1 λ ( X ) 1 / 2 P j f μ f μ 2 .
Therefore, the approximation μ j of the measure μ in the level j defined by d μ j = P j f μ d λ is absolutely continuous with respect to the Lebesgue measure λ . If we further assume that the measure μ has support contained in X, then the approximations μ j converge to μ in both the L 1 and L 2 sense.
Note that for each μ j , there exists an integrable function μ ^ j P j L 2 ( R 2 ) such that μ j ( A ) = E [ μ ^ j χ A ] for every Lebesgue measurable set A R 2 , where E [ g ] denotes the expectation of g with respect to the Lebesgue measure.
Finally, the fact that each the measure μ j has compact support implies that the sequence { μ j } j Z converges weakly to the measure μ . For further details on the approximation of a measure using multiresolution analysis, see [12,13].

3. Adjustment Automaton over Permutations

This section introduces a finite automaton defined on the permutation group S n , designed to refine discretized feasible solutions to the Monge–Kantorovich (MK) problem. The automaton serves as a central tool in the subsequent section, where it enables systematic local adjustments that reduce the associated cost and thereby improves solution quality.
An automaton is a theoretical model of computation used to describe and analyze systems that process inputs and produce outputs according to a prescribed set of states and transition rules. Formally, an automaton is defined as follows:
Definition 1.
An automaton is defined as a 5-tuple:
A = ( Q , Σ , δ , q 0 , F ) ,
where:
  • Q is a finite set of states,
  • Σ is a finite set of input symbols called the alphabet,
  • δ : Q × Σ Q is the transition function,
  • q 0 Q is the initial state,
  • F Q is the set of accepting (or final) states.
Explanation of the Components:
1.
States (Q). At any given time, the automaton occupies one of a finite number of states. These states encode the internal configuration of the system and may be interpreted as its “memory.”
2.
Alphabet ( Σ ). The input alphabet is a finite set of symbols that the automaton is capable of reading. For instance, in the case of binary inputs, one has Σ = { 0 , 1 } .
3.
Transition Function ( δ ). The transition function specifies how the automaton evolves from one state to another in response to an input symbol. Formally, it is a mapping
δ : Q × Σ Q .
Given a state q Q and an input symbol a Σ , the value δ ( q , a ) determines the subsequent state of the automaton.
4.
Initial State ( q 0 ). Computation begins at the distinguished initial state q 0 Q , from which the automaton starts processing the input.
5.
Accepting States (F). A subset F Q is designated as the set of accepting (or final) states. An input string is said to be accepted by the automaton if, after the entire input has been processed, the automaton terminates in a state belonging to F.
Further information on the automaton is provided in [19,20]. We now recall the following concept:
Definition 2.
Let n N with n 0 , and let n = { 1 , , n } . A permutation on n is an invertible function σ : n n . The set of all permutations on n, together with function composition, forms a group called the symmetric group of degree n, which is denoted by S n .
A permutation σ S n can be represented as an array (or list) of length n, where the i-th entry specifies the image of i under σ . Formally, a permutation σ is represented as:
σ = σ ( 1 ) σ ( 2 ) σ ( n ) .
The inverse of a permutation σ = σ ( 1 ) σ ( 2 ) σ ( n ) is the permutation σ 1 such that:
σ 1 ( σ ( i ) ) = i , for all i { 1 , 2 , , n } .
To compute σ 1 from the array representation of σ , one swaps the indices and the corresponding values. A detailed discussion of permutations can be found in [21].
Example 1.
Let σ = 4 3 1 2 S 4 . Then its inverse permutation is given by
σ 1 = 3 4 2 1 .
We can represent the permutation σ by the matrix A σ = ( a i , j σ ) i , j = 1 n , defined by
a i , j σ = 1 , if j = σ ( i ) , i = 1 , , n , 0 , otherwise .
Example 2.
Let σ = 3 1 2 S 3 . Its matrix representation is given by
A σ = 0 0 1 1 0 0 0 1 0 .
Observe that for each fixed permutation σ S n and fixed index k, the components of σ associated with the position k take the following form.
values σ ( k ) 1 σ ( k 1 ) σ ( k ) σ ( k + 1 ) σ ( k ) + 1 positions σ 1 ( σ ( k ) 1 ) k 1 k k + 1 σ 1 ( σ ( k ) + 1 )
The second row indicates the position in the array associated with the permutation σ , while k denotes the position at which the automaton acts.
Example 3.
To exemplify the above paragraph, we consider the following permutation with respect to position k = 5 .
σ = ( 4 , 6 , 8 , 7 , 2 , 5 , 3 , 1 ) positions 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8
The inverse permutation is given by
σ 1 = ( 8 , 5 , 7 , 1 , 6 , 2 , 4 , 3 ) positions 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8
Now, calculate the distinguished position with respect to k = 5 , which are 4 , 5 , 6 , 7 , 8 since
σ 1 ( σ ( k ) + 1 ) = σ 1 ( σ ( 5 ) 1 ) = σ 1 ( 2 1 ) = 8 ,
and
σ 1 ( σ ( k ) + 1 ) = σ 1 ( 2 + 1 ) = 7 .
Finnally, the matrix representation is given by
A σ = 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 .
Remark 1.
In the figures presented in Section 5, the graphs representing the permutations (feasible solutions) are numbered from bottom to top and from left to right. Moreover, the positions of the 1’s are represented by colored points. In contrast, in the previous matrix representation, the numbering is carried out from top to bottom and from right to left. For example, considering the row reordering used in Section 5, the previous matrix corresponds to the following arrangement.
1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 .
Finally, the representation of the permutation using colored points is as follows:
.
The neighbors’ interpretation is as follows. The neighbors of ( k , σ ( k ) ) in the matrix representation are those positions that contain the value 1 in the rows and columns adjacent to position ( k , σ ( k ) ) , since σ is fixed, we will refer to the position ( k , σ ( k ) ) simply as position k. Explicitly, these positions are:
σ 1 ( σ ( k ) 1 ) , σ ( k ) 1 , k 1 , σ ( k 1 ) , k + 1 , σ ( k + 1 ) , σ 1 ( σ ( k ) + 1 ) , σ ( k ) + 1
For simplicity, we will write
σ 1 ( σ ( k ) 1 ) , k 1 , k + 1 , σ 1 ( σ ( k ) + 1 )
to denote the neighbors of position k, which are illustrated in Figure 2.
Definition 3.
We define an adjusted automaton constructed from the elements of S n in the following manner: we consider the 5-tuple
A = ( Q , Σ , δ , q 0 , F ) ,
where:
  • Q = S n × { 1 , , n + 1 } is a finite set of states,
  • Σ = { 0 , 1 , 2 , 3 , 4 } is a finite set of input symbols called the alphabet,
  • δ : Q × Σ Q is the transition function, which is defined by
    δ ( ( σ , k ) , 0 ) = ( σ , k + 1 ) δ ( ( σ , k ) , 1 ) = ( σ 1 , k + 1 ) δ ( ( σ , k ) , 2 ) = ( σ 2 , k + 1 ) δ ( ( σ , k ) , 3 ) = ( σ 3 , k + 1 ) δ ( ( σ , k ) , 4 ) = ( σ 4 , k + 1 )
    where
    σ 1 = σ ( 1 ) , σ ( k ) 1 , , σ ( k ) , σ ( k 1 ) , σ ( k + 1 ) , , σ ( k ) + 1 , , σ ( n ) σ 2 = [ σ ( 1 ) , , σ ( k ) 1 , , σ ( k 1 ) , σ ( k + 1 ) , σ ( k ) , σ ( k ) + 1 , , σ ( n ) ] σ 3 = [ σ ( 1 ) , , σ ( k ) , σ ( k 1 ) , σ ( k ) 1 , σ ( k + 1 ) , , σ ( k ) + 1 , , σ ( n ) ] σ 4 = [ σ ( 1 ) , , σ ( k ) 1 , σ ( k 1 ) , σ ( k ) + 1 , σ ( k + 1 ) , , σ ( k ) , , σ ( n ) ]
  • q 0 = ( σ 0 , 1 ) Q is the initial state, where σ 0 is any element of S n .
  • F = S n × { n + 1 } Q is the set of accepting (or final) states.

4. Improving Solutions of the Monge–Kantorovich Problem via an Adjustment Automaton on the Permutation Group

In this section, we present a hybrid methodology that integrates Haar wavelet-based multiresolution analysis (MRA) with a finite automaton acting on permutations, with the aim of obtaining optimal solutions to the Monge–Kantorovich (MK) problem.
This approach exploits the hierarchical structure of MRA to construct an initial approximate solution, which is subsequently refined through local adjustments performed by the automaton described in the previous section.

M-K Problem and MRA

A measure μ M + ( X × Y ) is said to be a feasible solution to the MK problem if it satisfies (3) and the pairing μ , c is finite. The MK problem is said to be solvable if there exists a feasible measure μ * that attains the optimal value of the objective functional. In this case, μ * is referred to as an optimal solution of (3).
Moreover, assuming that μ is absolutely continuous with respect to the Lebesgue measure on R 2 and that η 1 and η 2 are absolutely continuous with respect to the Lebesgue measure on R , the MK problem admits a natural discretization via Haar multiresolution analysis on R 2 .
Recall that, according to Equation (3), the Monge–Kantorovich problem at level j is given by:
MK j : minimize μ j , c : = c d μ j subject to : Π 1 μ j ( E 1 ) = η j 1 ( E 1 ) , Π 2 μ j ( E 2 ) = η j 2 ( E 2 ) , μ M + ( X × Y ) ,
for each μ -measurable set E 1 X and E 2 Y , where μ j , η j 1 and η j 2 are the projections to level j of the measures μ , η 1 and η 2 to the respective Haar MRA.
In particular, we consider the MK problem with cost function c = c ( x , y ) , base sets X = Y = [ 0 , 1 ] , and marginal measures η 1 = η 2 = λ | [ 0 , 1 ] . Since practical applications typically involve discretized formulations, the application of multiresolution analysis on R 2 leads us to the following objective problem:
MK j : minimize i , k μ i , k j c i , k j subject to : i μ i , k j = 1 2 j , for each k = 1 , , 2 j . k μ i , k j = 1 2 j , for each i = 1 , , 2 j . i , k μ i , k j = 1 . μ i , k j 0 , for each i , k = 1 , , 2 j .
Here, μ i , k j denotes the portion of the initial mass 1 2 j located at the interval I j , i on the x-axis that is allocated to the interval I j , k on the y-axis. We refer to the j-discrete unit square as the grid formed by the squares S ( j , k 1 , k 2 ) (see (9)), which partitions the set [ 0 , 1 ] × [ 0 , 1 ] into 2 j × 2 j blocks, each naturally identified with the point ( k 1 , k 2 ) .
The above formulation is an assignment problem, which is a particular case of the transport problem. The problem instance has a number of agents and a number of tasks. Any agent can be assigned to perform any task, incurring some cost that may vary depending on the agent-task assignment. The Hungarian method is a combinatorial optimization algorithm that solves the assignment problem in polynomial time and which anticipated later primal–dual methods. It was developed and published in 1955 by Harold Kuhn, who gave it the name “Hungarian method” because the algorithm was largely based on the earlier works of two Hungarian mathematicians, Dénes Kőnig and Jenő Egerváry. For more details, see [15,16,17].
We assume the existence of a simple solution μ to (12). That is, μ is a feasible solution such that, for any i 0 , k 0 { 1 , , 2 j } with μ i 0 , k 0 0 , it necessarily holds that μ i 0 , k = 0 for all k k 0 and μ i , k 0 = 0 for all i i 0 .
All feasible solutions of (12) correspond to permutations σ S 2 j . Consequently, we employ the automaton introduced in Section 3, with n = 2 j in this setting.
Our objective is to improve a given solution of (12), where c i , k j denotes the associated cost matrix. Based on this cost matrix and the current state of the automaton, we introduce the following quantities.
a 1 = c k 1 , σ ( k 1 ) j + c k , σ ( k ) j c k , σ ( k 1 ) j c k 1 , σ ( k ) j a 2 = c k + 1 , σ ( k + 1 ) j + c k , σ ( k ) j c k , σ ( k + 1 ) j c k + 1 , σ ( k ) j a 3 = c σ 1 ( σ ( k ) 1 ) , σ ( k ) 1 j + c k , σ ( k ) j c k , σ ( k ) 1 j c σ 1 ( σ ( k ) 1 ) , σ ( k ) j a 4 = c σ 1 ( σ ( k ) + 1 ) , σ ( k ) + 1 j + c k , σ ( k ) j c k , σ ( k ) + 1 j c σ 1 ( σ ( k ) + 1 ) , σ ( k ) j
Definition 4.
We define the evaluation function of the state associated with the matrix c i , k j as follows:
f ( σ , k ) = 0 If a 1 0 , a 2 0 , a 3 0 , a 4 0 , 1 If a 1 0 , a 1 a 2 , a 1 a 3 , a 1 a 4 , 2 If a 2 0 , a 2 a 1 , a 2 a 3 , a 2 a 4 , 3 If a 3 0 , a 3 a 1 , a 3 a 2 , a 3 a 4 , 4 If a 4 0 , a 4 a 1 , a 4 a 2 , a 4 a 3 .
where the values a j for j = 0 , , 5 are given by (13).
The interpretation of the evaluation function is the following:
  • If f ( σ , k ) = 0 then any change improves the feasible solution.
  • If f ( σ , k ) = 1 then the change in the positions k 1 and k (in the array representation of σ ) is the better local change that improves the feasible solution.
  • If f ( σ , k ) = 2 then the change in the positions k + 1 and k is the better local change that improves the feasible solution.
  • If f ( σ , k ) = 3 then the change in the positions σ 1 σ ( k ) 1 and k is the better local change that improves the feasible solution.
  • If f ( σ , k ) = 4 then the change in the positions σ 1 σ ( k ) + 1 and k is the better local change that improves the feasible solution.
By construction, if we consider a state ( σ k , k ) and apply the automaton with the alphabet symbol f ( σ k , k ) , we obtain the following.
δ ( σ k , k ) , f ( σ k , k ) = ( σ k + 1 , k + 1 ) .
It is clear that both σ k and σ k + 1 are feasible solutions of (12). Moreover, by construction of function f defined in (14), we have
i , l = 1 2 j 2 j a i , l σ k + 1 c i , l j i , l = 1 2 j 2 j a i , l σ k c i , l j ,
equivalently
l = 1 2 j 2 j c l , σ k + 1 ( l ) j l = 1 2 j 2 j c l , σ k ( l ) j ,
where a i , l σ k and a i , l σ k + 1 denote the entries of the matrices associated with σ k and σ k + 1 , respectively, as defined in (10).
In summary, we have the following result.
Theorem 1.
Consider the transport problem given by (12) and consider a state ( σ k , k ) where σ k is a permutation and a feasible solution of the transport problem. Let f be a function that evaluates a state with respect to a cost matrix given by (14). If δ ( ( σ , k ) , f ( σ k , k ) ) = ( σ k + 1 , k + 1 ) , then
i , k 2 j 2 j a i , k σ k + 1 c i , k j i , k 2 j 2 j a i , k σ k c i , k j .
equivalently
l 2 j 2 j c l , σ k + 1 ( l ) j l 2 j 2 j c l , σ k ( l ) j .
Given an initial state of the automata ( σ 0 , 1 ) , we applied the automata to improve the feasible solution σ 0 as follows.
δ ( ( σ 0 , 1 ) , f ( σ 0 , 1 ) ) = ( σ 1 , 2 ) δ ( ( σ 1 , 2 ) , f ( σ 1 , 2 ) ) = ( σ 2 , 3 ) δ ( ( σ 2 j 1 , 2 j ) , f ( σ 2 j 1 , 2 j ) ) = ( σ 2 j , 2 j + 1 ) .
Thus, we find that the final state of the automaton is given by ( σ 2 j , 2 j + 1 ) . Therefore, the final state σ 2 j of the automaton provides an improved solution compared to the initial state σ 0 .
Example 4.
Figure 3 illustrates the application of the tuning automaton to the Monge–Kantorovich problem with cost function ( 2 y x 1 ) 2 ( 2 y x ) 2 , discretized at level 3, which produces a cost matrix of size 8 × 8 .
The first image corresponds to a randomly generated feasible solution, obtained from a random permutation. The remaining images show the successive adjustments performed by the automaton as it evaluates possible swaps between neighboring elements.
In each step, the colored markers indicate the candidate solution under evaluation. The green dots represent the elements involved in the swap currently being tested, while the yellow dots correspond to assignments that remain fixed during that evaluation step.
The evaluation process proceeds sequentially by rows. Starting from row 0, the algorithm evaluates possible exchanges with neighboring elements; the process then continues with row 1, and so on until all rows have been examined.
The last image corresponds to the optimal solution obtained using the Hungarian algorithm. In this example, the solution produced by the proposed automaton coincides with the optimal solution.

5. Examples of the Proposed Methodology Based on Wavelets and an Automaton

The automaton constitutes a viable alternative for improving feasible solutions. Nevertheless, it is desirable for its initial state to be a feasible solution to the Monge–Kantorovich problem that already provides a close approximation to the optimal solution. To construct such an initial solution, we adopt the first stage of the scheme proposed in [13], which is then used as the input for the automaton.
Our approximation scheme consists of the following steps:
1.
Discretization of the cost function: The cost function is discretized at level j, and the resulting discretized cost is denoted by c j .
2.
Application of the wavelet transform: Applying the wavelet transform to c j , we obtain:
  • a low-pass component, denoted by c j 1 ;
  • three high-pass components, denoted by Ψ 1 , Ψ 2 , and Ψ 3 .
3.
Solution of the M K j 1 problem: Using the cost function c j 1 and the methodology proposed in [12], we compute an optimal solution μ j 1 * to the M K j 1 problem.
4.
Feasible solution construction for M K j problem: Using μ j 1 * together with the high-pass components Ψ 1 , Ψ 2 , and Ψ 3 , we construct a feasible solution μ ^ j at level j with the following properties:
(a)
   P j 1 ( μ ^ j ) = μ j 1 *
(b)
   Q j 1 ( 1 , 2 ) ( μ ^ j ) = 0
(c)
   Q j 1 ( 2 , 1 ) ( μ ^ j ) = 0
(d)
   Q j 1 ( 2 , 2 ) ( μ ^ j ) = sign ( Ψ 3 ) μ j 1 * .
Here, sign ( · ) denotes the sign function. In other words, the support of μ ^ j is contained in the support of μ j 1 * . The components Ψ 1 and Ψ 2 do not participate in the construction, as they affect the boundary conditions of the M K j problem. Finally, the sign of Ψ 3 determines the direction in which the solution is scaled.
5.
Implementation of the automaton: We use the feasible solution μ ^ j as the input to the automaton defined in (11). The automaton’s output yields the final approximation.

5.1. Example 1

In this example, we consider the cost function 4 x 2 y x y 2 . In Figure 4, the left side represents the discretization for level 5, where the cost function turns out on a cost matrix of 32 × 32 , and the right side represents 3-dimensional graphics of the cost function.
According to [12], the optimal solution μ 5 at this level is illustrated in Figure 5, where the red points indicate the optimal assignments of the transportation problem.
Below, we present the implementation of the algorithm described at the beginning of this section.
Applying the wavelet transform to the previous function, we obtain the decomposition in Figure 6.
Here, the upper-left figure illustrates the lower-level approximation, the upper-right figure depicts the horizontal details, the lower-left figure shows the vertical details, and the lower-right figure corresponds to the diagonal details.
By solving the transportation problem for the cost function given by the approximation at the lower level, we obtain the measure μ 4 * . The goal is to construct a feasible solution μ ^ 5 (level 5) from μ 4 * and the components Ψ 1 , Ψ 2 , and Ψ 3 , as illustrated in Figure 7.
Description of Figure 7.
  • The figure on the left depicts the optimal solution to the transportation problem ( μ 4 * ), where the cost matrix is obtained from the wavelet-based approximation shown in the upper-left panel of Figure 6.
  • The central figure represents the natural extension of this solution to a higher level; however, it does not constitute a feasible solution to the transportation problem.
  • The figure on the right shows a feasible solution to the transportation problem at the higher level. This solution is obtained by selecting one diagonal from each 2 × 2 block in the central figure, with the choice guided by the sign of the diagonal detail matrix (see the lower-right panel of Figure 6).
Below, we implement the automaton defined in (11), as illustrated in Figure 8:
Description of Figure 8:
  • The upper figures illustrate the movements performed by the tuning automaton when the initial state is given by the right-hand panel of Figure 7. The green dots indicate the positions at which the automaton performed local optimizations. For clarity, steps in which no changes occurred are omitted.
  • The lower-left figure represents the final solution obtained by our procedure, which consists of applying the wavelet transform, solving the transportation problem with a 16 × 16 cost matrix (level 4), extending the solution, and subsequently applying the automaton (level 5).
  • The lower-right figure shows the solution obtained by directly solving the transportation problem with a 32 × 32 cost matrix (level 5), as described in [12]. The solution obtained by our algorithm and the one obtained by directly applying the Hungarian algorithm are not identical; however, both produce the same minimum value, and therefore they can be considered equivalent solutions.
  • In the numerical experiments presented in this work, the proposed automaton consistently converged to an optimal assignment. However, a complete theoretical characterization of the convergence properties of the method, including the precise conditions under which the optimal solution is unique, remains an open question. Determining such conditions and establishing formal convergence guarantees constitutes an interesting direction for future research.

5.2. Example 2

In this example, we consider the cost function x 2 y x y 2 . The discretized function at level j = 5 is shown in the following Figure 9:
The feasible μ 5 solution at this level, according to [12], is shown in the following Figure 10:
On the other hand, by applying the wavelet transform to the discretization at level j = 5 , we obtain the decomposition in Figure 11, analogous to that shown in Figure 6.
By solving the transportation problem for the cost function given by the approximation at the lower level, we obtain the measure μ 4 * . From this solution, we obtain the feasible solution μ ^ 5 * (Figure 12) in a form analogous to that presented in Figure 7.
In this case, the measure μ ^ 5 constructed from μ 4 * coincides with the feasible measure μ 5 . Consequently, the automaton performs no modifications, as shown in Figure 13, which are analogous to those presented in the comparison carried out in the previous example.

5.3. Example 3

In this example, we consider the cost function ( 2 y x 1 ) 2 ( 2 y x ) 2 . The discretized function at level j = 5 is shown in the following Figure 14:
According to [12], the feasible measure μ 5 at this level is illustrated in Figure 15.
By applying the wavelet transform to the discretization at level j = 5 , we obtain the decomposition in Figure 16, which is analogous to that shown in Figure 6.
The solution of the transportation problem corresponding to the cost function given by the lower-level approximation produces the measure μ 4 . From this result, we obtain a feasible solution μ ^ 5 (Figure 17), presented in a form analogous to that depicted in Figure 7.
Figure 18 illustrates both the changes produced by the implementation of the automaton on the feasible measure μ ^ 5 , resulting in the feasible measure μ 5 , and the sequence of candidate solutions generated by the tuning automaton after applying the scaling procedure. The process begins with the approximation obtained after scaling and performing an initial adjustment, and each subsequent image corresponds to a new approximation produced while evaluating possible swaps. The penultimate image represents the final solution obtained by the automaton, whereas the last image shows the optimal solution computed using the Hungarian algorithm for comparison.

6. Conclusions

An important part of this work was the introduction of an automaton on the permutation group, which proved to be a useful tool to improve feasible solutions to the transportation problem associated with the MK problem. This represents a significant contribution to automata theory applied to optimization problems.
In all examples of transportation problems (assignment problem) associated with classic Monge–Kantorovich problems with a continuous cost function, these problems have the number of agents 2 j . Therefore, solving this type of problem with the Hungarian algorithm has a computational cost of O ( 2 3 j ) .
Our methodology for solving the resulting transportation problems consists of the following steps:
1.
Apply the wavelet transform to a cost matrix of size 2 j × 2 j , which has a computational cost of O ( 2 2 j ) .
2.
Solve the transportation problem (assignment problem) over the approximation coefficients of the wavelet transform. At this coarser resolution level the problem involves 2 j 1 agents, which is simpler than the original assignment problem. This reduced assignment problem is solved using the Hungarian algorithm in order to obtain an optimal assignment for the smaller cost matrix.
3.
Extending the solution from level j 1 to level j has a computational cost of O ( 2 j ) , since it is only a fixed number of steps for each element of an array of size 2 j .
4.
The computational cost of the linear automaton over the size of the array 2 j , which is O ( 2 j ) .
Therefore, the computational cost of this methodology for solving the transportation problem associated with the MK problem is significantly lower than that of applying the Hungarian algorithm directly. Since steps 1, 3, and 4 of our algorithm are of order O ( 2 2 j ) , the main computational cost of the methodology is concentrated in step 2. In this work, this step is solved by applying the Hungarian algorithm to a reduced problem involving only half of the agents.
Although the order of the Hungarian algorithm for this reduced problem is O ( 2 3 j 3 ) = O ( 2 3 j ) , which in the worst case has the same asymptotic order, in practice fewer operations are required. Furthermore, to solve the problem with 2 j 1 agents, our algorithm can be applied again, reducing the problem to one with 2 j 2 agents, and so on. The study of the limits and scope of these techniques constitutes a direction for future research.
Furthermore, this methodology produced results equivalent to those obtained with the Hungarian algorithm for transport problems associated with MK problems. To illustrate this, three examples were presented at the level j = 5 , clearly demonstrating that equivalent results are obtained.
In the transportation problems considered in this article, the cost matrices are obtained from discretizations of a continuous function, which provides a certain degree of local stability to the matrix coefficients. Future work will aim to explore the limits of this technique in settings where the cost matrix exhibits higher entropy.
In Figure 3, the process begins with a random initial solution, to which the automaton is directly applied in order to solve the problem under consideration. In this case, the automaton successfully finds the optimal solution at level 3. However, the application of the automaton at higher levels of resolution was not investigated. As a direction for future research, it would be of interest to analyze the scope and limitations of applying the automaton to more general assignment problems, particularly in cases where the cost matrix is not derived from the discretization of a continuous function.
In addition, the technique will be evaluated by applying a greater number of multiresolution levels to the cost function in order to analyze its performance and robustness.
The automaton-based refinement strategy proposed in this work could also be applied to the optimal partial transport problem. In that setting, only a portion of the total mass is transported, which introduces additional constraints in the assignment structure. The local adjustment mechanism of the automaton, which operates through sequential swaps of assignments, could be adapted to handle partial matching by allowing unassigned elements or slack variables to represent unused mass. Although such an extension would require modifications to the state representation and the evaluation rules of the automaton, the underlying idea of iterative local refinement remains applicable. Investigating this extension and analyzing its numerical behavior constitutes an interesting direction for future research.

Author Contributions

Conceptualization, A.S.-N., M.P.-M. and C.G.-F.; methodology, A.S.-N., M.P.-M., R.R.L.-M. and C.G.-F.; software, M.P.-M. and M.S.-P.; research, A.S.-N. and M.S.-P. writing—original draft preparation, A.S.-N., M.P.-M. and C.G.-F.; writing—review and editing A.S.-N. and R.R.L.-M.; project administration A.S.-N. All authors have read and agreed to the published version of the manuscript.

Funding

This publication was funded by resources from the 2026 Institutional Program for Academic Strengthening and Excellence, of the General Directorate for Academic Development and Educational Innovation of the Universidad Veracruzana.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Zhu, L.; Yang, Y.; Haker, S.; Tannenbaum, A. Optimal Mass Transport for Registration and Warping. Int. J. Comput. Vis. 2004, 60, 225–240. [Google Scholar] [CrossRef]
  2. Haker, S.; Tannenbaum, A.; Kikinis, R. Mass Preserving Mappings and Surface Registration. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention (MICCAI 2001), Utrecht, The Netherlands, 14–17 October 2001; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2001; Volume 2208, pp. 120–127. [Google Scholar]
  3. Haber, E.; Rehman, T.; Tannenbaum, A. An Efficient Numerical Method for the Solution of the L2 Optimal Mass Transfer Problem. SIAM J. Sci. Comput. 2010, 32, 197–211. [Google Scholar] [CrossRef] [PubMed][Green Version]
  4. Avendaño-Garrido, M.L.; Gabriel-Argüelles, J.R.; Quintana-Torres, L.; Mezura-Montes, E. A Metaheuristic for a Numerical Approximation to the Mass Transfer Problem. Int. J. Appl. Math. Comput. Sci. 2016, 26, 757–766. [Google Scholar] [CrossRef]
  5. Hernández-Lerma, O.; Lasserre, J.B. Approximation Schemes for Infinite Linear Programs. SIAM J. Optim. 1998, 8, 973–988. [Google Scholar] [CrossRef]
  6. González-Hernández, J.; Gabriel-Argüelles, J.R.; Hernández-Lerma, O. On Solutions to the Mass Transfer Problem. SIAM J. Optim. 2006, 17, 485–499. [Google Scholar] [CrossRef]
  7. Gabriel-Argüelles, J.R.; González-Hernández, J.; López-Martínez, R.R. Numerical Approximations to the Mass Transfer Problem on Compact Spaces. IMA J. Numer. Anal. 2010, 30, 1121–1136. [Google Scholar] [CrossRef]
  8. Gröchenig, K.; Madych, W.R. Multiresolution Analysis, Haar Bases, and Self-Similar Tilings of Rn. IEEE Trans. Inf. Theory 1992, 38, 556–568. [Google Scholar] [CrossRef]
  9. Walnut, D.F. An Introduction to Wavelet Analysis; Birkhäuser: Boston, MA, USA, 2004; pp. 115–138. [Google Scholar]
  10. Guo, K.; Labate, D.; Lim, W.Q.; Weiss, G.; Wilson, E. Wavelets with Composite Dilations and Their MRA Properties. Appl. Comput. Harmon. Anal. 2006, 20, 202–236. [Google Scholar] [CrossRef]
  11. Krishtal, I.A.; Robinson, B.D.; Weiss, G.L.; Wilson, E.N. Some Simple Haar-Type Wavelets in Higher Dimensions. J. Geom. Anal. 2007, 17, 87–96. [Google Scholar] [CrossRef][Green Version]
  12. Sánchez-Nungaray, A.; González-Flores, C.; López-Martínez, R.R. Multiresolution Analysis Applied to the Monge–Kantorovich Problem. Abstr. Appl. Anal. 2018, 2018, 1764175. [Google Scholar] [CrossRef]
  13. Acosta-Portilla, J.R.; López-Martínez, R.R.; Sánchez-Nungaray, A.; González-Flores, C. Efficient Method to Solve the Monge–Kantarovich Problem Using Wavelet Analysis. Axioms 2023, 12, 555. [Google Scholar] [CrossRef]
  14. Avendaño-Garrido, M.L.; Gabriel-Argüelles, J.R.; Quintana-Torres, L.; Mezura-Montes, E. An Efficient Numerical Approximation for the Monge–Kantorovich Mass Transfer Problem. In Machine Learning, Optimization, and Big Data; Pardalos, P., Pavone, M., Farinella, G., Cutello, V., Eds.; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2016; Volume 9432, pp. 233–239. [Google Scholar] [CrossRef]
  15. Kuhn, H.W. The Hungarian Method for the Assignment Problem. Nav. Res. Logist. Q. 1955, 2, 83–97. [Google Scholar] [CrossRef]
  16. Kuhn, H.W. Variants of the Hungarian Method for Assignment Problems. Nav. Res. Logist. Q. 1956, 3, 253–258. [Google Scholar] [CrossRef]
  17. Bazaraa, M.S.; John, J.; Hanif, D. Linear Programming and Network Flows; John Wiley & Sons: Hoboken, NJ, USA, 2010; pp. 513–528. [Google Scholar]
  18. Billingsley, P. Convergence of Probability Measures; John Wiley & Sons: New York, NY, USA, 1999; pp. 27–29. [Google Scholar]
  19. Rodrigues, N. A Logical Treatment of Finite Automata. In Tools and Algorithms for the Construction and Analysis of Systems; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2024; pp. 350–369. [Google Scholar] [CrossRef]
  20. Pettorossi, A. Automata Theory and Formal Languages: Fundamental Notions, Theorems, and Techniques; Springer: Cham, Switzerland, 2022. [Google Scholar] [CrossRef]
  21. Sagan, B. The Symmetric Group: Representations, Combinatorial Algorithms, and Symmetric Functions; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2001; Volume 203. [Google Scholar]
Figure 1. The square S is expressed as the disjoint union of the four sub-squares S 11 , S 12 , S 21 and S 22 .
Figure 1. The square S is expressed as the disjoint union of the four sub-squares S 11 , S 12 , S 21 and S 22 .
Mca 31 00058 g001
Figure 2. Neighbors of position ( k , σ ( k ) ) in the permutation matrix σ .
Figure 2. Neighbors of position ( k , σ ( k ) ) in the permutation matrix σ .
Mca 31 00058 g002
Figure 3. Evolution of the candidate solution during the optimization process. The background colors represent the values of the cost matrix. The green dots indicate the assignments involved in the swap currently being evaluated, while the yellow dots correspond to assignments that remain fixed during that step. The sequence of images shows how the automaton progressively improves the candidate solution starting from an initial random feasible assignment until reaching the optimal solution computed with the Hungarian algorithm.
Figure 3. Evolution of the candidate solution during the optimization process. The background colors represent the values of the cost matrix. The green dots indicate the assignments involved in the swap currently being evaluated, while the yellow dots correspond to assignments that remain fixed during that step. The sequence of images shows how the automaton progressively improves the candidate solution starting from an initial random feasible assignment until reaching the optimal solution computed with the Hungarian algorithm.
Mca 31 00058 g003
Figure 4. Cost function 4 x 2 y x y 2 and its discretization.
Figure 4. Cost function 4 x 2 y x y 2 and its discretization.
Mca 31 00058 g004
Figure 5. Optima solution using Hungarian algorithm.
Figure 5. Optima solution using Hungarian algorithm.
Mca 31 00058 g005
Figure 6. Wavelet Components. Wavelet decomposition components: approximation and details.
Figure 6. Wavelet Components. Wavelet decomposition components: approximation and details.
Mca 31 00058 g006
Figure 7. Assignment Comparison. Comparison between the original and approximated assignments.
Figure 7. Assignment Comparison. Comparison between the original and approximated assignments.
Mca 31 00058 g007
Figure 8. Implementation of the automaton whose initial state is defined by the right-hand diagram in Figure 7.
Figure 8. Implementation of the automaton whose initial state is defined by the right-hand diagram in Figure 7.
Mca 31 00058 g008aMca 31 00058 g008b
Figure 9. Cost function x 2 y x y 2 and its discretization.
Figure 9. Cost function x 2 y x y 2 and its discretization.
Mca 31 00058 g009
Figure 10. Optimal Assignment. Optimal assignment over the original cost matrix using the Hungarian algorithm.
Figure 10. Optimal Assignment. Optimal assignment over the original cost matrix using the Hungarian algorithm.
Mca 31 00058 g010
Figure 11. Wavelet Components. Composite figure of wavelet decomposition components: approximation and details.
Figure 11. Wavelet Components. Composite figure of wavelet decomposition components: approximation and details.
Mca 31 00058 g011
Figure 12. Assignment Comparison. Comparison between the original and approximated assignments.
Figure 12. Assignment Comparison. Comparison between the original and approximated assignments.
Mca 31 00058 g012
Figure 13. In this example, our methodology coincides with the Hungarian algorithm.
Figure 13. In this example, our methodology coincides with the Hungarian algorithm.
Mca 31 00058 g013
Figure 14. Cost function ( 2 y x 1 ) 2 ( 2 y x ) 2 and its discretization.
Figure 14. Cost function ( 2 y x 1 ) 2 ( 2 y x ) 2 and its discretization.
Mca 31 00058 g014
Figure 15. Optimal Assignment. Optimal assignment over the original cost matrix using the Hungarian algorithm.
Figure 15. Optimal Assignment. Optimal assignment over the original cost matrix using the Hungarian algorithm.
Mca 31 00058 g015
Figure 16. Wavelet Components. Wavelet decomposition components: approximation and details.
Figure 16. Wavelet Components. Wavelet decomposition components: approximation and details.
Mca 31 00058 g016
Figure 17. Assignment Comparison. Comparison between the original and approximated assignments.
Figure 17. Assignment Comparison. Comparison between the original and approximated assignments.
Mca 31 00058 g017
Figure 18. Evolution of the candidate solution after applying the scaling procedure. The first image corresponds to the approximation obtained after scaling and performing an initial adjustment. Each subsequent image represents a new approximation generated by the automaton as it evaluates possible swaps between neighboring assignments. The penultimate image corresponds to the final solution obtained by the automaton, while the last image shows the optimal solution computed with the Hungarian algorithm for comparison. The background colors represent the values of the cost matrix, and the colored markers indicate the assignments belonging to the candidate solution under evaluation.
Figure 18. Evolution of the candidate solution after applying the scaling procedure. The first image corresponds to the approximation obtained after scaling and performing an initial adjustment. Each subsequent image represents a new approximation generated by the automaton as it evaluates possible swaps between neighboring assignments. The penultimate image corresponds to the final solution obtained by the automaton, while the last image shows the optimal solution computed with the Hungarian algorithm for comparison. The background colors represent the values of the cost matrix, and the colored markers indicate the assignments belonging to the candidate solution under evaluation.
Mca 31 00058 g018aMca 31 00058 g018b
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sánchez-Nungaray, A.; Pérez-Medel, M.; González-Flores, C.; López-Martínez, R.R.; Solís-Pérez, M. A Method for Solving the Monge–Kantorovich Problem Using an Automaton and Wavelet Analysis. Math. Comput. Appl. 2026, 31, 58. https://doi.org/10.3390/mca31020058

AMA Style

Sánchez-Nungaray A, Pérez-Medel M, González-Flores C, López-Martínez RR, Solís-Pérez M. A Method for Solving the Monge–Kantorovich Problem Using an Automaton and Wavelet Analysis. Mathematical and Computational Applications. 2026; 31(2):58. https://doi.org/10.3390/mca31020058

Chicago/Turabian Style

Sánchez-Nungaray, Armando, Marcelo Pérez-Medel, Carlos González-Flores, Raquiel R. López-Martínez, and Martín Solís-Pérez. 2026. "A Method for Solving the Monge–Kantorovich Problem Using an Automaton and Wavelet Analysis" Mathematical and Computational Applications 31, no. 2: 58. https://doi.org/10.3390/mca31020058

APA Style

Sánchez-Nungaray, A., Pérez-Medel, M., González-Flores, C., López-Martínez, R. R., & Solís-Pérez, M. (2026). A Method for Solving the Monge–Kantorovich Problem Using an Automaton and Wavelet Analysis. Mathematical and Computational Applications, 31(2), 58. https://doi.org/10.3390/mca31020058

Article Metrics

Back to TopTop