What is Algorithm

What is Algorithm

Computer का use Problem Solving Device के  रूप में किया जाता है  |  इन  Problems  को  छोटे-छोटे  Parts में  Break करके आसान तरीके से  Computer Command में बदलकर लिखा जाता है |  किसी भी  Program को बनाने के लिए नियमो का पालन किया जाता है , जिसके द्वारा  Program Logic को  Sequential way में लिखा जाता है  |  जिसे  Algorithm कहते  हैं  |

Algorithm तीन प्रकार के  Execution sequence पर आधारित होते हैं –

  1. Sequential Logic (क्रम पर आधारित )
  2. Conditional Logic (शर्त पर आधारित )
  3. Repetitive Logic (पुनरावृत्ति  पर आधारित )

1 . Sequential Logic (क्रम पर आधारित ) :-

इस प्रकार के  Algorithm में  Instruction एक निश्चित  Sequence में  Execute होते  हैं |  अर्थात जिस Sequence में  Instruction को लिखा जाता है Program में ये उसी  Sequence में  Execute होते हैं |

2 . Conditional Logic (शर्त पर आधारित) :-

इस प्रकार के Algorithm में Instruction विभिन्न  Condition के आधार पर Execute होते हैं | अर्थात Instruction एक निश्चित Sequence में  Execute न  होकर  Condition के आधार पर होता है | यदि  Condition (True) होता है तब  Instruction का एक Part तथा  (False) होने पर Instruction का  Other Part Execute होता है |

3 . Repetitive Logic (पुनरावृत्ति  पर आधारित) :-

इस प्रकार के Algorithm में Instruction Given Condition के (True) होने पर बार-बार Execute होता है |  यह  Process तब तक चलता है जब तक Given Condition (False) नहीं हो जाती है  |

Previous articleWhat are the steps for Developing of a Program
Next articleStorage Classes

LEAVE A REPLY

Please enter your comment!
Please enter your name here