Difference between revisions of "CSC352 Game of Life in Map-Reduce"
Line 81: | Line 81: | ||
</source> | </source> | ||
+ | <br /> | ||
+ | ==Mapper on Original Life File== | ||
+ | <br /> | ||
+ | '''cat life0.txt | ./mapper.py ''' | ||
+ | 001005 alive | ||
+ | 000004 OneMoreNeighbor | ||
+ | 000005 OneMoreNeighbor | ||
+ | 000006 OneMoreNeighbor | ||
+ | 001004 OneMoreNeighbor | ||
+ | 001006 OneMoreNeighbor | ||
+ | 002004 OneMoreNeighbor | ||
+ | 002005 OneMoreNeighbor | ||
+ | 002006 OneMoreNeighbor | ||
+ | 002005 alive | ||
+ | 001004 OneMoreNeighbor | ||
+ | 001005 OneMoreNeighbor | ||
+ | 001006 OneMoreNeighbor | ||
+ | 002004 OneMoreNeighbor | ||
+ | 002006 OneMoreNeighbor | ||
+ | 003004 OneMoreNeighbor | ||
+ | 003005 OneMoreNeighbor | ||
+ | 003006 OneMoreNeighbor | ||
+ | 003005 alive | ||
+ | 002004 OneMoreNeighbor | ||
+ | 002005 OneMoreNeighbor | ||
+ | 002006 OneMoreNeighbor | ||
+ | 003004 OneMoreNeighbor | ||
+ | 003006 OneMoreNeighbor | ||
+ | 004004 OneMoreNeighbor | ||
+ | 004005 OneMoreNeighbor | ||
+ | 004006 OneMoreNeighbor | ||
+ | |||
+ | <br /> | ||
+ | ==Mapper on Output of Reduce== | ||
+ | <br /> | ||
+ | '''cat life0.txt | ./mapper.py | ./shuffleSort.py | ./reducer.py | ./mapper.py''' | ||
+ | 002004 alive | ||
+ | 001003 OneMoreNeighbor | ||
+ | 001004 OneMoreNeighbor | ||
+ | 001005 OneMoreNeighbor | ||
+ | 002003 OneMoreNeighbor | ||
+ | 002005 OneMoreNeighbor | ||
+ | 003003 OneMoreNeighbor | ||
+ | 003004 OneMoreNeighbor | ||
+ | 003005 OneMoreNeighbor | ||
+ | 002005 alive | ||
+ | 001004 OneMoreNeighbor | ||
+ | 001005 OneMoreNeighbor | ||
+ | 001006 OneMoreNeighbor | ||
+ | 002004 OneMoreNeighbor | ||
+ | 002006 OneMoreNeighbor | ||
+ | 003004 OneMoreNeighbor | ||
+ | 003005 OneMoreNeighbor | ||
+ | 003006 OneMoreNeighbor | ||
+ | 002006 alive | ||
+ | 001005 OneMoreNeighbor | ||
+ | 001006 OneMoreNeighbor | ||
+ | 001007 OneMoreNeighbor | ||
+ | 002005 OneMoreNeighbor | ||
+ | 002007 OneMoreNeighbor | ||
+ | 003005 OneMoreNeighbor | ||
+ | 003006 OneMoreNeighbor | ||
+ | 003007 OneMoreNeighbor | ||
+ | |||
<br /> | <br /> | ||
=ShufflerSort.py= | =ShufflerSort.py= |