Given $m\in\Bbb Z_{\ge1},[m]=\{1,2,...,m\}$ and $f(n)$ an arbitrary bijection from $[m]\to[m]$, I am interested in finding the maximum value of$$I_f=\sum_{n\in[m]}|f(n)-n|$$and the permutation $f^*(n)$ which achieves the maximum value. So far, I was trying to prove that the maximum is achieved for $f^*(n)=m+1-n$ which gives $I_{\max}=I_{f^*}=\lfloor m^2/2\rfloor$. Since I was not able to prove my hunch mathematically, I ran a small C++ program to build arbitrary permutations of $[m]$ and find the maximum $I_f$ for $1\le m\le 20$, and not once did I see the value of $I_f$ exceed $\lfloor m^2/2\rfloor$. Is my hunch correct and if so, how to go about proving it?
2026-04-02 15:45:45.1775144745
Maximizing $\sum_{n\in[m]}|f(n)-n|$ where $f(n)$ is a permuation of $[m]$
131 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in OPTIMIZATION
- Optimization - If the sum of objective functions are similar, will sum of argmax's be similar
- optimization with strict inequality of variables
- Gradient of Cost Function To Find Matrix Factorization
- Calculation of distance of a point from a curve
- Find all local maxima and minima of $x^2+y^2$ subject to the constraint $x^2+2y=6$. Does $x^2+y^2$ have a global max/min on the same constraint?
- What does it mean to dualize a constraint in the context of Lagrangian relaxation?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Building the model for a Linear Programming Problem
- Maximize the function
- Transform LMI problem into different SDP form
Related Questions in PERMUTATIONS
- A weird automorphism
- List Conjugacy Classes in GAP?
- Permutation does not change if we multiply by left by another group element?
- Validating a solution to a combinatorics problem
- Selection of at least one vowel and one consonant
- How to get the missing brick of the proof $A \circ P_\sigma = P_\sigma \circ A$ using permutations?
- Probability of a candidate being selected for a job.
- $S_3$ action on the splitting field of $\mathbb{Q}[x]/(x^3 - x - 1)$
- Expected "overlap" between permutations of a multiset
- Selecting balls from infinite sample with certain conditions
Related Questions in MAXIMA-MINIMA
- optimization with strict inequality of variables
- Minimum value of a complex expression involving cube root of a unity
- Calculation of distance of a point from a curve
- Find all local maxima and minima of $x^2+y^2$ subject to the constraint $x^2+2y=6$. Does $x^2+y^2$ have a global max/min on the same constraint?
- Solving discrete recursion equations with min in the equation
- Trouble finding local extrema of a two variable function
- Why do I need boundedness for a a closed subset of $\mathbb{R}$ to have a maximum?
- Find the extreme points of the function $g(x):=(x^4-2x^2+2)^{1/2}, x∈[-0.5,2]$
- Maximizing triangle area problem
- Find the maximum volume of a cylinder
Related Questions in OPERATIONS-RESEARCH
- correctness for minimizing average completition time for scheduling problem with release times
- the effect of an operation
- Reasonable/unreasonable exponentially distributed interarrival (service) times
- Optimally allocating inventory, does this problem have a name?
- Linear Programming: What is the rationale behind the Gauss Jordan Row operations we do after determining the leaving and entering variables?
- Linear programming: Converting nested absolute value
- How to find infinite optimal solutions for linear program?
- Ways to speed up solving an LP with Google's ortools
- A Mixed Integer Model with Mixed Integer sub-Problems
- Does zero considered as a leaving variable in simplex method?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Let $1\le a<b \le m$ be two integers. Let $f$ be the initial permutation, and $\tilde{f}$ be another permutation resulted by exchanging values of $f$ at $a$ and $b$, that is: $$\tilde{f}(n)=\begin{cases}f(n) & \text{ if } n \ne a,b \\ f(b) & \text{ if } n=a\\ f(a) & \text{ if } n=b\\ \end{cases}$$ We will prove that if $f(a) < f(b)$ then $I_f \le I_{\tilde{f}}$.Indeed,
If $f(a)\le a, f(b) \le b$, then $$I_{\tilde{f}}-I_{f}=|f(b)-a|+|f(a)-b|-(-f(a)-f(b)+a+b) \ge 0 $$ If $f(a)\ge a, f(b) \ge b$, then $$I_{\tilde{f}}-I_{f}=|f(b)-a|+|f(a)-b|-(f(a)+f(b)-a-b) \ge 0 $$ If $f(a)>a$, $f(b)\le b$, then $a< f(a)<f(b) \le b$, then $$I_{\tilde{f}}-I_{f}=(f(b)-a)+(b-f(a))-(f(a)-a+b-f(b)) =2(f(b)-f(a)) \ge 0 $$ If $f(a)<a$, $f(b)\ge b$, then $f(a)<a<b<f(b) \le b$, then $$I_{\tilde{f}}-I_{f}=( f(b)-a +b-f(a)) - ( f(b)-b+a-f(a)) = 2b-2a > 0$$
Besides, by Bubble Sort, we know that for any permutation $f$, there is a sequence of permutation $f_0,f_1,\dots,f_k$ such that: $f_0=f$ and $f_k=f_*$ - the only decreasing permutation- such that $f_{l+1}$ is resulted from $f_l$ by exchanging two positions that are not situated decreasing. Thus, $$I_f \le \dots \le I_{f_*}$$ Hence the conclusion.
P.s: As I noted, you can use Karamata's inequality if you want a more compact solution( also more analytic).
P.s2: My conclusion uses Bubble Sort, which seems a bit tautological here. Nonetheless, the essential idea for a combinatoric proof is present.