可查找迭代器的公平交集
Fair intersection of seekable iterators
AI总结:
本研究借鉴miniKanren通过受限工作量实现搜索公平性的思路,提出了一种基于可查找迭代器接口的最坏情况最优连接的优雅组合式实现方法,适用于函数式语言的浅层嵌入。
摘要:
miniKanren(一种逻辑编程语言)相较于Prolog的核心语义进步,是实现了一种完备且高效的搜索策略,能在析取项之间公平交错执行。这种公平性是通过限制探索单个析取项的工作量、之后再切换到下一个析取项来实现的。我们证明,“通过受限工作量实现公平”这一相同思路,是一种采用可查找迭代器接口实现最坏情况最优连接的优雅组合式方法的基础,该方法适合在函数式语言中进行浅层嵌入。
英文摘要:
miniKanren's key semantic advance over Prolog is to implement a complete yet efficient search strategy, fairly interleaving execution between disjuncts. This fairness is accomplished by bounding how much work is done exploring one disjunct before switching to the next. We show that the same idea -- fairness via bounded work -- underlies an elegant compositional approach to implementing worst-case optimal joins using a seekable iterator interface, suitable for shallow embedding in functional languages.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。