Giter VIP home page Giter VIP logo

homework's Introduction

HomeWork

Multithread Hybrid System for String Pattern Matching (Aho-Corasick and Wu Manber)

/**

  • This is an implementation of the hybrid multiple pattern matching from
  • http://www.just.edu.jo/~munzer/MyPubs/Hybrid.pdf
  • The premise is to exploit the fact that WM is inefficient for
  • short strings and AC performance degrades for longer strings.
  • According to the paper, the system best performance
  • is achieved using 1 thread for the Aho-Corasick method
  • and 3 thread for the Wu-Manber method. The sequences
  • with size interval betweeen 1-7 are processed by the
  • Aho-Corasick and the ones > 7 by the Wu Manber
  • NOTE: The Wu Manber method require to be optimazed */

Usage: [--help] Prints this help message.

[-p patterns1,patterns2,...,patternsN ] List of patterns to match (separated by commas) ex. the, ip. (case sensitive) (default: )

[-i <input_text>] A simple text to be processed ex. I have no special talents. I am only passionately curious. โ€• Albert Einstein (default: )

[-f <input_file>] File path of the file to be processed (default: )

[-s ] file path to save the patterns model (default: )

-z <ac_pattern_size> Aho-Corasick maxime parameter size (default: 7)

-c <ac_threads> Number of threads for Aho-Corasick method (default: 1)

-m <wm_threads> Number of threads for Wu Manber method (default: 3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.