Algorithm || Programming Basics

Home ๐Ÿ‘‰ O level ๐Ÿ‘‰ Python ๐Ÿ‘‰ Unit 1


 Algorithm



เค•िเคธी เคช्เคฐॉเคฌ्เคฒเคฎ เค•े เคธเคฒूเคถเคจ เค•ो เคธ्เคŸेเคช्เคธ เคฎें เคฒिเค–เคจा เค…เคฒ्เค—ोเคฐिเคฅเคฎ เค•เคนเคฒाเคคा เคนै เค…เคฐ्เคฅाเคค เค•िเคธी เค•ाเคฎ เค•ो เคชूเคฐा เค•เคฐเคจे เคฎें เคœिเคจ เคธ्เคŸेเคช्เคธ เค•ो เคซॉเคฒो เค•िเคฏा เคœाเคคा เคนै เค‰เคธเค•ा เค•्เคฐเคฎ เคนी เค…เคฒ्เค—ोเคฐिเคฅเคฎ เคนै। 

Writing the solution of a problem in steps is called an algorithm. An algorithm is the sequence of steps that are followed to complete a task.

เคฏा เค•िเคธी เค•ाเคฎ เค•ो เคชूเคฐ्เคฃ เค•เคฐเคจे เค•े เคฒिเค เคœिเคจ เคจिเคฏเคฎों เค•ो เค•्เคฐเคฎ เคธे เค…เคชเคจाเคฏा เคœाเคคा เคนै เคตे เค…เคฒ्เค—ोเคฐिเคฅเคฎ เค•เคนเคฒाเคคे เคนैं। 

Or the rules which are adopted in order to complete any work are called Algorithm.


เค‰เคฆाเคนเคฐเคฃ เค•े เคฒिเค, เคฏเคฆि เค†เคชเค•ो เคเค• เคถเคนเคฐ เคธे เคฆूเคธเคฐे เคถเคนเคฐ เคœाเคจा เคนै เคคो -
  1. เคฌเคธ เคธ्เคŸॉเคช เคชเคฐ เคœाเคं
  2. เคฌเคธ เคชเค•เฅœे
  3. เคŸिเค•เคŸ เค–เคฐीเคฆें
  4. เคฆूเคธเคฐे เคถเคนเคฐ เค‰เคคเคฐ เคœाเคं  
For example, if you want to move from one city to another -
  1. go to the bus stop
  2. catch the bus
  3. buy ticket
  4. get off in another city
เค‰เคชเคฐोเค•्เคค เคฒिเค–े เคธ्เคŸेเคช्เคธ เคเค• เค…เคฒ्เค—ोเคฐिเคฅเคฎ เค•ो เคฆเคฐ्เคถाเคคे เคนैं เคœो เคเค• เคถเคนเคฐ เคธे เคฆूเคธเคฐे เคถเคนเคฐ เคœाเคจे เค•े เคฒिเค เคนै। 

The above mentioned steps represent an algorithm to move from one city to another.


เคฆूเคธเคฐा เค‰เคฆाเคนเคฐเคฃ -
เคฏเคฆि เคฆो เคธंเค–्เคฏाเค“ं เค•ा เคฏोเค— เคชเคคा เค•เคฐเคจा เคนै เคคो -
  1. เคชเคนเคฒी เคธंเค–्เคฏा เคชเคคा เค•เคฐें 
  2. เคฆूเคธเคฐी เคธंเค–्เคฏा เคชเคคा เค•เคฐें 
  3. เคฆोเคจों เคธंเค–्เคฏाเค“ं เค•ो เคœोเฅœें 
  4. เคฏोเค— เคฌเคคा เคฆें

Second example -
If you want to find the sum of two numbers, then -
  1. find the first number
  2. find the other number
  3. add both numbers
  4. tell sum

เค‰เคชเคฐोเค•्เคค เคฒिเค–े เคธ्เคŸेเคช्เคธ เคเค• เค…เคฒ्เค—ोเคฐिเคฅเคฎ เค•ो เคฆเคฐ्เคถाเคคे เคนैं เคœो เคฆो เคธंเค–्เคฏाเค“ं เค•ो เคœोเฅœเคจे เค•े เคฒिเค เคนै। 

The above mentioned steps show an algorithm to add two numbers.

เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•िเคธी เคธเคฎเคธ्เคฏा เค•ो เคนเคฒ เค•เคฐเคจे เค•े เคฒिเค เคšเคฐเคฃ-เคฆเคฐ-เคšเคฐเคฃ เคช्เคฐเค•्เคฐिเคฏा เคนै। เคฏเคน เคจिเคฐ्เคฆेเคถों เค•ा เคเค• เคธेเคŸ เคนै เคœिเคธเค•ा เคชाเคฒเคจ เค•เคฐเค•े เค•िเคธी เค•ाเคฐ्เคฏ เค•ो เคชूเคฐा เค•िเคฏा เคœा เคธเค•เคคा เคนै। เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•ा เค‰เคชเคฏोเค— เค—เคฃिเคค, เค•ंเคช्เคฏूเคŸเคฐ เคตिเคœ्เคžाเคจ เค”เคฐ เค‡ंเคœीเคจिเคฏเคฐिंเค— เคธเคนिเคค เค•เคˆ เค…เคฒเค—-เค…เคฒเค— เค•्เคทेเคค्เคฐों เคฎें เค•िเคฏा เคœाเคคा เคนै।

An algorithm is a step-by-step procedure for solving a problem. It is a set of instructions that can be followed to complete a task. Algorithms are used in many different fields, including mathematics, computer science, and engineering.


เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•ो เค•เคˆ เค…เคฒเค—-เค…เคฒเค— เคคเคฐीเค•ों เคธे เคต्เคฏเค•्เคค เค•िเคฏा เคœा เคธเค•เคคा เคนै, เคœैเคธे เคช्เคฐाเค•ृเคคिเค• เคญाเคทा, เค›เคฆ्เคฎ เค•ोเคก เคฏा เคช्เคฐोเค—्เคฐाเคฎिंเค— เคญाเคทा เคฎें। เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•ो เคต्เคฏเค•्เคค เค•เคฐเคจे เค•ा เคตिเคถिเคท्เคŸ เคคเคฐीเค•ा เค‡เคš्เค›िเคค เคฆเคฐ्เคถเค•ों เค”เคฐ เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•े เค‰เคฆ्เคฆेเคถ्เคฏ เคชเคฐ เคจिเคฐ्เคญเคฐ เค•เคฐเคคा เคนै।

Algorithm can be expressed in a variety of different ways, such as in natural language, pseudocode, or a programming language. The specific way in which the algorithm is expressed depends on the intended audience and the purpose of the algorithm.


เคเคฒ्เค—ोเคฐिเคฆเคฎ เคฎเคนเคค्เคตเคชूเคฐ्เคฃ เคนैं เค•्เคฏोंเค•ि เคตे เคนเคฎें เคธเคฎเคธ्เคฏाเค“ं เค•ो เคต्เคฏเคตเคธ्เคฅिเคค เค”เคฐ เค•ुเคถเคฒ เคคเคฐीเค•े เคธे เคนเคฒ เค•เคฐเคจे เค•ी เค…เคจुเคฎเคคि เคฆेเคคे เคนैं। เคจिเคฐ्เคฆेเคถों เค•े เคเค• เคธेเคŸ เค•ा เคชाเคฒเคจ เค•เคฐเค•े, เคนเคฎ เคฏเคน เคธुเคจिเคถ्เคšिเคค เค•เคฐ เคธเค•เคคे เคนैं เค•ि เคนเคฎ เคธเคฎเคธ्เคฏा เค•ा เคธเคนी เคธเคฎाเคงाเคจ เค•เคฐेंเค—े, เคญเคฒे เคนी เคธเคฎเคธ्เคฏा เคœเคŸिเคฒ เคนो।

Algorithms are important because they allow us to solve problems in a systematic and efficient way. By following a set of instructions, we can be sure that we will solve the problem correctly, even if the problem is complex.


เคเคฒ्เค—ोเคฐिเคฆเคฎ เค†เคงुเคจिเค• เคธเคฎाเคœ เค•ा เคเค• เค…เคจिเคตाเคฐ्เคฏ เคนिเคธ्เคธा เคนैं। เค‡เคจเค•ा เค‰เคชเคฏोเค— เค•ंเคช्เคฏूเคŸเคฐ เคธे เคฒेเค•เคฐ เคธ्เคฎाเคฐ्เคŸเคซोเคจ เค”เคฐ เค•ाเคฐों เคคเค• เคนเคฐ เคšीเคœ เคฎें เค•िเคฏा เคœाเคคा เคนै। เคœैเคธे-เคœैเคธे เคคเค•เคจीเค• เค†เค—े เคฌเคข़เคคी เคฐเคนेเค—ी, เคเคฒ्เค—ोเคฐिเคฆเคฎ เค”เคฐ เคญी เคฎเคนเคค्เคตเคชूเคฐ्เคฃ เคนो เคœाเคंเค—े।

Algorithms are an essential part of modern society. They are used in everything from computers to smartphones to cars. As technology continues to advance, algorithms will become even more important.


เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•ा เค‰เคชเคฏोเค— เค•เคฐเคจे เค•े เค•ुเค› เคฒाเคญ เคฏเคนां เคฆिเค เค—เค เคนैं:
  • เคเคฒ्เค—ोเคฐिเคฆเคฎ เคนเคฎें เคธเคฎเคธ्เคฏाเค“ं เค•ो เคต्เคฏเคตเคธ्เคฅिเคค เค”เคฐ เค•ुเคถเคฒ เคคเคฐीเค•े เคธे เคนเคฒ เค•เคฐเคจे เคฎें เคฎเคฆเคฆ เค•เคฐ เคธเค•เคคा เคนै।
  • เคเคฒ्เค—ोเคฐिเคฆเคฎ เคนเคฎें เค—เคฒเคคिเคฏाँ เค•เคฐเคจे เคธे เคฌเคšเคจे เคฎें เคฎเคฆเคฆ เค•เคฐ เคธเค•เคคा เคนै।
  • เคเคฒ्เค—ोเคฐिเคฆเคฎ เคนเคฎें เคœเคŸिเคฒ เคธเคฎเคธ्เคฏाเค“ं เค•ो เคธเคฎเคเคจे เคฎें เคฎเคฆเคฆ เค•เคฐ เคธเค•เคคे เคนैं।
  • เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•ा เค‰เคชเคฏोเค— เคธเคฎเคธ्เคฏाเค“ं เค•े เคจเค เค”เคฐ เค…เคญिเคจเคต เคธเคฎाเคงाเคจ เคตिเค•เคธिเคค เค•เคฐเคจे เค•े เคฒिเค เค•िเคฏा เคœा เคธเค•เคคा เคนै।

Here are some of the benefits of using algorithms:

  • Algorithms can help us to solve problems in a systematic and efficient way.
  • Algorithms can help us to avoid making mistakes.
  • Algorithms can help us to understand complex problems.
  • Algorithms can be used to develop new and innovative solutions to problems.


-:More Topics:-



---END---

Comments