Selection Sort in Hindi ??? ???????????????????????? ??????????????? ???????????? ?????? ?????? ?????? ???????????? ????????? ???????????? ???????
?????????????????? ?????????????????????, ???????????? ??????????????? ?????? ?????? ??????????????? ????????? ?????????????????? ????????? ??????????????? ??????????????? ????????? ???????????? Bubble Sort ?????? ???????????? ????????? ????????? ????????? ?????? ?????? ?????? ?????? ?????????????????????????????? ???????????????????????? ??????????????????????????? ?????? ???????????? ????????? ????????????????????? ??????????????? ????????? ?????? Selection Sort???
?????? ??????????????? ????????? ???????????? ???????????? ???????????????????????? ??????????????? ???????????? ??????? (What is Selection Sort in Hindi?), ???????????? ??????????????? ???????????? ??????? ?????? ?????? Bubble Sort ?????? ???????????? ????????? ??????, ???????????? ???????????? ????????? ????????????????????? ?????? ??????????????? ?????????
??????????????? ?????????????????????????????? ????????????????????? ?????? ???????????? ????????? ?????? Bubble Sort ?????? Selection Sort ????????? ???????????? ???????????? ????????? ?????? ????????????, ?????? ?????? ???????????????????????? ?????? ??????????????? ?????? ????????? ????????? ???????????? ????????????
What is Selection Sort in Hindi? ??? ???????????????????????? ??????????????? ???????????? ???????
Selection Sort ?????? ????????? comparison-based ???????????????????????? ??????????????????????????? ????????? ???????????? ??????????????? ??????????????? ?????? ?????? ?????? ?????? ??????????????? ?????? ?????? ????????????????????? ????????? ???????????? ???????????? ?????????:
- Sorted Part: ?????? ???????????? ?????? sort ?????? ???????????? ?????? (?????????????????? ????????? ?????? ???????????? ???????????? ??????)???
- Unsorted Part: ?????? ????????? sort ???????????? ???????????? ?????????
?????? ??????????????????????????? ?????? ????????? Unsorted Part ????????? ?????? ???????????? ???????????? (minimum) ????????????????????? ?????????????????? ?????? ?????? ????????? ??????????????? Sorted Part ?????? ????????? ????????? ?????? ???????????? ?????????

