Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m not sure why you use a dictionary with keys 0…999, instead of an array indexed 0…999.


I was using the term dictionary for illustration purposes. Remember, this was all in the context of MapReduce. Computation within MapReduce is built around grouping values by keys, which makes dictionaries a natural way to think about many MapReduce oriented algorithms, at least for me. The key/value pairs appear as streams of two-tuples, not as dictionaries or arrays.


That's just a dict/map with less flexibility on the keys :D




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: