Synthesis of Merging algorithms on binary trees using multisets in Theorema

I. Dramnesc, T. Jebelean
{"title":"Synthesis of Merging algorithms on binary trees using multisets in Theorema","authors":"I. Dramnesc, T. Jebelean","doi":"10.1109/SACI51354.2021.9465619","DOIUrl":null,"url":null,"abstract":"We present the principles and the experiments of deduction based synthesis of merging algorithms for binary trees. Merging is an auxiliary function used in certain algorithms for sorting of binary trees, however we also address concatenation of unsorted trees (the result will also be in general not sorted) as well as merging of sorted trees (both inputs as well as the output are sorted). We follow the classical approach to deductive synthesis: the algorithm is extracted from the proof of a synthesis conjecture, which asserts that the merged object exists. The novelty of our approach consists in using multisets for expressing the fact that two trees have the same content, which also allows us to develop new powerful proof techniques, mostly by using induction based on the Noetherian ordering among trees induced by the strict inclusion of the corresponding multisets. As the synthesis proofs proceed on different alternatives, several versions of the algorithms are produced. The experiments result in 24 concatenation algorithms, 4 merging algorithms, as well as some sub-auxiliary algorithms for insertion of an element into the tree and for splitting a tree into two sub-trees having the elements smaller, respectively bigger, than a certain value.","PeriodicalId":321907,"journal":{"name":"2021 IEEE 15th International Symposium on Applied Computational Intelligence and Informatics (SACI)","volume":"115 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-05-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE 15th International Symposium on Applied Computational Intelligence and Informatics (SACI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SACI51354.2021.9465619","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

We present the principles and the experiments of deduction based synthesis of merging algorithms for binary trees. Merging is an auxiliary function used in certain algorithms for sorting of binary trees, however we also address concatenation of unsorted trees (the result will also be in general not sorted) as well as merging of sorted trees (both inputs as well as the output are sorted). We follow the classical approach to deductive synthesis: the algorithm is extracted from the proof of a synthesis conjecture, which asserts that the merged object exists. The novelty of our approach consists in using multisets for expressing the fact that two trees have the same content, which also allows us to develop new powerful proof techniques, mostly by using induction based on the Noetherian ordering among trees induced by the strict inclusion of the corresponding multisets. As the synthesis proofs proceed on different alternatives, several versions of the algorithms are produced. The experiments result in 24 concatenation algorithms, 4 merging algorithms, as well as some sub-auxiliary algorithms for insertion of an element into the tree and for splitting a tree into two sub-trees having the elements smaller, respectively bigger, than a certain value.
定理中基于多集的二叉树合并算法综合
给出了基于演绎的二叉树合成算法的原理和实验。合并是用于二叉树排序的某些算法中的辅助函数,但是我们也处理未排序树的连接(结果通常也不排序)以及已排序树的合并(输入和输出都排序)。我们遵循演绎综合的经典方法:该算法是从一个综合猜想的证明中提取出来的,该猜想断言合并对象存在。我们的方法的新颖之处在于使用多集来表示两棵树具有相同内容的事实,这也允许我们开发新的强大的证明技术,主要是通过使用基于树间noether排序的归纳法,该归纳法由相应的多集的严格包含引起。随着对不同替代方案的综合证明的进行,产生了几个版本的算法。实验得到了24种连接算法,4种合并算法,以及一些子辅助算法,用于将元素插入到树中,以及将树分割成元素分别小于某一值和大于某一值的两个子树。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信