Subgenre of crime fiction and mystery fiction in which an investigator or a detective—either professional or amateur—investigates a crime, often murder