To understand the tradeoffs between **Top-p sampling** (also known as Nucleus Sampling) and **Temperature Zero decoding** (Greedy Decoding), we must first clarify what each method does to the probability distribution of the next token generated by a Large Language Model (LLM).

### 1. Definitions