Docsity

Sorting techniques full notes DSA, Study notes of Data Structures and Algorithms

Partial preview of the text

Download Sorting techniques full notes DSA and more Study notes Data Structures and Algorithms in PDF only on Docsity!

Siddhaarth 4-5 Sorting techniques Sorting Hefers to the operation / technique of arranging of nearrangung Auts of data ina specific orden. Heap ert Bubble gut Tes of | Quick hort Soatina. Adlechen het Ingeation ert Meage Set (nsetion Sett A technique whore we insert sack slement into its propea place to get a seited anny. initially, ALO] is the only element on the tt, then you add A[1] aot its proper index, then Al21 and ko on sent y neach A(n-11] and place at in the paopar index. Algoaithm — 1. nepeat 2 to 5 for 3] t 7 16 2721 K: 1 to N-1 KR ts CL’ 2. Temp = ACK] Time_complexity 3 Te Ke Qn), OCn*), OCn*) +. while temp <= ALTJ ACT+1]+AlT] Space complexity TiT4t1 oCt) 8. ACT+1] = temp Encik . pm