Thursday, February 2, 2017

Guna - Rasa - Virya - Vipaka - Prabhava Siddhanta

Guna -  Rasa - Virya - Vipaka - Prabhava Siddhanta :

These five important, active principles of drug substances are follows :

I) Rasa : Therapeutically active agent.
II) Guna : Best quality
III) Virya : An active principle
IV)  Vipaka : The end product of digestion.
V) Prabahav : Actual therapeutically activity of the drug in the individual  on the drug in the individual.
These five principles are the Panchsheel or five pillars of the Ayurvedic therapeutic.

Tridosha theory

Tridosha theory

Tridosha have three basic factors, like vata, pitta and kapha.
The word 'Dosha' means impurities or imbalance of vata, pitta and kapha.
When these three fators are not in balance, it develops certain  diseases in the body.

I) Vata : It is made up of vayu and Akasha, which is characterized by mobility and lightness.
II) Pitta : This is developed  from Agni or fire, it has bright, hot and acidic character.
II) Kapha : Kapha dosha is made up of prithvi and Apa i.e. earth and water. It is watery and heavy in character.

Panch- Mahabhuta Siddhanta

Panch- Mahabhuta Siddhanta:

There are five basic elements of Mahabutas, which are
1. Prithvi (earth),
2. Apa (water),
3. Teja (fire),
4. Vayu(air), and
5. Akasha (void).

In Ayurveda, these five basic elements are combined together forming the mahabhutas.
Each mahabhutas has its own characteristics feature, properties and identification.
According to mahabhutas siddhanta the body takes these elements from nature and again release it back to nature.
The human body is balanced by the perfect balance of these elements.
But when the balance is distributed an unhealthy condition is developed, which is called as illness.

The principle role of,
Prithvi in the body is a form and shape.
Apa maintains moisture, liquidity and lubrication in the body.
Teja or fire develops heat and energy .
Vayu is referred as Parana,
Akasha is considered as pores and vacuoles.

Ayurvedic system of medicine - (Ayurveda)

Ayurvedic system of medicine:

Ayurveda which is the science of life, concern with the physical, mental and spiritual health of an individual human beings, animals, birds, etc.
Ayurveda is the science of plant medicine.

The term Ayurveda is Sanskrit, consisting of two words :
Ayur - means life and
veda - means scared knowledge or science.
Therefore, Ayurveda is a science of life. It is a holistic science of health.
Ayurveda is considered as the Upveda of Atharvaveda, which deals with different type of herbs, the anatomy and physiology of different organs of the body
and the principles of treatment of diseases. Charaka is the principle exponent in the Ayurvedic system of medicine.

Ayurveda is based on following three fundamental principles :

1. Panch - Mahabhuta Siddhanta,

2. Tridosha theory and

3.Guna - Rasa - Virya - Vipaka - Prabhava Siddhanta

Ayurveda is perhaps the oldest (6000 B.C.) system of medicine.
It spread with vedic and Hindu culture as far east as Indonesia and to the west upto ancient Greek. Buddhists added many new in sight to it, they took it along with their religion to many different countries.
Thus Ayurveda became the basis of healing and curing many diseases and illness in many other countries like Tibet, Sri Lanka, Burma, China and Greek.



Tuesday, January 31, 2017

Fresh Hindi jokes 2017

Must read these jokes for huge laughter
And also forward it to others for their precious smile:-
Haste rahe aur muskurate rahe aur visit karte rahe http://vijaymarwaha.blogspot.in/


