Shakespeare. The Odyssey is an epic poem attributed to Homer; Hamlet is a tragedy written by William Shakespeare.