Each word also has a value: what it says. Here, cat says “tired”, mat says “soft”. Write attend(query, keys, values): what “it” collects by listening to every word with the shares from the last puzzle. Keys are one number per word this time (how much of an animal), so the shares are just the chances of keys @ query.
“it” has to fill in the blank. cat says “tired”, mat says “soft”, sat says nothing, and “it” listens to each with the shares from the last puzzle (keys [2], [0], [−1], query [1]). What does “it” end up with?
attend(query, keys, values)| query | what "it" is looking for | e.g. [1] |
| keys | one row per word, what each word is | e.g. [[2], [0], [−1]] |
| values | one row per word, what each word says | e.g. [[1, 0], [0, 0], [0, 1]] |
| returns | one row: what "it" collects | |