IN: Cu Roi (Cu Rui, Cu Raoi) mac Daire is a king of Munster in the Ulster Cycle of Irish mythology. He is usually portrayed as a warrior with superhuman abilities and a master of disguise possessed of magical powers.

Cu Roi further appears in the episode known as "The Trance of Amairgin", variants of which appear in Recension I and II of the Tain bo Cuailnge.  The episode appears as Aislinge n-Aimirgin ("The trance of Amairgin") in Recension I of the Tain. Having followed news of Cu Chulainn's sustained success in single-handedly opposing the Connacht army, Cu Roi once again appears on the scene, this time to fight Cu Chulainn directly. However, on finding Cu Chulainn weak from the injuries which Ferdiad had recently inflicted on him, he refused to carry out his original plan. Instead he faces the giant warrior poet Amairgin, who in a trance is hurling stones at the Connacht army in Tailtiu, with devastating effects. Cu Roi attacks him in kind and their stones meet in the air. They pause when on Cu Roi's request, Amairgen allows the cattle to go past Tailtiu, but seeing as the passage had become difficult, Cu Roi agrees to withdraw from the contest altogether.  The episode in the Book of Leinster (Recension II), called Imthusa Chon Rui meic Daire (header) or Oislige Amargin (text), offers by and large the same story, but adds more explicit detail, notably on the point of Cu Roi's sense of honour in his encounters with Cu Chulainn and Amairgin. First, Cu Roi explains his refusal to fight Cu Chulainn not only by pointing out the inequality between a physically healthy and an injured warrior, but also by saying that a victory would not be his, seeing as it was Fer Diad who had laid low his opponent. Second, the conclusion of Cu Roi's fight with Amairgin is told from a perspective which highlights the role of honour in his motives. Medb insisted "[b]y the truth of your [Cu Roi's] valour" ([a]r fir do gascid fritt) that he should abandon the competition, obstructive as it proved to be to the progress of the expedition. Cu Roi, however, was determined to persist "till the day of doom" (co brunni bratha) unless Amairgin agreed to stop. (When the matter was settled and Cu Roi returned to his country, Amairgin resumed his attacks on the invading army, explaining that his agreement was with Cu Roi only.)
QUESTION: why was cu chulainn fighting ferdiad
IN: Augusta Ada King-Noel, Countess of Lovelace (nee Byron; 10 December 1815 - 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise that the machine had applications beyond pure calculation, and published the first algorithm intended to be carried out by such a machine. As a result, she is sometimes regarded as the first to recognise the full potential of a "computing machine" and the first computer programmer. Ada Lovelace was the only legitimate child of the poet Lord Byron, and his wife Anne Isabella "Annabella" Milbanke, Lady Wentworth.

In her notes, Lovelace emphasised the difference between the Analytical Engine and previous calculating machines, particularly its ability to be programmed to solve problems of any complexity. She realised the potential of the device extended far beyond mere number crunching. In her notes, she wrote:  [The Analytical Engine] might act upon other things besides number, were objects found whose mutual fundamental relations could be expressed by those of the abstract science of operations, and which should be also susceptible of adaptations to the action of the operating notation and mechanism of the engine...Supposing, for instance, that the fundamental relations of pitched sounds in the science of harmony and of musical composition were susceptible of such expression and adaptations, the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent.  This analysis was an important development from previous ideas about the capabilities of computing devices and anticipated the implications of modern computing one hundred years before they were realised. Walter Isaacson ascribes Lovelace's insight regarding the application of computing to any process based on logical symbols to an observation about textiles: "When she saw some mechanical looms that used punchcards to direct the weaving of beautiful patterns, it reminded her of how Babbage's engine used punched cards to make calculations." This insight is seen as significant by writers such as Betty Toole and Benjamin Woolley, as well as the programmer John Graham-Cumming, whose project Plan 28 has the aim of constructing the first complete Analytical Engine.  According to the historian of computing and Babbage specialist Doron Swade:  Ada saw something that Babbage in some sense failed to see. In Babbage's world his engines were bound by number...What Lovelace saw--what Ada Byron saw--was that number could represent entities other than quantity. So once you had a machine for manipulating numbers, if those numbers represented other things, letters, musical notes, then the machine could manipulate symbols of which number was one instance, according to rules. It is this fundamental transition from a machine which is a number cruncher to a machine for manipulating symbols according to rules that is the fundamental transition from calculation to computation--to general-purpose computation--and looking back from the present high ground of modern computing, if we are looking and sifting history for that transition, then that transition was made explicitly by Ada in that 1843 paper.
QUESTION:
And did she used this for real life applications?