arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0501073cs.PLcs.CCcs.DScs.PF
收藏

约束处理规则中的最优并求

Optimal Union-Find in Constraint Handling Rules

Tom Schrijvers, Thom Fruehwirth

摘要:

约束处理规则(英语:Constraint Handling Rules)是一种基于规则的提交选择语言,最初用于编写约束求解器。在本文中,我们表明,它也可以编写经典的联合查找算法和变种在CHR。程序既不妥协的声明性和效率。我们研究了我们的程序的时间复杂度:它们与最著名的命令式实现的几乎线性复杂度相匹配。实验结果说明了这一事实。

英文摘要:

Constraint Handling Rules (CHR) is a committed-choice rule-based language that was originally intended for writing constraint solvers. In this paper we show that it is also possible to write the classic union-find algorithm and variants in CHR. The programs neither compromise in declarativeness nor efficiency. We study the time complexity of our programs: they match the almost-linear complexity of the best known imperative implementations. This fact is illustrated with experimental results.

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

↑