From 1492ccdd884d610a82cd38fa64304b3c43e37ed3 Mon Sep 17 00:00:00 2001 From: James Cagalawan Date: Thu, 8 Feb 2018 00:56:30 -0500 Subject: [PATCH] Fix typo in scalable inverted indexing algorithm The `t_{prev}` variable of the class should be emitted in the reducer's cleanup method instead of `term t` which is only scoped within the Reduce function. As noted by a student on the bigdata2018w Piazza. --- ed1n/chapter4-indexing.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ed1n/chapter4-indexing.tex b/ed1n/chapter4-indexing.tex index 1bee2b9..7d76ea9 100644 --- a/ed1n/chapter4-indexing.tex +++ b/ed1n/chapter4-indexing.tex @@ -502,7 +502,7 @@ \section{Inverted Indexing: Revised Implementation} \State $t_{prev} \gets t$ \EndProcedure \Procedure{Close}{} - \State $\textsc{Emit}(\textrm{term }t, \textrm{ postings } P)$ + \State $\textsc{Emit}(t_{prev}, \textrm{ postings } P)$ \EndProcedure \EndFunction \end{algorithmic}