dirge: a song or hymn of mourning composed or performed as a memorial to a dead person
logic: the system of operations performed by a computer that underlies the machine's representation of logical operations