Beowulf (; in Old English or ) is the conventional title of an Old English heroic epic poem consisting of 3182 alliterative long lines , set in Scandinavia , commonly cited as one of the most important works of Anglo-Saxon literature .