??????????????? ?????????????????? ????????? ????????? ??????, ????????? ?????????????????? ??????????????? ????????? 10 ??????????????? ????????? ????????? ?????? ???????????? ?????????????????? ???????????? (height) ?????? ??????????????? ?????? ??????????????? ????????? ?????? ???????????? ???????????? ????????? ???????????? ???????????? ??????????????? ?????? ?????????????????? ????????? ?????? ????????? ???????????? ????????? ????????? ?????? ???????????? ???????????? ????????? ????????? ????????? ?????????????????? ????????? ???????????? ???????????? ?????? ?????????????????? ????????? ?????? ????????? ??????????????? ???????????? ?????? ????????? ?????? ???????????? ???????????? ????????? Selection Sort ?????????
How Selection Sort Works in Hindi? ??? ???????????????????????????????????? (Step-by-Step)
????????? ??????????????? ?????? ????????? ?????? ?????? ?????????????????? ???????????? ???????????? ????????? ?????????????????? ??????????????? ????????? ?????? array ??????: [20, 12, 10, 15, 2]
Pass 1 (???????????? ???????????????): ???????????? ???????????? ?????? ???????????? ??????????????? [20, 12, 10, 15, 2] ????????? ???????????? ???????????? ???????????? ???????????????????????????
- ???????????? ???????????? ???????????? ???????????? 2 ?????????
- ?????? ?????? 2 ?????? ???????????? ?????????????????? ???????????? ???????????? (20) ?????? ????????? Swap ?????? ??????????????????
- Result:
[2, 12, 10, 15, 20](?????? '2' ???????????? ????????? ????????? ?????? ??????)???
Pass 2 (??????????????? ???????????????): ?????? ?????? ????????? ????????? ??????????????? [12, 10, 15, 20] ????????? ???????????? ???????????? ???????????? ???????????????????????? (???????????? ?????????????????? ?????? ??????????????????)???
- ????????? ????????? ??????????????? ????????? ???????????? ???????????? 10 ?????????
- ?????? ?????? 10 ?????? ??????????????? ?????????????????? ???????????? ???????????? (12) ?????? ????????? Swap ?????? ??????????????????
- Result:
[2, 10, 12, 15, 20](?????? '2' ?????? '10' ????????????????????? ?????????)???
Pass 3 (??????????????? ???????????????): ?????? ????????? ????????? ??????????????? [12, 15, 20] ????????? ???????????? ???????????? 12 ?????????
- ?????? ???????????? ?????? ???????????? ????????? ????????? (??????????????? ??????????????????) ?????? ??????, ?????? ?????? ????????? ????????? ???????????? ??????????????? (?????? ????????? ?????? ?????? swap ??????????????????)???
- Result:
[2, 10, 12, 15, 20]
Pass 4 (???????????? ???????????????): ?????? ????????? ????????? ??????????????? [15, 20] ????????? ???????????? ???????????? 15 ?????????
- ?????? ?????? ???????????? ????????? ????????? ?????? ?????????
- Final Sorted List:
[2, 10, 12, 15, 20]
Time Complexity Analysis ??? ?????? ??????????????? ?????????????????? ???????
Selection Sort ?????? ??????????????????????????? ???????????? Bubble Sort ???????????? ?????? ???????????? ??????, ??????????????? ??????????????? Swaps ?????? ???????????? ????????????
- Time Complexity: $O(n^2)$ (???????????? Best Case ?????? ?????? Worst Case, ?????? ??????????????? $O(n^2)$ ?????? ????????? ???????????? ?????? ????????????????????? ????????? ?????? ????????? ???????????? ???????????? ???????????? ?????????????????? ?????? ??????????????? ??????)???
- Space Complexity: $O(1)$ (?????? In-place sorting ??????)???
Selection Sort vs Bubble Sort in Hindi ??? ???????????????????????? ??????????????? ?????? ????????? ??????????????? ????????? ???????????? ???????????? ???????
| Feature | Bubble Sort | Selection Sort |
| Logic | ??????????????????????????? (adjacent elements) ?????? compare ?????? swap ???????????? ????????? | ???????????? ??????????????? ????????? ?????? Minimum element ?????? select ???????????? ????????? ????????? ???????????? ????????? |
| Swapping | ??????????????? ???????????? ?????????????????? swaps ???????????? ???????????? | ??????????????? maximum $O(n)$ swaps ?????? ???????????? ????????? (?????? ??????????????? ????????? ??????)??? |
| Use Case | ???????????? ??????????????? ?????? ???????????? ????????? | ?????? memory ????????? write operation ??????????????? ??????, ?????? ???????????? ??????????????? ???????????? ???????????? ?????? (????????????????????? ??????????????? swaps ?????? ?????????)??? |
Conclusion ??? ????????????????????????
???????????? ?????????????????? ?????? ?????? ?????? ??????????????? ?????? ???????????? Selection Sort in Hindi (???????????? ??????????????? ?????? ?????????????????????) ??????????????? ????????? ????????? ???????????? ??????????????? ????????????????????? ????????? ???????????? ??????, Selection Sort ?????? ???????????? ????????? ??????????????? ?????? ?????? ?????? ?????? Swaps ???????????? ?????? ???????????? ????????? ????????? ???????????? ????????? ????????? ?????????????????? ?????? ???????????? ???????????? ?????? move ???????????? (swap ????????????) ??????????????? ???????????? ??????, ?????? ???????????? Selection Sort, Bubble Sort ?????? ??????????????? ?????????
????????? ???????????? ?????? ????????? ?????????????????? ????????? ?????? ?????? ????????? ???????????? ???????????? ????????????????????? ?????? ????????? ???????????? ???????????????
FAQs
Q1. Selection Sort ?????? 'Selection' ??????????????? ???????????? ??????????
Ans: ????????????????????? ?????? ??????????????????????????? ?????? ??????????????? ????????? ????????? ????????? ??????????????? ????????? ?????? ???????????? ???????????? ????????????????????? ?????? Select (???????????????) ?????? ?????? ????????? ????????? ????????? ???????????? ?????????
Q2. ???????????? Selection Sort ????????? ???????????? ?????? ????????? ??????????????? ???????
Ans: ????????????, ???????????? Time Complexity $O(n^2)$ ??????, ??????????????? ?????? ????????? datasets ?????? ????????? ???????????? slow ????????? ???????????? ????????? Merge Sort ?????? Quick Sort ??????????????? ????????????
Q3. Selection Sort ?????? Bubble Sort ????????? ????????? ??????????????? ???????
Ans: ????????? Swaps ?????? ????????? ???????????? ?????? Selection Sort ??????????????? ?????? ????????????????????? ?????? ?????? swaps ???????????? ????????? ??????????????? Bubble Sort ?????? ????????? ????????? ???????????? ?????? ?????? ??????????????? ???????????? ?????? sorted ?????? ?????? ????????????, ?????? Selection Sort ???????????? ?????? ???????????????