kaushalvivek / Duplicate-Elimination

Search and elimination of duplicate records - Database Systems Coursework, Monsoon, 2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dupplicate Elimination

Files:

code.cpp

Main execution code that calls btree or hash programs as per the index specified.

btree.cpp

Code for binary tree based execution. Opens input file puts distinct tuple in btree and then outputs tuples in GetNext() function.

hash.cpp

Code for hashing based execution. Opens input file puts distinct tuple in hash and then outputs tuples in GetNext() function.

Compilation:

g++ --std=c++11 code.cpp

Execution:

./a.out <input_file> <number_of_attributes> <number_of_blocks> <index_type>

/*
** Index Type:
--------------------
** 0 for hash
** 1 for binary tree
--------------------
*/

Vivek Kaushal
20161071

About

Search and elimination of duplicate records - Database Systems Coursework, Monsoon, 2018

License:MIT License


Languages

Language:C++ 100.0%