aboutsummaryrefslogtreecommitdiffstats
path: root/P2/include
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-26 08:45:04 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-26 08:45:04 -0500
commitd6e2c01a085d9eebd529fa59fff654663b39e31a (patch)
tree8998ef207083d0a9ef21965b0bbb093243edf743 /P2/include
parentAdd new template (diff)
downloadcsci4061-d6e2c01a085d9eebd529fa59fff654663b39e31a.tar
csci4061-d6e2c01a085d9eebd529fa59fff654663b39e31a.tar.gz
csci4061-d6e2c01a085d9eebd529fa59fff654663b39e31a.tar.bz2
csci4061-d6e2c01a085d9eebd529fa59fff654663b39e31a.tar.lz
csci4061-d6e2c01a085d9eebd529fa59fff654663b39e31a.tar.xz
csci4061-d6e2c01a085d9eebd529fa59fff654663b39e31a.tar.zst
csci4061-d6e2c01a085d9eebd529fa59fff654663b39e31a.zip
Revert "Add new template"
This reverts commit cd43f361676b151a90607fdeb76724b694288ef9.
Diffstat (limited to 'P2/include')
-rw-r--r--P2/include/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/P2/include/utils.h b/P2/include/utils.h
index 2c91cdf..e3f5d43 100644
--- a/P2/include/utils.h
+++ b/P2/include/utils.h
@@ -23,6 +23,7 @@ struct msgBuffer {
};
// mapper side
+
int validChar(char c);
char *getWord(char *chunk, int *i);
char *getChunkData(int mapperID);
@@ -30,6 +31,7 @@ void sendChunkData(char *inputFile, int nMappers);
// reducer side
+
int hashFunction(char* key, int reducers);
int getInterData(char *key, int reducerID);
void shuffle(int nMappers, int nReducers);