…………..compares neighbouring elements only and swaps them when necessary.…………..केवल अगल-बगल के तत्वों की तुलना करता है और आवश्यकता पड़ने पर उन्हें बदल देता है।
…………..केवल अगल-बगल के तत्वों की तुलना करता है और आवश्यकता पड़ने पर उन्हें बदल देता है।
Show answerHide answer
Correct answer: (B) Bubble SortBubble Sort
Explanation
Bubble sort compares adjacent (neighbouring) elements and swaps them if they are in the wrong order. Selection and insertion sort compare across the list.Bubble sort आसन्न (पड़ोसी) तत्वों की तुलना करती है और क्रम गलत हो तो अदला-बदली करती है। Selection और insertion sort सूची में दूर तक तुलना करती हैं।