Question: In what century did Olaf Geirstad-Alf  and Halfdan the Black live in?

Context articles: Amlaíb Conung
Þáttr Ólafs Geirstaða Alfs
Olaf the Peacock
Halfdan the Black
Ragnvald Heidumhære
Geirmund the Noisy
Olaf Geirstad-Alf
Legendary Saga of St. Olaf
Sigtryg Eysteinsson
Halfdan Haraldsson the Black

Amlaíb Conung (Old Norse: "Óláfr" ; died c. 874) was a Viking leader in Ireland and Scotland in the mid-late ninth century.
 He was the son of the king of Lochlann, identified in the non-contemporary "Fragmentary Annals of Ireland" as Gofraid, and brother of Auisle and Ímar, the latter of whom founded the Uí Ímair dynasty, and whose descendants would go on to dominate the Irish Sea region for several centuries.
 Another Viking leader, Halfdan Ragnarsson, is considered by some scholars to be another brother.
 The Irish Annals title Amlaíb, Ímar and Auisle "kings of the foreigners".
 Modern scholars use the title "kings of Dublin" after the Viking settlement which formed the base of their power.
 The epithet "Conung" is derived from the Old Norse "konungr" and simply means "king".
 Some scholars consider Amlaíb to be identical to Olaf the White, a Viking sea-king who features in the "Landnámabók" and other Icelandic sagas.
"Þáttr Ólafs Geirstaða Alfs" is a "þáttr ", a short anecdotal story, about the mythical Norse king Olaf Geirstad-Alf.
 It is preserved in "Flateyjarbók", a saga collection that was written at the end of the 14th century.
 Olaf Geirstad Alf, who is also one of the kings who appear in the poem "Ynglingatal", is said to have been king of Vestfold or Grenland in Norway in the late 9th century.
Olaf the Peacock (Old Norse: Ólafr Pái) or Olaf Hoskuldsson (Ólafr Höskuldsson) (c. 938–1006) was a merchant and chieftain of the early Icelandic Commonwealth, who was nicknamed "the Peacock" because of his proud bearing and magnificent wardrobe.
 He is a major character in the "Laxdæla saga" and is mentioned in a number of other Icelandic sources.
 The son of a slave woman, Olaf became one of the wealthiest landowners in Iceland and played a major role in its politics and society during the latter half of the tenth century.
 In addition to the "Laxdæla Saga" in which he takes a leading role, Olaf also is mentioned in "Egils saga", "Njáls saga", "Gunnlaugs saga", "Kormáks saga", "Grettirs saga" and the "Landnámabók", among others.
Halfdan the Black (Old Norse: "Halfdanr Svarti") (  810 –  860 ) was a ninth-century king of Vestfold.
 He belonged to the House of Yngling and was the father of Harald Fairhair, the first king of Norway.
Ragnvald Heidumhære (or Rognvald) was a legendary, possibly historic, petty king or chieftain of Vestfold in what is today Norway in the 9th century, according to "Ynglingatal" and to "Ynglinga saga" in "Heimskringla".
 He was the son of Ragnar Lodbrok or Olaf Geirstad-Alf.
 His name "Heiðumhæri" could be translated as "highly honoured"
Geirmund the Noisy (died c. 978) was a Viking adventurer of the 10th century.
 Around 975, he hosted Olaf the Peacock during the latter's second expedition to Norway.
 On his return home to Iceland Olaf brought Geirmund with him and Geirmund fell in love with Olaf's daughter Thurid.
 Though Olaf was opposed to the match, Geirmund bribed Thorgerd to be his advocate, and Olaf relented.
 The marriage was an unhappy one, and after three years Geirmund decided to return home without leaving any money for the support of his ex-wife and daughter.
 Enraged, Thurid boarded his ship before he departed, stole his famous sword "Leg-Biter," and left their infant daughter Groa on the ship.
 Geirmund cursed the sword, and on his return to Norway he and all of his shipmates, including little Groa, were drowned.
Olaf Gudrødsson, or as he was named after his death Olaf Geirstad-Alf (Old Norse Ólaf Geirstaða Álfr), was a legendary Norwegian king of the House of Yngling from the "Ynglinga saga".
 He was the son of Gudrød the Hunter and according to the late "Heimskringla", the half-brother of Halfdan the Black.
 Gudrød and Olaf conquered a large part of Raumarike.
The Legendary Saga of St. Olaf or Helgisaga Óláfs konungs Haraldssonar is one of the kings' sagas, a 13th-century biography of the 11th-century Saint Olaf II of Norway.
 It is based heavily on the largely lost "Oldest Saga of St. Olaf".
 The composition is primitive and clumsy and the saga essentially consists of a series of separate anecdotes extracted from skaldic verse.
 The anonymous author may have been a Norwegian and the saga is preserved in one mid-13th-century Norwegian manuscript.
 It is thought to have been composed in the early 13th century.
 Snorri Sturluson is believed to have used a work closely similar to the "Legendary Saga" when he composed his "Separate Saga of St. Olaf" and the "Heimskringla".
Sigtryg Eysteinsson was king of the Norwegian petty kingdoms Raumarike and Hedmark in what is today south-eastern Norway.
 He was killed by Halfdan the Black ("Halvdan Svarte") in the middle of the 9th century.
 Halfdan the Black subdued the area by first defeating and killing Sigtryg in battle and then defeated Sigtryg's brother and successor Eystein Eysteinsson in a series of battles.
Halfdan Haraldsson or Halfdan the Black (not to be confused with his grandfather and namesake) was a son of Harald I of Norway by his first wife, Åsa, the daughter of Jarl Håkon Grjotgardsson of Lade.
 He was made sub-king of the Trondelag by his father, along with his brother Halfdan the White.
 According to "Heimskringla", Halfdan the Black was poisoned, possibly at the behest of his sister in law Gunnhild, Mother of Kings.