अच्छे और बहुत अच्छे टीचर में अंतर:
.
.
.
.
.
.
अच्छा टीचर वो है, जो परीक्षा में आपको कड़ी मेहनत करने की सलाह दे...
और बहुत अच्छा टीचर वो है, जो आपको परीक्षा के वक्त कहे - कंजरो ! पर्चियां चबा जाओ, चेकिंग वाले आ गए।
☝☝☝☝
कहानी आगे भी है.....
.
.
.
.
जब सब ने पर्चियाँ चबा लीं तो टीचर सीट पर हँसते हुए जा बैठे और कहे कोई चेकिंग वाले नहीं आए... अब करो पेपर...

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
------------------------------------------------------------------
+++++++++++++++++++++++++++++++++
*****************************************
=================================
∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
शिक्षिका :- ओये इधर आ,काम है...
चपरासी :- मेडम प्लीज आप मुझे मेरे नाम से बुलाया कीजिये
शिक्षिका- माफ करना,क्या नाम है तुम्हारा ?
चपरासी :- प्राणनाथ
शिक्षिका :- ये नाम रहने दो घर पर किस नाम से पुकारते हैं तुम्हे?
चपरासी :- बालम
शिक्षिका :- ओ हो, मुहल्ले वाला नाम बताओ
चपरासी :- साजन कहते हैं सब मुझे
शिक्षिका :-में तुम्हे तुम्हारे सरनेम से बुलाउगी,सरनेम बताओ
चपरासी :- स्वामी
.
शिक्षिका बेहोश ..... 
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
शरारती बच्चा :मास्टरजी  एक सवाल पूछें 
मास्टर जी      :हाँ हाँ पूछो ।
बच्चा          : हाथी को फ्रीज में कैसे रखेंगे ?
मास्टरजी  : बेवकूफ ,हाथी फ्रीज में नहीं जा
                  सकता है ।
बच्चा       : मास्टरजी फ्रीज बहुत बड़ा है ,
                पहले फ्रीज खोलेंगे और हाथी को
                अंदर डाल देंगे 
बच्चा   :       एक सवाल और पूछूँ ।
मास्टरजी :   हाँ हाँ पूछो ?
बच्चा        : गदहे को फ्रीज में कैसे रखेंगे ?
मास्टरजी : पहले फ्रीज खोलेंगे और गदहे को
                  उस में रख देंगे ।
बच्चा      :गलत जवाब,पहले हाथी को बाहर
            करेंगे फिर गदहे को फ्रीजमें रखेंगे
बच्चा  :        एक सवाल और पूछूँ?
मास्टरजी :    हाँ हाँ पूछो ।
बच्चा    : बंदर के जन्मदिन की पार्टी में सभी
            जानवर एवं जीव-जन्तु आए परन्तु
            एक जानवर नहीं आया । उसका
             नाम बतलायें ?
मास्टरजी : शेर नहीं आया होगा क्योंकि वह
                आता तो सभी को खा जाता !
बच्चा : फिर गलत जवाब,गदहा पार्टी में नहीं
          आया क्योंकि गदहे को तो हमने फ्रीज
           में बंद कर दिया  था   
बच्चा :  एक सवाल और पूछूँ ?
मास्टरजी :(गुस्से से )बोल हरामजादे ।
बच्चा :    रास्ते में एक नदी है जिसमें एक
             खतरनाक मगरमच्छ रहता है एवं
            उस नदी के ऊपर आने-जाने के लिए
           पुल भी नहीं है,आप नदी कैसे पार
            करोगे ?
मास्टरजी : मैं नाव लेकर नदी पार करूंगा !
बच्चा :        फिर गलत जवाब ।
मास्टर :      हरामजादे---बोल  कैसे ?
बच्चा  : मास्टरजी इतनी जल्दी नाव कहाँ से
              आपको मिलेगी ,तबतक तो आप
             नदी तैरकर भी पार कर लोगे ।
मास्टर :मगरमच्छ से तेरा बाप बचाएगा ?
बच्चा :मास्टरजी !आपकी इतनी फटती क्यों
          है? आपको तो पता है कि;सभी जीव -
           जानवर बंदर की Birthday पार्टी में
         गया हुआ है तो मगरमच्छ नदी में कैसे 
         आ जाएगा       
