Min and max in order of operations

  • Thread starter Thread starter eyec
  • Start date Start date
  • Tags Tags
    Max Operations
AI Thread Summary
The discussion centers on the order of operations for the min and max functions, specifically whether min or max should be applied first in expressions like min_{i \in I}max_{j \in J}. The consensus is that the standard convention is to evaluate from right to left, meaning max is calculated before min. Participants clarify that min and max must act on a collection of objects, leading to the interpretation min(max(set of elements)). An example illustrates that taking the min of columns yields different results than taking the max of rows, reinforcing the importance of the order. Overall, the right-to-left evaluation is affirmed as the correct approach.
eyec
Messages
6
Reaction score
0
hi,

i was unfortunately unable to find any information about the order of operations in which to apply min and max. (or is it just common knowledge for everyone except me?) consider

min_{i \in I}max_{j \in J} (set of elements with indices i \in I and j \in J)

(actually, this is from http://www.cs.ubc.ca/~kevinlb/teaching/cs532a%20-%202003-4/folk.pdf p.1 which refers to in http://dx.doi.org/10.1016%2F0022-0531(79)90002-4 (which is, however, not free), p.4.) is the minimum or the maximum function applied first? the context in the mentioned papers seems to imply that the first one (min) has precedence. This, however, does not seem intuitive to me because then we have a notation "operation1 operation2 arguments" and do operation2(operation1(arguments)).

thanks ...
 
Last edited by a moderator:
Mathematics news on Phys.org
Hey eyec and welcome to the forums.

The usual convention for this kind of thing is to evaluate things from right to left, but if in doubt you should consult the author for clarification.

So with the usual convention, max is evaluated first and then min.
 
thanks chiro,
so I'm at least certain that I'm not completely wrong about how to deal with max, min ... etc.

maybe i'll ask the author ... in case I find out something, I'll post that again.
 
min and max must act on a collection of objects. So there is only one way to iterpret your expression that makes any sense, and that is

min ( max ( set of elements ) )

You normally write it as

min max ( set of elements )

because the outer ( )s don't add any more information about what it means.

You usally need ()'s around the "set of elements", because the notation for the set is often fairly long and complicated and it's not obvious where it ends.

This is no different from writing say
log sin (x/2)
You wouldn't normally write
log (sin (x/2))
because that's the only thing the expression could mean. But of course
log sin (x/2)
and
sin log (x/2)
mean two different things.
 
thanks AlephZero,

you are certainly right (& so is chiro).

probably the author also meant it like that. if someone wants to examine it, on sciencedirect the paper costs a lot of money but on the author's website you can download it for free. (I just realized that now.) http://arielrubinstein.tau.ac.il/papers/03.pdf
the equation in question is on page 4, first line of section 3.
 
The order is important. Consider
1 2 3
4 2 0
3 2 1
If I take min in each col I get 1, 2, 0, the max of which is 2.
If I take the max of of each row, I get 3, 4, 3, the min of which is 3.
There's some theorem that says min of max >= max of min.
As others have noted, right-to-left is the only valid interpretation.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

Similar threads

Replies
1
Views
3K
Replies
4
Views
3K
Replies
9
Views
3K
Replies
45
Views
5K
Replies
5
Views
2K
Replies
7
Views
2K
Replies
1
Views
3K
Back
Top