Click or drag to resize
KWIK Class
The KWIK class provides a client for computing all occurrences of a keyword in a given string, with surrounding context. This is known as Keyword-in-context search.
Inheritance Hierarchy
SystemObject
  Algs4NetKWIK

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class KWIK

The KWIK type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMainTest
Reads a string from a file specified as the first command-line argument; read an integer k specified as the second command line argument; then repeatedly processes use queries, printing all occurrences of the given query string in the text string with k characters of surrounding context on either side.
Top
Remarks

For additional documentation, see Section 6.3 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

This class is a C# port from the original Java class KWIK implementation by the respective authors.

See Also