मास्टरजी बेहोश हो गए 
#हंसना_बाद_में_पहले_फारवर्ड_करो    
#######################
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
दुनिया मे ऐसा कोई व्यवसाय ही नहीं है, जो चले नहीं...
यदि आप साँप बेचने की दुकान खोल लोगे तो भी,
लोग ये सोच कर खरीदेंगे कि
.
.
.
चलो पड़ोसी के घर में ही छोड़ देंगे...
इसी बहाने पड़ोसन बाहर तो आएगी

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
एक बार एक ताऊ ने एक ताई छेड़ दी.. 
ताई ताऊ को गाली देने लग गयी.. 
पास से एक लड़का गुज़र रहा था बोला क्या
बात हो गयी ताउजी..?
ताऊ- कुछ नहीं बेटा,
पुराना ट्रांसफार्मर है.. 
चिन्गारी छोड़ रहा है।
        
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
**Solid Insult**
एक लड़का भागते हुए एक लड़की के पास आया और बोला :
“मैं तुमसे दोस्ती करना चाहता हूँ..!  ”
.
.
.
.
.
लड़की : “तो हमारी दुश्मनी कब थी भैया..?” 
      
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
पत्नी – “तुम कल पड़ोसन के साथ फिल्म देखने गए थे ?”....पति – “हाँ तो और क्या करूँ  ? …. आजकल की फ़िल्में फेमिली के साथ देखने लायक होती कहां हैं  ???”
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
Wife - कोई नया शेर सुनाओ ? 
Husband - संगमरमर से तराशा… ख़ुदा ने तेरे बदन को..! 
.
Wife (खुशी से) - आगे..आगे....? 
Husband - बाकी बचा पत्थर उसने तेरी अक्ल पर रख दिया..! 
.
.
फिलहाल
Husband फरार है.

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
पत्नी: आप बहुत भोले हैं... आपको कोई भी बेवकूफ बना देता है 
.
.
.
पति: शुरुआत तो तेरे बाप ने की थी
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
मास्टर जी :-क्या कोई बता सकता हैँ कि :-
भगवान ने लड़कियों को क्यों बनाया ??
.
.
Pappu :- ताकि वो हम लड़को की Life बरबाद कर सके !!
.
.
मास्टर जी :- आँसू ला दिए तेरे जवाब ने
क्लास के बाहर मिल
शाम को दारू पीते हैँ साथ में...!!!
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
पत्नी: मैं तुम्हारी याद में 15 दिन में....
आधी हो गई हूं...
मुझे कब लेने आ रहे हो...?
पति: 15 दिन बाद…!!
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
सावन में लड़कियां मंदिर जाती हैं, अच्छा वर मांगने के लिए, पर शादी शुदा औरतें क्या करने जाती हैं?
हे भगवान क्या मांगा था और क्या दे दिया। 

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
पप्पू☺पुलिस स्टेशन आया...
.  और बोला: मुझे अर्रेस्ट कर लो...
मैंने अपनी 邏पत्नी के सर
.     पर डंडा मारा है...
.       पुलिस: क्या वो樂 मर गई...
पप्पू螺: नहीं वो तो बच गई....
.     अब मेरी खैर नहीं॥...
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
एक दम जोरदार
दुकानदार-बोलो साहब क्या चाहिए ?
ग्राहक-होने वाली बीबी के कुत्ते के लिए केक चाहिए ।
दुकानदार- यहीं खाओगे,या पैक करवा दूँ ?

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
बाप – इतने कम मार्क्स… दो थप्पड़ मारने चाहिए…
पप्पू – हाँ पापा जल्दी चलो मैंने उस साले मास्टर का घर भी देख रखा हैं…
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
पापा नाश्ता कर रहे थे..अचानक फोन बजा,
पापा – मेरे ऑफिस से होगा,पूछे तो बोल देना मैं घर पर नहीं हूँ
बेटी(फोन उठकर)- पापा घर पर ही हैं
पापा – अरे मैंने तो कहा था कि मना कर देना
बेटी – अरे फ़ोन मेरे लिए था..
पापा बेहोश…  
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
न जाने वो मोबाइल फोन कब आएगा ?
जो थोड़ी थोड़ी देर बाद खुद
ही बोल पड़ेगा -
.
.
हे बेबी  ! चलो मुंह बनाओ।
सेल्फ़ी का वक़्त हो गया।
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
वो तो हम भारतीयों का बस नहीं चलता
,
वरना
,
टूथपेस्ट की तरह
,
,
गैस सिलेंडर को तोड- मरोड के बची-कुची गैस भी निकाल ले☺ ☺ ☺   
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
बेटा : पापा आप शराब मत पिया करो.
.
पापा : पीने दे बेटा, साथ क्या ले कर जाना है ?
.
.
बेटा : इसी तरह पीते रहे तो छोड़कर भी क्या जाओगे ?

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
विवाह पत्रिका का मनुहार दोहा :-
भेज रहे हैं स्नेह निमंत्रण,
प्रियवर तुम्हे बुलाने को ,
पुराने नोट का लिफाफा लेकर,
तुम आ मत जाना खाने को ।

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

