On Determining Multiple Optimal Parenthesizations for Matrix Chain Products and Scheduling the Corresponding Task Graphs

Khaoula Bezzina, Bchira Ben Mabrouk, Z. Mahjoub
{"title":"On Determining Multiple Optimal Parenthesizations for Matrix Chain Products and Scheduling the Corresponding Task Graphs","authors":"Khaoula Bezzina, Bchira Ben Mabrouk, Z. Mahjoub","doi":"10.1109/HPCS.2017.61","DOIUrl":null,"url":null,"abstract":"We are interested in an easy combinatorial optimization problem having several applications in the real world, namely the matrix chain product problem that may be solved by a well known dynamic programming algorithm (DPA). Our contribution is two-fold. It first consists in the design of an approach based on the DPA for the determination of multiple optimal solutions i.e. optimal parenthesizations (OPs) which may be represented by binary in-trees (BITs). Since our aim is to efficiently parallelize the computation of the resulting product matrix, we define for this purpose a particular inter-OPs comparative criterion i.e. the cost of a critical path in each BIT. Afterwards, we design different schedulings for the corresponding BIT task graphs (TGs). The procedure begins by the construction of the earliest and latest level partitions (LPs) of the TG. Then, after choosing three granularity sizes, i.e coarse, medium and mixed coarse-medium grains, and given an arbitrary number of processors, the proposed schedulings follow a level-per-level scanning of LPs of the TG. In addition to the design of efficient schedulings, we also determine the minimum number of processors to schedule the TG in minimal time. Our contribution is validated by an experimental study achieved on a series of input data (chain lengths, matrix sizes and number of processors) permitting to establish fine comparisons between the determined OPs and the designed schedulings, thus illustrating the practical interest of the study.","PeriodicalId":115758,"journal":{"name":"2017 International Conference on High Performance Computing & Simulation (HPCS)","volume":"65 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 International Conference on High Performance Computing & Simulation (HPCS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/HPCS.2017.61","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

We are interested in an easy combinatorial optimization problem having several applications in the real world, namely the matrix chain product problem that may be solved by a well known dynamic programming algorithm (DPA). Our contribution is two-fold. It first consists in the design of an approach based on the DPA for the determination of multiple optimal solutions i.e. optimal parenthesizations (OPs) which may be represented by binary in-trees (BITs). Since our aim is to efficiently parallelize the computation of the resulting product matrix, we define for this purpose a particular inter-OPs comparative criterion i.e. the cost of a critical path in each BIT. Afterwards, we design different schedulings for the corresponding BIT task graphs (TGs). The procedure begins by the construction of the earliest and latest level partitions (LPs) of the TG. Then, after choosing three granularity sizes, i.e coarse, medium and mixed coarse-medium grains, and given an arbitrary number of processors, the proposed schedulings follow a level-per-level scanning of LPs of the TG. In addition to the design of efficient schedulings, we also determine the minimum number of processors to schedule the TG in minimal time. Our contribution is validated by an experimental study achieved on a series of input data (chain lengths, matrix sizes and number of processors) permitting to establish fine comparisons between the determined OPs and the designed schedulings, thus illustrating the practical interest of the study.
矩阵链积多个最优括号的确定及相应任务图的调度
我们感兴趣的是一个简单的组合优化问题,在现实世界中有几个应用,即矩阵链积问题,可以解决一个众所周知的动态规划算法(DPA)。我们的贡献是双重的。它首先包括设计一种基于DPA的方法来确定多个最优解,即最优括号(OPs),可以用二叉树(BITs)表示。由于我们的目标是有效地并行化结果乘积矩阵的计算,因此我们为此目的定义了一个特定的ops间比较标准,即每个BIT中关键路径的成本。然后,我们为相应的BIT任务图(TGs)设计了不同的调度。该过程从构建TG的最早和最新级别分区(lp)开始。然后,在选择粗粒、中粒和混合粗-中粒三种粒度大小,并给定任意数量的处理器后,所提出的调度遵循对TG的lp逐级扫描。除了高效调度的设计之外,我们还确定了在最短时间内调度TG的最小处理器数量。我们的贡献通过一系列输入数据(链长度,矩阵大小和处理器数量)的实验研究得到验证,允许在确定的OPs和设计的调度之间建立良好的比较,从而说明了研究的实际意义。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术官方微信