Skip to main content
edited body
Source Link
qt.
  • 37
  • 4

If I have a constraint like $y_1 + y_2 +\dots + y_n = k$ for positive integers $x_i$$y_i$, how would I minimize $$\quad\frac{x_1 }{ y_1} + \frac{x_2 }{ y_2} + \frac{x_3 }{ y_3} + \dots + \frac{x_n }{ y_n}$$ if all of the $a_i$$x_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

If I have a constraint like $y_1 + y_2 +\dots + y_n = k$ for positive integers $x_i$, how would I minimize $$\quad\frac{x_1 }{ y_1} + \frac{x_2 }{ y_2} + \frac{x_3 }{ y_3} + \dots + \frac{x_n }{ y_n}$$ if all of the $a_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

If I have a constraint like $y_1 + y_2 +\dots + y_n = k$ for positive integers $y_i$, how would I minimize $$\quad\frac{x_1 }{ y_1} + \frac{x_2 }{ y_2} + \frac{x_3 }{ y_3} + \dots + \frac{x_n }{ y_n}$$ if all of the $x_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

deleted 15 characters in body
Source Link
qt.
  • 37
  • 4

If I have a constraint like $x_1 + x_2 +\dots + x_n = k$$y_1 + y_2 +\dots + y_n = k$ for positive integers $x_i$, how would I minimize $$\text{minimize}\quad\frac{a_1 }{ x_1} + \frac{a_2 }{ x_2} + \frac{a_3 }{ x_3} + \dots + \frac{a_n }{ x_n}$$$$\quad\frac{x_1 }{ y_1} + \frac{x_2 }{ y_2} + \frac{x_3 }{ y_3} + \dots + \frac{x_n }{ y_n}$$ if all of the $a_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

If I have a constraint like $x_1 + x_2 +\dots + x_n = k$ for positive integers $x_i$, how would I minimize $$\text{minimize}\quad\frac{a_1 }{ x_1} + \frac{a_2 }{ x_2} + \frac{a_3 }{ x_3} + \dots + \frac{a_n }{ x_n}$$ if all of the $a_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

If I have a constraint like $y_1 + y_2 +\dots + y_n = k$ for positive integers $x_i$, how would I minimize $$\quad\frac{x_1 }{ y_1} + \frac{x_2 }{ y_2} + \frac{x_3 }{ y_3} + \dots + \frac{x_n }{ y_n}$$ if all of the $a_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

fixed wrong word in title, changed names of constant and vairables to the usual notation ot make more clear what is a variable and what is given
Source Link

Algorithm question about minimizingto minimize an equationexpression

If I have a constraint like $y_1 + y_2 +\dots + y_n = k$$x_1 + x_2 +\dots + x_n = k$ for positive integers $y_i$$x_i$, how would I minimize $x_1 / y_1 + x_2 / y_2 + x_3 / y_3 + \dots + x_n / y_n$, if $$\text{minimize}\quad\frac{a_1 }{ x_1} + \frac{a_2 }{ x_2} + \frac{a_3 }{ x_3} + \dots + \frac{a_n }{ x_n}$$ if all of the $x_i$$a_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

Algorithm question about minimizing an equation

If I have a constraint like $y_1 + y_2 +\dots + y_n = k$ for positive integers $y_i$, how would I minimize $x_1 / y_1 + x_2 / y_2 + x_3 / y_3 + \dots + x_n / y_n$, if all of the $x_i$ are given?

Algorithm to minimize an expression

If I have a constraint like $x_1 + x_2 +\dots + x_n = k$ for positive integers $x_i$, how would I minimize $$\text{minimize}\quad\frac{a_1 }{ x_1} + \frac{a_2 }{ x_2} + \frac{a_3 }{ x_3} + \dots + \frac{a_n }{ x_n}$$ if all of the $a_i$ are given?

One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.

added 9 characters in body
Source Link
qt.
  • 37
  • 4
Loading
added 20 characters in body
Source Link
qt.
  • 37
  • 4
Loading
Source Link
qt.
  • 37
  • 4
Loading