arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1401.1752cs.HCcs.AIcs.NAmath.NA
收藏

通过暖启动策略加速基于约束的GUI求解器

Speeding up SOR Solvers for Constraint-based GUIs with a Warm-Start Strategy

University of Auckland(奥克兰大学)

Noreen Jamil, Johannes Müller, Christof Lutteroth, Gerald Weber

AI总结:

本文提出通过重用先前解来加速基于Gauss-Seidel算法的约束求解器,实验表明在GUI缩放和约束变更场景中能提升求解效率。

摘要:

许多计算机程序具有图形用户界面(GUI),需要良好的布局以高效利用可用屏幕空间。大多数GUI没有固定布局,而是可调整大小并能自我适应。约束是指定可变布局的强大工具:它们用于以通用形式指定布局,而约束求解器用于找到满足的具体系布局,例如特定GUI尺寸。约束求解器每次GUI调整或更改时都需要计算新布局,因此需要高效以确保良好的用户体验。基于Gauss-Seidel算法和逐次超松弛(SOR)的方法之一是约束求解器的途径。我们的观察是,调整或更改后的解决方案在结构上与先前解决方案相似。因此,我们的假设是,如果我们重用先前布局的解决方案来预热新布局的求解,可以提高基于SOR的约束求解器的计算性能。在本文中,我们报告了针对三种常见使用案例(大步缩放、小步缩放和约束变更)的实验,以验证这一假设。在实验中,我们测量了随机生成的GUI布局规范在不同尺寸下的求解时间。对于所有三种情况,我们发现如果使用现有解决方案作为新布局的起始解决方案,性能会得到提升。

英文摘要:

Many computer programs have graphical user interfaces (GUIs), which need good layout to make efficient use of the available screen real estate. Most GUIs do not have a fixed layout, but are resizable and able to adapt themselves. Constraints are a powerful tool for specifying adaptable GUI layouts: they are used to specify a layout in a general form, and a constraint solver is used to find a satisfying concrete layout, e.g.\ for a specific GUI size. The constraint solver has to calculate a new layout every time a GUI is resized or changed, so it needs to be efficient to ensure a good user experience. One approach for constraint solvers is based on the Gauss-Seidel algorithm and successive over-relaxation (SOR). Our observation is that a solution after resizing or changing is similar in structure to a previous solution. Thus, our hypothesis is that we can increase the computational performance of an SOR-based constraint solver if we reuse the solution of a previous layout to warm-start the solving of a new layout. In this paper we report on experiments to test this hypothesis experimentally for three common use cases: big-step resizing, small-step resizing and constraint change. In our experiments, we measured the solving time for randomly generated GUI layout specifications of various sizes. For all three cases we found that the performance is improved if an existing solution is used as a starting solution for a new layout.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