पत्नी ने पति को कहा:
प्लीज मेरी तरफ मुँह करके सो जाओ......
मुझे डर लग रहा है.....
हस्बैंड:
अच्छा!! बस अपनी ही चिंन्ता है .....
मैं भले ही डर डर के मर जाऊँ..

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
प्रेमी - बेवफा तुने दिल
जला दिया,
मेरा दिल जला कर राख
कर दिया....
.
.
प्रेमिका - तेरी कुरबानी
बेकार नही जाऐगी,
भेज दे राख,बरतन माँजने
के काम आऐगी...   
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
शेरों के यहाँ शादी थी...
तगड़ा वाला डांस चल रहा था.
डांस में एक कुत्ता भी मस्त होकर नाच रहा था.
अचानक एक शेर की निगाह उस पर पड़ी तो
उसने पूछा,
'कि तू शेरों की शादी में कैसे '...
कुत्ता नाचते हुए बोला... भाई,
शादी से पहले हम भी शेर हुआ करते थे...

===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
बहुत सी लड़किया इस तनाव में है कि मोदी जी कही आधी रात से ब्यूटी पार्लर न बंद करवा दे

क्योकि वहां भी Black से white धड़ल्ले से होता है।
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
Wife - RAEES Dekhne chalein ?
Husband - Main us KAABIL nahi
Wife- Toh KAABIL chalein
Husband- Main Utna RAEES nahi
..........
Baad mein ghar me bacchon ne DANGAL dekha 
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
जब अमिताभ बच्चन  ने  राष्ट्रीय गान गाया....
तो रेखा  गाना सुनकर बहुत प्रभावित हुई और खडी होकर अमिताभ को गले लगाने 珞 को लपकी........
अमिताभ ने जैसे ही रेखा को देखा वो आखिरी लाइन जोर जोर से गाने लगे...
जया है...जया है...जया है
अरे जया जया जया जया है....
रेखा वापिस बैठ गई।
===========================
########################
===========================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

एक आदमी
 अस्पताल में
आखिरी सांसें गिन रहा था।
एक नर्स
और उसके परिवार वाले
उसके बिस्तर के पास
खड़े थे।
आदमी
अपने बड़े बेटे से बोला:
-बेटा,
तू मेरे
मिलेनियम सिटी वाले
15 बंगले ले ले।
बेटी से बोला:
-बेटी,
तू सोनीपत सेक्टर 14 के
बंगले ले ले।
छोटे बेटे से बोला:
-तू सबसे छोटा है
और मुझे सबसे ज्यादा
प्यारा भी है,
इसलिए
तुझे मैं
ग्रीन पार्क की
20 दुकानें देता हूं।
आखिर में
आदमी
अपनी पत्नी से बोला:
-मेरे बाद
तुम्हें पैसों के लिए
किसी का मुंह न ताकना पड़े,
इसलिए
 डीएलएफ वाले
