Name Date Size #Lines LOC

..12-Feb-2024-

CMakeLists.txtH A D12-Feb-20241.9 KiB4736

README.mdH A D12-Feb-20241.5 KiB3225

sub_string_finder.cppH A D12-Feb-20243 KiB9159

sub_string_finder_extended.cppH A D12-Feb-20244.6 KiB132101

sub_string_finder_pretty.cppH A D12-Feb-20243 KiB9567

README.md

1# Sub_string_finder sample
2An example that uses the `parallel_for` template in a substring matching program. The [oneAPI Threading Building Blocks Get Started Guide](https://www.intel.com/content/www/us/en/docs/onetbb/get-started-guide/current/overview.html) describes this example.
3
4For each position in a string, the program displays the length of the largest matching substring elsewhere in the string. The program also displays the location of a largest match for each position. Consider the string "babba" as an example. Starting at position 0, "ba" is the largest substring with a match elsewhere in the string (position 3).
5
6## Building the example
7```
8cmake <path_to_example>
9cmake --build .
10```
11
12### Predefined make targets
13* `make sub_string_finder_simple` - builds the example as it appears in the Get Started Guide.
14* `make sub_string_finder_extended` - builds the similar example with more attractive printing of the results.
15* `make sub_string_finder_pretty` - builds the example extended with a sequential implementation.
16* `make sub_string_finder` - builds all sample versions.
17
18## Running the sample
19### Predefined make targets
20* `make run_sub_string_finder` - executes the example with predefined parameters.
21* `make light_test_sub_string_finder` - executes the example with suggested parameters to reduce execution time.
22
23### Application parameters
24Usage:
25```
26sub_string_finder_simple
27sub_string_finder_extended
28sub_string_finder_pretty
29```
30
31The example does not requires application parameters.
32