Giter Site home page Giter Site logo

parallel-sequitur's Introduction

Parallel Sequitur

Computer Science 205 Fall 2012

Project Members:

Introduction:

We implemented serial and parallel versions of the Sequitur compression algorithm. The Sequitur algorithm uses hierarchical structure and sequences of discrete symbols to compress files by exploiting repetative structures found in strings.

Our final project is based on the algorithm as described in the following paper: "Identifying Hierarchical Structure in Sequences: A linear-time algorithm", Craig G. Nevill-Manning, Ian H. Witten, Journal of Artificial Intelligence Research 7 (1997) 67.82

Dependencies

  • MPI (mpi4py)
  • Python (sys, csv)

The above packages should already be installed on the resonance.seas cluster for CS 205. On the resonance node, module load courses/cs205/2012 will load these modules into the user environment automatically.

Source Code:

Project on Github

  • serial.py: serial implementation of the Sequitur algorithm
  • concat_parallel.py: simple parallel implementation of the Sequitur algorithm. Text is split among workers which run a version of the serial algorithm before the main process merges all results in order.
  • wordcount.py: parallel implementation based on the Sequitur concept. This method uses frequency of words in the provided text to determine rules to create before compressing.

The repository contains several test cases as well as runscripts to test the code.

Usage:

Run serial.py to see the results of the serial implementation.

Run qsub runscript to run the concat_parallel.py implementation.

Run qsub wcscript to run the wordcount.py implementation.

Sources:

Acknowledgements:

parallel-sequitur's People

Contributors

saagar avatar

Watchers

 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.