cschlisner / MapGraph

Relational Database Simulator [university project]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MapGraph

Relational Database Simulator

Creates a network of nodes (one node for each line in each datafile provided) where each node is an entry in an open-addressed hashmap.

Each file represents a dictionary in the form of 'key%value%' (one per line). For each file, a hashmap is created and all of the key-value pairs are added to it. As the files are transformed into hashmaps, edges of the graph are generated by matching keys between hashmaps, so that "tom":"60" in one map will be connected by an edge to "tom":"cat" in another map. The graph can then be queried to show all of the values in all of the maps for a given key.

This model is capable of having multiple different relationships between different keys in different hashmaps, but for this demonstration it simply matches entries with the same key.

Compilation: g++ MapGraph.cpp Main.cpp HashMap.cpp --std=c++11
Usage: $MapGraph <file1> <file2> <file3> ...
Example (using provided data): ./a.out Data/Director.txt Data/Duration.txt Data/Year.txt Data/IMDB_Score.txt
Dependencies: None.
System Requirements: Built and tested on linux.
Name: Cole Schlisner
Known Issues: None.

About

Relational Database Simulator [university project]


Languages

Language:C++ 100.0%