Home Knowledge Base MapReduce

MapReduce — a programming paradigm for processing massive datasets in parallel across distributed clusters, popularized by Google and Apache Hadoop.

Two Phases

1. Map: Apply a function to each input record independently → produce (key, value) pairs 2. Reduce: Group all values by key → combine them into final results

Example: Word Count

Input: "the cat sat on the mat"

Map: "the"→1, "cat"→1, "sat"→1, "on"→1, "the"→1, "mat"→1

Shuffle/Sort: Group by key
  "cat"→[1], "mat"→[1], "on"→[1], "sat"→[1], "the"→[1,1]

Reduce: Sum values per key
  "cat"→1, "mat"→1, "on"→1, "sat"→1, "the"→2

Why It Works

Implementations

Limitations

MapReduce is the foundation of big data processing — understanding it is essential for distributed computing.

mapreduce basicsmap reduce paradigmdistributed computation

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.