A tragedy is defined as beginning with a problem that affects everyone, i.e. the whole town or all the characters involved, the tragic hero must solve this problem and this results in his banishment or death [run-on sentence]. A comedy is defined as also beginning with a problem, but one of less significant importance. The characters try to solve the problem and the story ends with all the characters uniting in either a marriage of a party. Although these two genres are seen as being complete opposites of each other, through further analysis one can gather that though they are different certain similarities can also be seen.
One aspect of these genres that can be compared and contrasted is the narrative or plot. A comparison can be analyzed in that both begin with a problem. In Oedipus Rex, the play begins with a plague devastating the city of Thebes. In A Midsummer Night's Dream there is also a plague that is upon the land. However, a difference between these two beginnings is that in Oedipus Rex the citizen are effected by it to the point that they look towards Oedipus for a solution to their suffering; while in A Midsummer Night's Dream, the effects of the plague are never shown to the audience and it seems a minor detail. Another difference is the cause of the plague in the two plays. In the tragedy, Oedipus Rex, the hero ends up being the cause because he murdered the king; while in A Midsummer Night's Dream the cause is a fight between Titania and Oberon.
Another point that can be compared and contrasted is the search for a solution in the plots. In Hamlet, Hamlet is searching for the truth to discover if his father was really murdered by his uncle and if this is true he must correct the situation by killing his uncle. Also, in Oedipus Rex this plot is seen in that Oedipus is searching for the truth about the murder of the old king, Laios, and the situation will be resolved by the murder being banished from Thebes. In contrast A Midsummer Night's Dream is more centered around the lovers trying to overcome the forces that separate them and Oberon seeking revenge on Titania.