Giter VIP home page Giter VIP logo

erlang-mapreduce's Introduction

erlang-mapreduce

Distributed Erlang implementation of letter-combination counting using map-reduce algorithm

Running

To run, you have several options (this is for timing purposes mostly) All runs will output two result files - results.txt and probabilities.txt. When no file name specified - assumes that the split up files (a-z) already exist from previous runs. This means you must first run mapreduce:main([],"354984si.ngl")., and only after that can you run the other styles without a filename specified.

  1. Single node, no spawning with NO file-splitting (for benchmarking) run mapreduce:onlyOne("filename.txt").
  2. Single node/multinode with NO file splitting (for checking different timing issues): run: mapreduce:main(). or mapreduce:main(['a@Computer','b@Computer',โ€ฆ]). This DOESN'T create onlya.txt through onlyz.txt but assumes they exist!
  3. Single node/multinode with file name - meaning a file will now be split up. This is useful for the first time run: mapreduce:main([],"354984si.ngl"). or mapreduce:main(['a@Computer','b@Computer',...],"354984si.ngl"). This also creates the onlya.txt through onlyz.txt required.

Example Run

Example test runs:

 1> timer:tc(mapreduce,onlyOne,["354984si.ngl"]).
 {7379000,true}

 (a@Jengapad)1> timer:tc(mapreduce,main,[['a@Jengapad']]).
 {6238000,ok}

 (a@Jengapad)2> timer:tc(mapreduce,main,[['a@Jengapad','b@Jengapad']]).
 {5476000,ok}

 (a@Jengapad)3> timer:tc(mapreduce,main,[['a@Jengapad','b@Jengapad','c@Jengapad']]
 {4715000,ok}

 (a@Jengapad)4> timer:tc(mapreduce,main,[['a@Jengapad','b@Jengapad','c@Jengapad','d@Jengapad']]).
 {5434000,ok}

 (a@Jengapad)2> timer:tc(mapreduce,main,[['a@Jengapad','b@raspbmc','c@Jengapad','d@Jengapad']]).
 {16023000,ok}

erlang-mapreduce's People

Contributors

arnons1 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.