计算机科学 > 程序设计语言
[提交于 2026年1月7日]
标题:Implementing Binary Search Trees in GP 2 (Extended Abstract)
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:We present an approach to implement binary search trees in the rule-based graph programming language GP 2. Our implementation uses GP 2's rooted graph transformation rules to be fast and supports insertion, deletion and query operations. We argue that the worst-case runtime for each of the operations is O(n) for a tree with n nodes. In addition, we expect that, on average, the operations run in time O(log(n)). Hence the implementation would match the time complexity of binary search trees implementations in imperative languages.
提交历史
来自:EPTCS[v1] 2026年1月7日 星期三 13:06:07 UTC