12 फ्लैट
 तुम अपने पास रख लो।
पास में खड़ी नर्स
यह सब सुनकर
आदमी की पत्नी से बोली:
-आप बहुत भाग्यशाली हैं कि आपको
इतने अमीर पति मिले,
जो इतनी सारी जायदाद देकर जा रहे हैं।
.
.
.
.
आदमी की पत्नी:
-कौन अमीर?
कैसी जायदाद?
अरे, ये पेपर वाला हैं...
हम सबको
सुबह-सुबह
पेपर ङालने की जिम्मेदारियां
बांट रहे हैं!!!
नर्स  आज तक कोमा मे है




Thank you.

Monday, January 30, 2017

Solve Fuzzy Set

1.The height h ( A) of a fuzzy set A is defined as h (A) = sup A ( X ) Where x belongs to A . Then  the fuzzy set A is  called normal when .
(A) h (A) = 0.
(B) h (A) < 0.
(C) h (A ) = 1.
(D) h (A) < 1.
Answer: C.

2.Fuzzy logic is a form of.
(A) Two - valued logic.
(B) Crisp set logic.
(C) Many - valued logic.
(D) Binary set logic.
Answer : C.

3.What is the Fuzzy  Approximation Theorem ( F A T ) ?
(A) A  fuzzy system can model any continuous system.
(B) The conversion of fuzzy logic to probability.
(C) A continuous system can model. any fuzzy system.
(D) Fuzzy patches covering a series of fuzzy rules.
Answer :  A.

4.Consider a fuzzy set old as defined below old = ( 20 , 0 ) , ( 30 , 0 , 2 ) , ( 40 , 0 ,4 ) , ( 50 , 0 , 6 ) ,
 ( 70 , 1) , ( 80 , 1 ).
Then the alpha -- cut for alpha = 0 , 4 for the set old will be.
(A) ( 40 , 0 , 3 ).
(B) ( 50 , 60 , 70 , 80 ).
(C) ( 20 , 01 ) (30 , 03 ).
(D) ( 20 , 0 ) , ( 30 , 0 ) , (40 , 1 ) , ( 50 , 1 ) , ( 60 , 1 ) , ( 70 , 1 ) ,( 80 , 1 ).
Answer :  D.

5.Equilibrium of  a fuzzy complement c is a solution of the equation .
(A) c (a ) -a = 1.
(B) c ( a ) -a = 2.
(C) c ( a ) = 2a.
(D) c ( a ) -a = 0.
Answer : D.

6.----------------- is a/ are the ways to represents uncertainty .
(A) Fuzzy logic5.
(B) Probability.
(C) Entropy.
(D) All of the mentioned.
Answer : D.

7. Intvolutive property of  the standard fuzzy complement C , for each a ? ( , ) is ----.
(A) c (c (a)) = c (a).
(B) c (c (a)) = 1.
(C) c(c (a)) = 0.
(D) c (c (a)) = a.
Answer : D.

8.How is Fuzzy logic different from conventional control methods ?
(A) IF and THEN Approach.
(B) For Approach.
(C) WHILE Approach.
(D) Do Approach.
Answer: A.

9.If A and B are two fuzzy sets with membership functions ? A  (X ) = ( 0.6 , 0.5 , 0.1 , 0.7 , 0.8 ) ?
B (X) = ( 0.9 , 0.2 , 0.6 , 0.8 , 0.5 ; ) Then value of ?
Complement  A ? B ( X ) will  be ).
(A) ( 0.9 , 0.5 , 0.6 , 0.8 , 0.8 ).
(B) ( 0.6 , 0.2  , 0.1 ,  0.7 , 0.5).
(C) ( 0.1 , 0.5 , 0.4 , 0.2 , 0.2 ).
(D) (0.1 , 0.5 , 0.4  , 02 , 03 ).
Answer: C.

