This is the final project for my Data structures and Algorithms class. It uses indexes in B+ trees and A linked list hash table, as well as mergesort to store bulk items.
How to Run:
-The program must be run from the "dataStorage" file
-When the program first runs, it prompts the user with the main menu for what function they want the program to carry out:
Commands and expected outputs:
-
Indexing:
-When indexing, the initial input shall be a 1 to start indexing.
-Input 0-9 for the property to be indexed.
-The program should respond with a list of the properties again
-The indexed ones now having "-Indexed" next to their property.
-
Exact Value Search:
-The user should initially input 2.
-The program will prompt the user for choice of using the title or a quote.
-The user enters 0 for Title, and 1 for Quote.
-The program confirms their choice, and asks for input of title/quote.
-The user inputs "Bee Movie".
-The program will either deny the item in the database, or return it has found it.
-The program will prompt the user to export it in a csv with 0, or remove it from the database with 1.
-If the user choses 0, the program adds the choice to a .csv.
-If the user choses 1, the program deletes it from the list.
-The program then returns to the main menu.
-
Range Query:
-First, you must Index what you wish to Query.
-Initial input should be 3.
-The program will return a list of indexed properties to choose.
-The user will enter in the corresponding number for their property.
-The program will ask if the user wants to choose less than (0), greater than (1), or in between two values (2)
-The user will input 0-2.
-The program will prompt for the value(s) to search by.
-The user will input the corresponding value(s).
-The program will either deny the items in the database for that range, or return the values in the range.
-The program will prompt the user to export them in a csv with 0, or remove them from the database with 1.
-If the user choses 0, the program adds the values to a .csv.
-If the user choses 1, the program deletes them from the list.
-The program then returns to the main menu.
-
Bye:
-The user inputs 4.
-The program thanks the user and terminates
Indexing:
-When indexing, the initial input shall be a 1 to start indexing.
-Input 0-9 for the property to be indexed.
-The program should respond with a list of the properties again
-The indexed ones now having "-Indexed" next to their property.
Exact Value Search:
-The user should initially input 2.
-The program will prompt the user for choice of using the title or a quote.
-The user enters 0 for Title, and 1 for Quote.
-The program confirms their choice, and asks for input of title/quote.
-The user inputs "Bee Movie".
-The program will either deny the item in the database, or return it has found it.
-The program will prompt the user to export it in a csv with 0, or remove it from the database with 1.
-If the user choses 0, the program adds the choice to a .csv.
-If the user choses 1, the program deletes it from the list.
-The program then returns to the main menu.
Range Query:
-First, you must Index what you wish to Query.
-Initial input should be 3.
-The program will return a list of indexed properties to choose.
-The user will enter in the corresponding number for their property.
-The program will ask if the user wants to choose less than (0), greater than (1), or in between two values (2)
-The user will input 0-2.
-The program will prompt for the value(s) to search by.
-The user will input the corresponding value(s).
-The program will either deny the items in the database for that range, or return the values in the range.
-The program will prompt the user to export them in a csv with 0, or remove them from the database with 1.
-If the user choses 0, the program adds the values to a .csv.
-If the user choses 1, the program deletes them from the list.
-The program then returns to the main menu.
Bye:
-The user inputs 4.
-The program thanks the user and terminates