Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
139 tokens/sec
GPT-4o
47 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Composition Orderings for Linear Functions and Matrix Multiplication Orderings (2402.10451v1)

Published 16 Feb 2024 in cs.DS

Abstract: We consider composition orderings for linear functions of one variable. Given $n$ linear functions $f_1,\dots,f_n$ and a constant $c$, the objective is to find a permutation $\sigma$ that minimizes/maximizes $f_{\sigma(n)}\circ\dots\circ f_{\sigma(1)}(c)$. It was first studied in the area of time-dependent scheduling, and known to be solvable in $O(n\log n)$ time if all functions are nondecreasing. In this paper, we present a complete characterization of optimal composition orderings for this case, by regarding linear functions as two-dimensional vectors. We also show several interesting properties on optimal composition orderings such as the equivalence between local and global optimality. Furthermore, by using the characterization above, we provide a fixed-parameter tractable (FPT) algorithm for the composition ordering problem for general linear functions, with respect to the number of decreasing linear functions. We next deal with matrix multiplication orderings as a generalization of composition of linear functions. Given $n$ matrices $M_1,\dots,M_n\in\mathbb{R}{m\times m}$ and two vectors $w,y\in\mathbb{R}m$, where $m$ denotes a positive integer, the objective is to find a permutation $\sigma$ that minimizes/maximizes $w\top M_{\sigma(n)}\dots M_{\sigma(1)} y$. The problem is also viewed as a generalization of flow shop scheduling through a limit. By this extension, we show that the multiplication ordering problem for $2\times 2$ matrices is solvable in $O(n\log n)$ time if all the matrices are simultaneously triangularizable and have nonnegative determinants, and FPT with respect to the number of matrices with negative determinants, if all the matrices are simultaneously triangularizable. As the negative side, we finally prove that three possible natural generalizations are NP-hard: 1) when $m=2$, 2) when $m\geq 3$, and 3) the target version of the problem.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (17)
  1. A knapsack secretary problem with applications. In M. Charikar, K. Jansen, O. Reingold, and J. D. P. Rolim, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, pages 16–28, Berlin, Heidelberg, 2007. Springer Berlin Heidelberg.
  2. Matroids, secretary problems, and online mechanisms. In Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’07, page 434–443, USA, 2007. Society for Industrial and Applied Mathematics.
  3. Application of an optimization problem in max-plus algebra to scheduling problems. Discrete Applied Mathematics, 154(15):2064–2079, 2006.
  4. Adaptivity and approximation for stochastic packing problems. In Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’05, page 395–404, USA, 2005. Society for Industrial and Applied Mathematics.
  5. Approximating the stochastic knapsack problem: The benefit of adaptivity. Mathematics of Operations Research, 33(4):945–964, 2008.
  6. T. S. Ferguson. Who Solved the Secretary Problem? Statistical Science, 4(3):282–289, 1989.
  7. The complexity of flowshop and jobshop scheduling. Mathematics of Operations Research, 1:117–129, 1976.
  8. S. Gawiejnowicz and L. Pankowska. Scheduling jobs with varying processing times. Information Processing Letters, 54(3):175–178, 1995.
  9. Single facility scheduling with nonlinear processing times. Computers & Industrial Engineering, 14(4):387–393, 1988.
  10. Complexity of scheduling tasks with time-dependent execution times. Information Processing Letters, 48(6):315–320, 1993.
  11. S. M. Johnson. Optimal two-and three-stage production schedules with setup times included. Naval research logistics quarterly, 1(1):61–68, 1954.
  12. Optimal composition ordering problems for piecewise linear functions. Algorithmica, 2018.
  13. S. Kubo and K. Nishinari. Applications of max-plus algebra to flow shop scheduling problems. Discrete Applied Mathematics, 247:278–293, 2018.
  14. G. Mosheiov. Scheduling jobs under simple linear deterioration. Computers & Operations Research, 21(6):653–659, 1994.
  15. S. Oveis Gharan and J. Vondrák. On variants of the matroid secretary problem. In C. Demetrescu and M. M. Halldórsson, editors, Algorithms – ESA 2011, pages 335–346, Berlin, Heidelberg, 2011. Springer Berlin Heidelberg.
  16. Scheduling Theory. Single-Stage Systems. Springer, 1994.
  17. W. Wajs. Polynomial algorithm for dynamic sequencing problem. Archiwum Automatyki i Telemechaniki, 31:209–213, 01 1986.

Summary

We haven't generated a summary for this paper yet.