10.Given  U = ( 1 , 2 , 3 , 4 , 5 , 6 , 7 ) A  = ( 3 , 0 , 7 ) , ( 5 , 1 ) , ( 6 , 0 , 8 ).
then  A will be : (Where $ ? complement ).
(A) ( 4 , 0 , 7 ) , ( 2 , 1 ) , ( 1 , 0 , 8 ).
(B) (4 , 0 , 3 ) , ( 5 , 0 ) , ( 6 , 0 , 2).
(C) (1, 1),(2,1) ,(3, 0 ,3) ,(4 , 1) ,( 6 , 0 , 2) ,(7 , 1 ).
(D) ( 3 , 0 ,3 ) , ( 6 , 0 ,2 ).
Answer :  C.


Sorting

Sorting:

What will you do if you were asked to search for a particular telephone number in a directory.
You will ask for the surname of the particular person and as the directory is sorted in an ascending order of alphabets, it will not be difficult to find the telephone number.
But if the case is reverse , you know the phone number and you wish to find the name of the person using the telephone directory , will it be easy like the first case.
One would have to search the entire directory sequentially for this purpose.
This example illustrates how difficult it is to search , if the contents or objects cannot be accessed in sorted order .
Data cannot be retrieved efficiently if it is not placed in a particular format.
To convert an unsorted list of data items into an ordered list is known as sorting.
There are searching methods , like the binary search, which require the data to be sorted .
We can define sorting as arrangement of elements in a list according to the increasing or decreasing (ascending/descending) value of each element.
There are many programs and processes in the computer , which require sorted data .
Every time there is new entry , sorting is done and it is put in its proper position.
A computer on an average spends 25 to 40% of its time in sorting .
The only way to search any element in an unordered list is to perform sequential search.
If we have a list having thousands of records then this sequential search will take a very large amount of time to search a given element.
The worst part comes when you search the whole list for a particular record, only to find that it does exist.
Sorting is one of the most important operations to be performed on the list.
The elements in the list may contain single values or records.
Sorting process should be done using minimum amount of time .
There has been much work done to find optimal algorithms to perform sorting under various environments.
Most of the algorithms are sophisticated and lack clarity , but the time factor is so critical that clarity can be sacrificed for it.
Sorting is classified into two categories depending on the environment.


Internal Sorting::
This type of sorting is used when the list does nto contain a large number of elements.
When sorting is done by this method , all the records to be sorted are present in the main memory.

External Sorting::
In this type of sorting , it is not possible to store all the records in the main memory of the computer .
They are stored on devices such as tapes and disks.
Then they are brought into the memory part by part and sorted .
The final list is in sorted order.
There are separate algorithms designed for this purpose .
We will study the internal sorting algorithms.
Sorting again can be classified into two parts depending on whether the records are moved physically to their proper place or their proper position is indicated through some other means.
The following list is sorted using the swap technique:
Before sorting :
Location  : 1  2  3  4  5
Number : 21  12  9  2  40
After Sorting :
Location : 1  2  3  4  5
Number : 2  9  12  21 40

If the records are moved physically then time is required to swap the records .
This time will be very large if the individual records are huge in size.
Under such circumstances another method called as sort by address , is used .
In this method , there is an array of pointers points to its corresponding object in the list.


Unsorted list using the sort by address method
When sorting is performed the pointers,
which point to the respective elements, are
moved instead of the elements.The first pointer
will point to the record that should be the first
record after sorting.The physical position of
the records will not change.If we want to access
pointed to by the first pointer will look as shown
'5' and so on. The sorted list will look as shown'
in the figure. There are some basic operations,
which aarre performed , in all the sorting algorithm, viz ,comparison ,assignment and swap-
ping. Usually the execution of the sorting algorithm.
Space is another important factor in the list and on the length of the itself.

