<prompt> Theha algorithm ho hlophisa palo e kholo ho tloha ho tse nyane ho isa ho tse kholo.3, 8, 5, 4, 1, 9  <response>: Instruction in English: Create an algorithm to sort an array of integers from smallest to largest. . Response in English: Here is one way to sort an array of integers from smallest to largest using the Bubble Sort algorithm:1. Take the input array of integers: 3, 8, 5, 4, 1, 92. Set a variable swapped to True3. While swapped is equal to True: 1. Set swapped to False 2. Iterate the array from the first index to the second to last index i.e. 0 to 4, since 5 is the second last index: 1. If the current element is greater than the next element: 1. Swap the values of the current and next elements 2. Set swapped to True4. The final sorted array will be 1, 3, 4, 5, 8, 9The Bubble Sort algorithm works by repeatedly iterating over the array and swapping adjacent elements if they are in the wrong order. This process continues until no more swaps are needed, at which point the array is sorted. This algorithm has a time complexity of On2, where n is the number of elements in the array, so it is not the most efficient sorting algorithm for large arrays. However, it is simple to understand and implement. . Response in Sesotho: Mokhoa o mong ke ona oa ho hlopha palo e kholo ho tloha ho tse nyane ho isa ho tse kholo ka ho sebelisa algorithm ea Bubble Sort: 1. Nka lenane la lintlha tse felletseng: 3, 8, 5, 4, 1, 9 2. Seta phetoho e fetotswe ho ya ho Nnete 3. Ha e fetotswe e lekana le Nnete: 1. Seta e fetotswe ho ya Bohata 2. Pheta lenane ho tloha ho index ya pele ho ya ho index ya bobedi ho isa ho ya ho qetela ke hore 0 ho isa ho 4, kaha 5 ke index ya bobedi ya ho qetela: 1. Haeba elemente ea hajoale e le kholo ho feta elemente e latelang: 1. Fapanya boleng ba lintlha tsa hajoale le tse latelang The Bubble Sort algorithm e sebetsa ka ho pheta-pheta ka makhetlo a mangata le ho fapanyetsana likarolo tse haufi haeba li le ka tatellano e fosahetseng. Tsebetso ena e tsoela pele ho fihlela ho se ho sa hlokahale li-swaps, ka nako eo sehlopha se hlophisoa. Algorithm ena e na le ho rarahana ha nako ea On2, moo n e leng palo ea likarolo tse hlophisitsoeng, kahoo ha se algorithm ea ho hlopha e sebetsang ka ho fetisisa bakeng sa lihlopha tse kholo. Leha ho le joalo, ho bonolo ho e utloisisa le ho e sebelisa. 