Sorting : Bubble, Merge, Selection Etc. हिन्दी में – Sorting In Hindi

Sorting In Hindi
3.5/5 - (335 votes)

Sorting In Hindi –  हेल्लो Engineers कैसे हो , उम्मीद है आप ठीक होगे और पढाई तो चंगा होगा आज जो शेयर करने वाले वो Data Structure के बारे में हैं, तो यदि आप जानना चाहते हैं की Sorting In Hindi  के बारे में तो आप इस पोस्ट को पूरा पढ़ सकते हैं , और अगर समझ आ जाये तो अपने दोस्तों से शेयर कर सकते हैं।

Sorting In Hindi

Sorting In Hindi
Sorting In Hindi
  1. ढ़े Stack ( Data Structure)के बारे में
  2. लिंक्ड लिस्ट की जानकारी हिंदी में
  3. Binary Tree, Types, Traversal हिंदी

Sorting In Hindi

Sorting, Data  Structure की वह process हैं जिसमे हम data को एक logical order में sort करते हैं यह logical order ascending order भी हो सकता है या descending order भी हो सकता है।


Types Of Sorting In Hindi 

  1. Selection Sort
  2. Merge Sort
  3. Bubble Sort
  4. Insertion Sort

1. Selection Sort In Hindi 

Selection Sort में किसी एक Number को select किया जाता हैं तथा बाकि सभी Element से Compare किया जाता हैं और Sort किया जाता हैं माना की Array में n elements A[1], A[2], A[3]……….A[n] Memory में हैं, Sorting के लिए selection sort Algorithm में सर्वप्रथम लिस्ट के सबसे छोटे elements को find करते हैं और उसे प्रथम स्थान पर रखते हैं उसके बाद दूसरा सबसे छोटा elements list में find करते हैं और उसे दूसरे स्थान पर रखते हैं इसी तरह सभी elements को compare करके sort करते हैं।

How Selection Sort Works?

Consider the following depicted array as an example.

Unsorted Array

For the first position in the sorted list, the whole list is scanned sequentially. The first position where 14 is stored presently, we search the whole list and find that 10 is the lowest value.

Selection Sort

So we replace 14 with 10. After one iteration 10, which happens to be the minimum value in the list, appears in the first position of the sorted list.

Selection Sort

For the second position, where 33 is residing, we start scanning the rest of the list in a linear manner.

Selection Sort

We find that 14 is the second lowest value in the list and it should appear at the second place. We swap these values.

Selection Sort

After two iterations, two least values are positioned at the beginning in a sorted manner.

Selection Sort

The same process is applied to the rest of the items in the array.

Following is a pictorial depiction of the entire sorting process −

Selection Sort

All Images Source:- Tutorials Point 


2. Merge Sort In Hindi 

इस प्रकार के Sorting में सभी elements को अलग – अलग करते हैं अर्थात पुरे element को दो भागों में Divide करते हैं और इसे तब तक divide करते हैं जब तक प्रत्येक Elements Individual ना हो जाये।

Merge Sort In Hindi

3. Bubble Sort In Hindi 

bubble sort एक बहुत ही Easy sorting Technique है, Bubble Sort में शुरू की दो elements को compare किया जाता है यदि left वाला एलिमेंट right वाले एलिमेंट से बड़ा है तो वे अपने स्थान को एक दूसरे से Change कर लेंगे और ये comparison तब तक चलता हैं जब तक हमारा सारा elements sort नहीं हो जाता।

Bubble Sort In Hindi

4. Insertion Sort In Hindi

  • Insertion Sorting भी एक easy sorting technique है, Insertion Sorting Technique का use छोटे छोटे data sets के लिए सबसे अच्छा sorting technique हैं परन्तु यह बड़े data sets के लिए उपयुक्त नहीं है।
  • इस Technique में हम एक element को pick करते है और उसे उसके appropriate स्थान पर insert कर देते है अर्थात insertion sorting technique में पहले के दो elements को compare करते हैं अगर वो Unsorted होते हैं तो उसे sort कर दिया जाता है।
Insertion Sort In Hindi

Conclusion Of Sorting In Hindi

दोस्तों इस पोस्ट को पूरा पढने के बाद आप तो ये समझ गये होंगे की Sorting In Hindi और आपको जरुर पसंद आई होगी , मैं हमेशा यही कोशिश करता हु की आपको सरल भाषा में समझा सकू , शायद आप इसे समझ गये होंगे इस पोस्ट में मैंने सभी Topics को Cover किया हूँ ताकि आपको किसी और पोस्ट को पढने की जरूरत ना हो , यदि इस पोस्ट से आपकी हेल्प हुई होगी तो अपने दोस्तों से शेयर कर सकते हैं।

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Rate this post