The repository holds implementation of parallel and sequential inverted index. To start working with solution follow simple instructions below:
1.Clone the repository
git clone git@github.com:Illia-tsar/course_work_parallel_computing.git
2.Change the directory
cd course_work_parallel_computing/
3.Create new directory
mkdir data
Next, add documents to this directory, so that inverted index has data to work on.
4.Run parallel inverted index with 2 goroutines and show execution time
go run . -n 2 -pb=true -t=true
- t - show execution time(defaults to true)
- pb - parallel build(defaults to true)
- n - the number of goroutines(defaults to 1)
- s - search term in index, or not(defaults to false)
- sw - the word to search(defaults to "")