Skip to content

medini20/Memory-Efficient-Versioned-File-Indexer-Using-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS253 Assignment 1: Memory-Efficient Versioned File Indexer Using C++

Name: Medini Mudraboina Roll Number: 240645

Compilation Instructions

To compile the C++ source code, open the terminal and run the following command: g++ -O2 240645_Medini.cpp -o analyzer

Execution Instructions

The program takes inputs from the command line. Here are the exact commands to run the three supported queries:

1. Word Count Queries

./analyzer --file test_logs.txt --version v1 --buffer 256 --query word --word error ./analyzer --file test_logs.txt --version v1 --buffer 256 --query word --word DEVOPs

2. Top-K Query

./analyzer --file test_logs.txt --version v1 --buffer 256 --query top --top 10

3. Difference Queries

./analyzer --file1 test_logs.txt --version1 v1 --file2 verbose_logs.txt --version2 v2 --buffer 256 --query diff --word error ./analyzer --file1 test_logs.txt --version1 v1 --file2 verbose_logs.txt --version2 v2 --buffer 256 --query diff --word request

About

Processes large text files using a fixed-size buffer and supports multiple analytical queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages