Documentation of 'edu.princeton.cs.algs4.KWIK' Java class
KWIK
edu.princeton.cs.algs4

Class KWIK



  • public class KWIK
    extends java.lang.Object
    The KWIK class provides a SuffixArray client for computing all occurrences of a keyword in a given string, with surrounding context. This is known as keyword-in-context search.

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

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args)
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
        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.
        Parameters:
        args - the command-line arguments

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.