ArticleslgStudy

computer science

Monge array

Monge array is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Monge array rather than just read about it. In short: In mathematics applied to computer science, Monge arrays, or Monge matrices, are mathematical objects named for their discoverer, the French mathematician Gaspard Monge. An m-by-n matrix is said to be a Monge array if, for all i,j,k,ℓ such that 1≤i<k≤m and 1≤j<ℓ≤n, one obtains A[i,j]+A[k,ℓ]≤A[i,ℓ]+A[k,j].

Key takeaways

  • Monge array belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Monge array to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Monge array from memory before moving on to harder problems.

Reference excerpt

In mathematics applied to computer science, Monge arrays, or Monge matrices, are mathematical objects named for their discoverer, the French mathematician Gaspard Monge. An m-by-n matrix is said to be a Monge array if, for all i,j,k,ℓ such that 1≤i<k≤m and 1≤j<ℓ≤n, one obtains A[i,j]+A[k,ℓ]≤A[i,ℓ]+A[k,j]. In other words, for any two rows and two columns of a Monge array, the four elements at the intersection points (a 2 × 2 sub-matrix) have the property that the sum of the upper-left and lower-right elements (on the main diagonal) is less than or equal to the sum of the lower-left and upper-right elements (on the antidiagonal). This matrix is a Monge array:

[1017132823172216292324282234241113617745443237233633192167566515334] For example, take the intersection of rows 2 and 4 with columns 1 and 5. The four elements are [1723117]. The sum of the upper-left and lower-right elements (17 + 7 = 24) is not larger than the sum of the lower-left and upper-right elements (23 + 11 = 34).

Properties The above definition is equivalent to the statement A matrix is a Monge array if and only if A[i,j]+A[i+1,j+1]≤A[i,j+1]+A[i+1,j] for all 1≤i<m and 1≤j<n. Any subarray produced by selecting certain rows and columns from an original Monge array will itself be a Monge array. Any linear combination with non-negative coefficients of Monge arrays is itself a Monge array. Every Monge array is totally monotone, meaning that its row minima occur in a nondecreasing sequence of columns, and that the same property is true for every subarray. This property allows the row minima to be found quickly by using the SMAWK algorithm. If you mark with a circle the leftmost minimum of each row, you will discover that your circles march downward to the right; that is to say, if f(x)=arg⁡mini∈{1,…,m}A[x,i], then f(j)≤f(j+1) for all 1≤j<n. Symmetrically, if you mark the uppermost minimum of each column, your circles will march rightwards and downwards. The row and column maxima march in the opposite direction: upwards to the right and downwards to the left. The notion of weak Monge arrays has been proposed; a weak Monge array is a square n-by-n matrix which satisfies the Monge property A[i,i]+A[r,s]≤A[i,s]+A[r,i] only for all 1≤i<r,s≤n. Monge matrix is just another name for submodular function of two discrete variables. Precisely, A is a Monge matrix if and only if A[i,j] is a submodular function of variables i,j.

Applications Monge matrices has applications in combinatorial optimization problems:

When the traveling salesman problem has a cost matrix which is a Monge matrix it can be solved in quadratic time. A square Monge matrix which is also symmetric about its main diagonal is called a Supnick matrix (after Fred Supnick). Any linear combination of Supnick matrices is itself a Supnick matrix, and when the cost matrix in a traveling salesman problem is Supnick, the optimal solution is a predetermined route, unaffected by the specific values within the matrix.

References

Deineko, Vladimir G.; Woeginger, Gerhard J. (October 2006). "Some problems around travelling salesmen, dart boards, and euro-coins" (PDF). Bulletin of the European Association for Theoretical Computer Science. 90. EATCS: 43–52. ISSN 0252-9742.

Worked examples

Example 1 — a first encounter with Monge array

Start with the simplest possible case. Write down what Monge array claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Monge array before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Monge array ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Monge array

In research
Monge array appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Monge array in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Monge array is common in secondary-school and first-year university syllabi. It links to neighbouring topics Theoretical computer science, so understanding it makes those chapters shorter.
In everyday life
Look for Monge array outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Monge array” →

How to study Monge array in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Monge array means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Monge array out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Monge array in simple terms?

In mathematics applied to computer science, Monge arrays, or Monge matrices, are mathematical objects named for their discoverer, the French mathematician Gaspard Monge. An m-by-n matrix is said to be a Monge array if, for all i,j,k,ℓ such that 1≤i<k≤m and 1≤j<ℓ≤n, one obtains A[i,j]+A[k,ℓ]≤A[i,ℓ]+…

Why does Monge array matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Monge array?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Monge array.

Tags

  • Theoretical computer science

Keep exploring