Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Implementation of Binary Search Trees Via Smart Pointers

Author 1: Ivaylo Donchev Author 2: Emilia Todorova
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 6, No. 3 · Published 2015

DOI: https://doi.org/10.14569/IJACSA.2015.060309

Abstract

Study of binary trees has prominent place in the training course of DSA (Data Structures and Algorithms). Their implementation in C++ however is traditionally difficult for students. To a large extent these difficulties are due not so much to the complexity of algorithms as to language complexity in terms of memory management by raw pointers – the programmer must consider too many details to ensure a reliable, efficient and secure implementation. Evolution of C++ regarded to automated resource management, as well as experience in implementation of linear lists by means of C++ 11/14 lead to an attempt to implement binary search trees (BST) via smart pointers as well. In the present paper, the authors share experience in this direction. Some conclusions about pedagogical aspects and effectiveness of the new classes, compared to traditional library containers and implementation with built-in pointers, are made.

Keywords

How to Cite this Article

Donchev, I., & Todorova, E. (2015). Implementation of Binary Search Trees Via Smart Pointers. International Journal of Advanced Computer Science and Applications, 6(3). https://doi.org/10.14569/IJACSA.2015.060309

Donchev, Ivaylo, and Emilia Todorova. "Implementation of Binary Search Trees Via Smart Pointers." International Journal of Advanced Computer Science and Applications, vol. 6, no. 3, 2015, https://doi.org/10.14569/IJACSA.2015.060309.

@article{Donchev2015,
  title     = {Implementation of Binary Search Trees Via Smart Pointers},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {6},
  number    = {3},
  year      = {2015},
  publisher = {The Science and Information Organization},
  author    = {Ivaylo Donchev and Emilia Todorova},
  doi       = {10.14569/IJACSA.2015.060309},
  url       = {https://doi.org/10.14569/IJACSA.2015.060309}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.