arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.15655cs.HCcs.GR
收藏

GILP:一个交互式单纯形算法可视化工具

GILP: An Interactive Tool for Visualizing the Simplex Algorithm

Henry W. Robbins, Samuel C. Gutekunst, David B. Shmoys, David P. Williamson

摘要:

求解线性规划的单纯形算法是20世纪计算科学与工程中最有影响力的十大算法之一,也是许多算法课程中的重要课题。虽然单纯形算法依赖于直观的几何思想,但算法的计算机制可能会混淆几何理解。在本文中,我们提出了gilp,一个易于使用的单纯形算法的可视化工具,旨在明确连接的机械步骤的算法与它们的几何解释。我们提供了一个包含示例可视化的广泛库,我们的工具允许教师快速生成自定义交互式HTML文件,供学生实验算法(无需学生安装任何东西!)。该工具还可用于在笔记本电脑上进行交互式作业,并已被纳入即将出版的数据科学和决策交互式教科书中。在本文中,我们首先描述了该工具如何融入现有的算法可视化文献:它是如何设计的,以促进学生参与和教师采用,以及它如何大大扩展现有的算法可视化工具的单纯形。然后,我们描述了该工具的开发和使用,并报告反馈,从它的使用过程中,大约有100名学生。学生的反馈是压倒性的积极,学生发现该工具易于用途:它有效地帮助他们联系单纯形算法的代数和几何视图,并理解其细微差别。最后,gilp是开源的,包括对基于分支和界限的可视化线性编程的扩展,并且很容易接受进一步的扩展。

英文摘要:

The Simplex algorithm for solving linear programs-one of Computing in Science & Engineering's top 10 most influential algorithms of the 20th century-is an important topic in many algorithms courses. While the Simplex algorithm relies on intuitive geometric ideas, the computationally-involved mechanics of the algorithm can obfuscate a geometric understanding. In this paper, we present gilp, an easy-to-use Simplex algorithm visualization tool designed to explicitly connect the mechanical steps of the algorithm with their geometric interpretation. We provide an extensive library with example visualizations, and our tool allows an instructor to quickly produce custom interactive HTML files for students to experiment with the algorithm (without requiring students to install anything!). The tool can also be used for interactive assignments in Jupyter notebooks, and has been incorporated into a forthcoming Data Science and Decision Making interactive textbook. In this paper, we first describe how the tool fits into the existing literature on algorithm visualizations: how it was designed to facilitate student engagement and instructor adoption, and how it substantially extends existing algorithm visualization tools for Simplex. We then describe the development and usage of the tool, and report feedback from its use in a course with roughly 100 students. Student feedback was overwhelmingly positive, with students finding the tool easy to use: it effectively helped them link the algebraic and geometrical views of the Simplex algorithm and understand its nuances. Finally, gilp is open-source, includes an extension to visualizing linear programming-based branch and bound, and is readily amenable to further extensions.

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

↑