Git Product home page Git Product logo

binary_search_tree's Introduction

Binary Search Tree

Advanced Programming - 2020/2021

Benedetta Liberatori - Ciro Antonio Mami - Davide Roznowicz

Repo Structure

The repository contains the following:

  • include : contains the headers: BST.hpp (declaration of the fundamental members of the class BST, together with the constructors and the copy/move semantics as well as declaration of the member functions); BST.tpp (definition of the templated functions for the class BST); iterators.hpp (implementation of the class iterator); node.hpp (implementation of the class node).

  • benchmark: contains the code used to perform the benchmarking together with the .csv with the timings, whose results are presented in the final part of the report.

  • main.cpp: main

  • Doxygen: contains the Doxygen documentation (html and latex)

  • Makefile: is used to compile the main.cpp (command: make main.x) and generate the Doxygen documentation (command: make dox). By typing make, both the main.x and the documentation are generated.

  • Report.md: contains a detailed characterization of the classes/structures and most relevant functions. Some final charts illustrate some benchmarking for finding a key, both using our own classes/functions and built-in classes such as maps.

Reverse dictionary

The simple idea to compute the reverse dictionary has been to exploit comprehension, which is a powerful tool to create new list from already existing list, and set which is a container very useful when we want to organize data in unique values. In particular we select the new keys of reverse dictionary from the set of the unique values of the original dictionary, and the values instead are taken from the list of the orginal keys selecting only the one which were keys (in the original dictionary) of the value which is now the key.

binary_search_tree's People

Contributors

davideroznowicz avatar benedettaliberatori avatar ciroantoniomami avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.