(min⁡,+) matrix and vector products for inputs decomposable into few monotone subsequences

IF 0.9 4区 计算机科学 Q3 COMPUTER SCIENCE, THEORY & METHODS
Andrzej Lingas , Mia Persson
{"title":"(min⁡,+) matrix and vector products for inputs decomposable into few monotone subsequences","authors":"Andrzej Lingas ,&nbsp;Mia Persson","doi":"10.1016/j.tcs.2025.115158","DOIUrl":null,"url":null,"abstract":"<div><div>We study the time complexity of computing the <span><math><mo>(</mo><mi>min</mi><mo>⁡</mo><mo>,</mo><mo>+</mo><mo>)</mo></math></span> matrix product of two <span><math><mi>n</mi><mo>×</mo><mi>n</mi></math></span> integer matrices in terms of <em>n</em> and the number of monotone subsequences the rows of the first matrix and the columns of the second matrix can be decomposed into. In particular, we show that if each row of the first matrix can be decomposed into at most <span><math><msub><mrow><mi>m</mi></mrow><mrow><mn>1</mn></mrow></msub></math></span> monotone subsequences and each column of the second matrix can be decomposed into at most <span><math><msub><mrow><mi>m</mi></mrow><mrow><mn>2</mn></mrow></msub></math></span> monotone subsequences such that all the subsequences are non-decreasing or all of them are non-increasing then the <span><math><mo>(</mo><mi>min</mi><mo>⁡</mo><mo>,</mo><mo>+</mo><mo>)</mo></math></span> product of the matrices can be computed in <span><math><mi>O</mi><mo>(</mo><msub><mrow><mi>m</mi></mrow><mrow><mn>1</mn></mrow></msub><msub><mrow><mi>m</mi></mrow><mrow><mn>2</mn></mrow></msub><msup><mrow><mi>n</mi></mrow><mrow><mn>2.569</mn></mrow></msup><mo>)</mo></math></span> time. On the other hand, we observe that if all the rows of the first matrix are non-decreasing and all columns of the second matrix are non-increasing or <em>vice versa</em> then this case is as hard as the general one. We also present six cases of the restrictions on the input integer matrices under which the problem of computing the <span><math><mo>(</mo><mi>min</mi><mo>⁡</mo><mo>,</mo><mo>+</mo><mo>)</mo></math></span> matrix product is equally hard as that of computing the minimum and maximum witnesses of Boolean matrix product.</div><div>Similarly, we also study the time complexity of computing the <span><math><mo>(</mo><mi>min</mi><mo>⁡</mo><mo>,</mo><mo>+</mo><mo>)</mo></math></span> convolution of two <em>n</em>-dimensional integer vectors in terms of <em>n</em> and the number of monotone subsequences the two vectors can be decomposed into. We show that if the first vector can be decomposed into at most <span><math><msub><mrow><mi>m</mi></mrow><mrow><mn>1</mn></mrow></msub></math></span> monotone subsequences and the second vector can be decomposed into at most <span><math><msub><mrow><mi>m</mi></mrow><mrow><mn>2</mn></mrow></msub></math></span> subsequences such that all the subsequences of the first vector are non-decreasing and all the subsequences of the second vector are non-increasing or <em>vice versa</em> then their <span><math><mo>(</mo><mi>min</mi><mo>⁡</mo><mo>,</mo><mo>+</mo><mo>)</mo></math></span> convolution can be computed in <span><math><mover><mrow><mi>O</mi></mrow><mrow><mo>˜</mo></mrow></mover><mo>(</mo><msub><mrow><mi>m</mi></mrow><mrow><mn>1</mn></mrow></msub><msub><mrow><mi>m</mi></mrow><mrow><mn>2</mn></mrow></msub><msup><mrow><mi>n</mi></mrow><mrow><mn>1.5</mn></mrow></msup><mo>)</mo></math></span> time. On the other, the case when both sequences of consecutive coordinates of the vectors are non-decreasing or both of them are non-increasing is as hard as the general case. Finally, we present six cases of the restrictions on the input integer vectors under which the problem of computing the <span><math><mo>(</mo><mi>min</mi><mo>⁡</mo><mo>,</mo><mo>+</mo><mo>)</mo></math></span> vector convolution is equally hard as that of computing the minimum and maximum witnesses of the Boolean vector convolution.</div></div>","PeriodicalId":49438,"journal":{"name":"Theoretical Computer Science","volume":"1037 ","pages":"Article 115158"},"PeriodicalIF":0.9000,"publicationDate":"2025-03-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theoretical Computer Science","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0304397525000969","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

Abstract

We study the time complexity of computing the (min,+) matrix product of two n×n integer matrices in terms of n and the number of monotone subsequences the rows of the first matrix and the columns of the second matrix can be decomposed into. In particular, we show that if each row of the first matrix can be decomposed into at most m1 monotone subsequences and each column of the second matrix can be decomposed into at most m2 monotone subsequences such that all the subsequences are non-decreasing or all of them are non-increasing then the (min,+) product of the matrices can be computed in O(m1m2n2.569) time. On the other hand, we observe that if all the rows of the first matrix are non-decreasing and all columns of the second matrix are non-increasing or vice versa then this case is as hard as the general one. We also present six cases of the restrictions on the input integer matrices under which the problem of computing the (min,+) matrix product is equally hard as that of computing the minimum and maximum witnesses of Boolean matrix product.
Similarly, we also study the time complexity of computing the (min,+) convolution of two n-dimensional integer vectors in terms of n and the number of monotone subsequences the two vectors can be decomposed into. We show that if the first vector can be decomposed into at most m1 monotone subsequences and the second vector can be decomposed into at most m2 subsequences such that all the subsequences of the first vector are non-decreasing and all the subsequences of the second vector are non-increasing or vice versa then their (min,+) convolution can be computed in O˜(m1m2n1.5) time. On the other, the case when both sequences of consecutive coordinates of the vectors are non-decreasing or both of them are non-increasing is as hard as the general case. Finally, we present six cases of the restrictions on the input integer vectors under which the problem of computing the (min,+) vector convolution is equally hard as that of computing the minimum and maximum witnesses of the Boolean vector convolution.
求助全文
约1分钟内获得全文 求助全文
来源期刊
Theoretical Computer Science
Theoretical Computer Science 工程技术-计算机:理论方法
CiteScore
2.60
自引率
18.20%
发文量
471
审稿时长
12.6 months
期刊介绍: Theoretical Computer Science is mathematical and abstract in spirit, but it derives its motivation from practical and everyday computation. Its aim is to understand the nature of computation and, as a consequence of this understanding, provide more efficient methodologies. All papers introducing or studying mathematical, logic and formal concepts and methods are welcome, provided that their motivation is clearly drawn from the field of computing.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信