aboutsummaryrefslogtreecommitdiffstats
path: root/P1
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-03 17:07:40 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-03 17:07:40 -0500
commit6fc7d57e54b0475be77196afcf22e4e055fba8f7 (patch)
tree0edcc273016ff9ccd5b01f72bb2e61d618b3f1c2 /P1
parentUpdate (diff)
downloadcsci4061-6fc7d57e54b0475be77196afcf22e4e055fba8f7.tar
csci4061-6fc7d57e54b0475be77196afcf22e4e055fba8f7.tar.gz
csci4061-6fc7d57e54b0475be77196afcf22e4e055fba8f7.tar.bz2
csci4061-6fc7d57e54b0475be77196afcf22e4e055fba8f7.tar.lz
csci4061-6fc7d57e54b0475be77196afcf22e4e055fba8f7.tar.xz
csci4061-6fc7d57e54b0475be77196afcf22e4e055fba8f7.tar.zst
csci4061-6fc7d57e54b0475be77196afcf22e4e055fba8f7.zip
Fix mistakes by making more
Diffstat (limited to 'P1')
-rw-r--r--P1/src/mapper.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index a70f352..98c8ff7 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -78,12 +78,17 @@ while (root != NULL) {
// emit the <key, value> into intermediate DS
// eats the data into the DS
void emit(char *key, char *value) {
- // Traverse the value list
+ //Go through intermediateDS, comparing key in list to *key.
+ //If it exists, somehow add to the value list another "1" to the existing list.
+ //If it never does (use string compare thing), add it to the end along with the "1".
+ /* THIS IS NOT CURRENTLY IMPLEMENTED PROPERLY BUT SHOULD BE ABOUT RIGHT
+ CONCEPTUALLY.
intermediateDS *tempNode = NULL;
while (root != NULL) {
tempNode = root;
root = root -> next;
}
+ */
}
// map function