A whodunit is a subgenre of murder mystery, where the focus is on solving the puzzle of identifying the perpetrator of a crime, usually murder. The "death by recognition" trope, where the identify of the murderer is revealed through investigation, is a common element, it's also known as a "murder mystery" or " mystery novel."