1) Use of storage space.
2) Use of  computer time.
3) Programming effort.
4) Statistical deviation.
Sorted array by the sort by address method
Let us study each of the factors and see how
they affect the efficiency.
1) Use of storage space.
A program requires very small amount of
space for itself in the mercury. In fact it is negligible as compared to the list to be sorted. The
given list of elements is stored in an array. There
list. The number of lists depends on the type of
array while some use the original list only. The
the original list.Once the sorting is completed,
Some algorithms use only the original list.The number of recursive calls made to the produce.

2)Use of computer time.
The major time is consumed by the various
operations like swapping , comparison and assignment. The time required also depends on
the number of objects present in the list. The
looping structure depends on the number of every critical factor in sorting.

3) Programming effort.
There are various methods used for sorting
A lot of programming effect is put in to find
new algorithms ,which require less time and
space. This require a lot of resesch and still
does not guarantee success. If space and time
are not restricted and the improvement in the
time and space factor is not very significant then
it is adives to us the advisable to take efforts
and find out a new alorithm.

Insertion Sort.
Let us consider an example and try to find
out how insertion sort works. After that,we will
code the algorithm.We have a list'A' of five
elements as follows:

List A: 4,3,2,0,1.
We will sort it in ascending order using insertion sort. We start from the first element 4,it
is the only element we have selected so far hence
it remains as it is. The next element is 3.

List A : 3,4,2,0,1.

Analysis.
The performance of insertion sort depends
on the initial ordering of the elements. There
are two for loops in the algorithm of insertion
sort.The first for loop is always executed for n
times, but execution of the elements. We
will the three cases viz. best, worse and
average case for insertion sort.

F(n)=1+1+.....+1=n=o(n)
While the worst case will be when the element are in the reverse order.The second for
loop will be executed in the following pattern.

F(n)=1+2+3+4...............+n=n(n-1) /2=
O (n2)

The average case will be as shown below:

F(n)=1/2 +2/2 +3/2+..........+n/2=n (n-1) 4=
O (n2)

We find that in insertion sort the proper position of the elements is found out first and
 then to place it there all the elements below it are moved one place below.
This cause swapping of elements .If there are a large number of elements in the array then this process will consume a lot of time .
As the complexity is n 2, if there are 10 elements then the complexity will be 100 and if this number increases to 100
then the complexity will be 10000.
Hence , we conclude that this method is suitable for lists containing 20 to 30 elements .
This technique is inefficient in moving elements their proper place.
A lot of time is consumed in swapping elements.

Selection sort:
Example :
List A: 4,3,2,0,1.

We want to sort in ascending order.
We will have to find out the smallest element in the whole list and place it in its proper position by swapping .
In the above list, we find that 0 is the smallest element and it should be placed in the first place .
However , the first place is occupied by 4 , hence the 4 and 0 are swapped . Now the list will look as follows:

List A: 0,3,2,4,1.

Now our list will be from the second element onwards i.e. 3,2,4,1.
We find the smallest element among them 1 is the smallest and it should be placed at the start of the list i.e. at the second position .
So 3 and 1 are swapped and the list will be as follow :
List A: 0,1,2,4,3

The next list to be checked will be from the third position until the end i.e. 2,4,3.
The smallest element is found out to be 2 and it is placed at its proper position.
Here we find that although 2 was in its proper position the process did not change.
Selection sort does consider the order in which the elements are placed initially.
Even if the element is in its proper position , it will be swapped with itself .
Now with the next iteration the list will be completely sorted 4 and 3 will be swapped with each other .
The final list will be as follow:
List A:0,1,2,3,4

We can define selection sort as an algorithm in which the successive elements are selected in order and placed into their
proper sorted position.

AI internal programming

  AI's internal programming involves complex algorithms and data structures that enable machines to learn, reason, and interact. Here...