GithubHelp home page GithubHelp logo

findit's Introduction

Find It!

A very fast hash-based dynamic dictionary matching.

Target

Search for all occurances of gram patterns in a given text, supporting online insertion & deletion. I/O are processed in batches, allowing a certain scale of parallelism. See http://sigmod17contest.athenarc.gr/ for more details.

The original competition task is modified slightly by

  • Assume all inputs are ASCII
  • A line with a single 'E' refers to the end of a batch
  • Return a multiset of occurances

Models

Naive Serial

Hash-based serial search algorithm.

Naive Parallel

Hash-based parallel search algorithm.

  • parallel hash processing
  • parallel substring enumeration

OpenMP Parallel

Hash-based parallel search algorithm.

  • parallel hash processing
  • parallel substring enumeration

Powerful Parallel

Hash-based parallel search algorithm

  • parallel hash processing
  • parallel substring enumeration
  • hierarchical map with branch cutting

Data Generator

Generates a batch of insertions, deletions and queries according to the given datasets. Usage can be found in DataGenerator/main.cpp

Results

Evaluated with data generated by literary works from different periods, including Harry Potter series, Jane Eyre, The Iliad, etc. Patterns range from 10 to 50 grams while queries range from 200 to 2000 grams.

Metric: total computation time (s)

(1000+10+10)*100 denotes (#insertion + #deletion + #query) * #batch

Algorithm (1000+10+10)*100 (1000+100+100)*10 (10000+100+100)*10
Naive Serial 5.756 3.966 4.433
Naive Parallel 2.181 1.483 2.502
OpenMP Parallel 1.337 1.076 1.430
Powerful Parallel 0.493 0.119 0.476

on an i5-3320M CPU with 4 threads, using O2 optimization.

Author

Environment

  • Visual Studio 2013
  • Windows 8

findit's People

Contributors

kiddozhu avatar

Watchers

 avatar  avatar

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.