# word-search

A Haskell program to search for a word in a grid.

### Build steps:

- Download the repository and go to the main directory.
-  `cd word-search`
- Run `stack build` to build the project


### Execution steps:

On building the project, two executables `word-search-seq-exe` and `word-search-par-exe` which correspond to the sequential and parallel implementations will be created.


The sequential implementation can be run the following way:

`stack exec -- word-search-seq-exe <pattern> <grid_size> <file_containing_grid>`

E.g: `stack exec -- word-search-seq-exe PROGRAMMING 100 D:\PFP\word-search\inputs\ip100.txt +RTS -s -ls`


The parallel implementation can be run the following way:

`stack exec -- word-search-par-exe <pattern> <grid_size> <file_containing_grid>`

E.g: `stack exec -- word-search-par-exe PROGRAMMING 500 D:\PFP\word-search\inputs\ip500.txt +RTS -s -ls -N4`