计算机科学 > 程序设计语言
[提交于 2005年1月25日]
标题:Optimal Union-Find in Constraint Handling Rules
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Tom Schrijvers[v1] 2005年1月25日 星期二 13:28:38 UTC