arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1404.4692cs.CCcs.DS
收藏

二叉搜索树路径复杂度的近似计算

Approximation for the Path Complexity of Binary Search Tree

Nishant Doshi

摘要:

算法的复杂度是决定算法效率的重要参数。他们是不同的类型,即。时间复杂度,空间复杂度等,但是,他们都不认为执行路径作为一个复杂性的措施。Ashok等人首先提出了程序/算法的路径复杂度的概念,其基于作为输入大小的函数的执行路径的数量来定义。然而,程序的路径复杂性的概念,不能适用于面向对象的环境。因此,Anupam等人将路径复杂度的概念扩展到类,如下所示。类的状态的概念是基于类的结构化表示(又称状态)定义的。类包含数据成员和数据操作。它只考虑那些改变类状态的数据操作。类的路径复杂度定义为有效输入序列的个数,每个序列都包含有效的数据操作。Anupam等人将这个概念应用到了Stack类中。然而,堆栈是基本且简单的数据结构。因此,在这项研究中,我们使用了一个更复杂的类来理解面向对象环境中的路径复杂性行为。二叉搜索树(Binary Search Tree,BST)是一种众所周知的(也是更复杂的)数据结构,它在排序、搜索、流量工程等许多应用中非常有用。我们分析了基于插入和删除操作算法的BST类的路径复杂性。此外,我们修改了删除操作,以最小化类BST的路径复杂度。

英文摘要:

The complexity of an algorithm is an important parameter to determine its effi-ciency. They are of different types viz. Time complexity, Space complexity, etc. However, none of them consider the execution path as a complexity measure. Ashok et al, firstly proposed the notion of the Path Complexity of a pro-gram/algorithm, which defined based on the number of execution paths as a function of the input size. However, the notion of path complexity of the pro-gram, cannot apply to the object-oriented environment. Therefore, Anupam et al, has extended the notion of path complexity to the class as follows. The notion of the state of the class is defined based on structural representation (aka state) of the class. The class contains data members and data operations. It considers only those data operations that change the state of the class. The path complexity of the class is defined to be the number of valid input sequences, each of them con-taining valid data operations. Anupam et al, had applied this notion to the class Stack. However, the stack is basic and simple data structures. Therefore, in this research we have used a more complex class to understand the path complexity behavior in the object oriented environment. Binary Search Tree (BST) is one of the well known (and more complex too) data structure, which is useful in sorting, searching, Traffic Engineering and many more applications. We have analyzed the path complexity of the class BST based on the algorithms for insert and delete operations. Additionally, we have modified the delete operation to minimize the path complexity for the class BST.

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

↑