Programming Basics || model / theory of computation

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


Model of Computation




เค•เคฎ्เคช्เคฏूเคŸेเคถเคจ เคถเคฌ्เคฆ เค•ा เคฎเคคเคฒเคฌ เค—เคฃเคจा เค•เคฐเคจा เคฏा เคนिเคธाเคฌ เค•เคฐเคจा เคนोเคคा เคนै। เค•ंเคช्เคฏूเคŸเคฐ เค•ो เคจिเคฐ्เคฆेเคถ เคฆेเคจे เคธे เคชเคนเคฒे เคนเคฎें เค•ुเค› เคœเคฐुเคฐी เคธ्เคŸेเคช्เคธ เค•ो เคซॉเคฒो เค•เคฐเคจा เคชเฅœเคคा เคนै เคœो เคจिเคฎ्เคจ เคนैं -

The word computation means to calculate or calculate. Before giving instructions to the computer, we have to follow some important steps which are as follows -


  1. Problem Definition ( เคช्เคฐॉเคฌ्เคฒเคฎ เค•ो เคธเคฎเคเคจा )
  2. Finding Solution ( เคธเคฒूเคถเคจ เคขूँเคขเคจा )
  3. Representation ( เคตिเคตเคฐเคฃ เคฆेเคจा )
  4. Programming ( เคช्เคฐोเค—्เคฐाเคฎ เคจिเคฐ्เคฎाเคฃ )

1. Problem Definition ( เคช्เคฐॉเคฌ्เคฒเคฎ เค•ो เคธเคฎเคเคจा ):- 

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

To get the output based on the inputs and instructions given in the problem, it is necessary to understand the problem only then we can give any instructions to the computer. Problem definition in programming is the process of identifying and describing the problem that a program is intended to solve. It is an important step in the software development process, as it helps to ensure that the program is well-designed and meets the needs of the user.


2. Finding Solution ( เคธเคฒूเคถเคจ เคขूँเคขเคจा ):- 

เคช्เคฐॉเคฌ्เคฒเคฎ เค•ो เคธเคฎเคเคจे เค•े เคฌाเคฆ เค‰เคธเค•ा เคธเคฒूเคถเคจ เคขूँเคขเคจा เคนोเคคा เคนै।  เค‰เคฆाเคนเคฐเคฃ เค•े เคฒिเค เคฏเคฆि เคนเคฎें เค•ंเคช्เคฏूเคŸเคฐ เคธे เคฆो เคธंเค–्เคฏाเค“ं เค•े เคฏोเค— เค•ी เค—เคฃเคจा เค•เคฐเคตाเคจा เคนै เคคो เคนเคฎें เคฏเคน เคชเคคा เคนोเคจा เคšाเคนिเค เค•ी เคฏเคน เค•ाเคฎ เค•ैเคธे เค•เคฐเคตाเคจा เคนै। 
เคช्เคฐोเค—्เคฐाเคฎिंเค— เคฎें เคธเคฎाเคงाเคจ เค–ोเคœเคจे เค•े เคฒिเค เคฏเคนां เค•ुเค› เคธुเคाเคต เคฆिเค เค—เค เคนैं:
  • เคธเคฎเคธ्เคฏा เค•ो เค›ोเคŸी-เค›ोเคŸी เค‰เคช-เคธเคฎเคธ्เคฏाเค“ं เคฎें เคตिเคญाเคœिเคค เค•เคฐें। เค‡เคธเคธे เคธเคฎाเคงाเคจ เคกिเคœाเค‡เคจ เค•เคฐเคจा เค”เคฐ เคฒाเค—ू เค•เคฐเคจा เค†เคธाเคจ เคนो เคœाเคเค—ा।
  • เคเคฒ्เค—ोเคฐिเคฆเคฎ เค•ा เคช्เคฐเคฏोเค— เค•เคฐें. เคเคฒ्เค—ोเคฐिเคฆเคฎ เคธเคฎเคธ्เคฏाเค“ं เค•ो เคนเคฒ เค•เคฐเคจे เค•े เคฒिเค เคšเคฐเคฃ-เคฆเคฐ-เคšเคฐเคฃ เคช्เคฐเค•्เคฐिเคฏाเคं เคนैं। เคธाเคฎाเคจ्เคฏ เคช्เคฐोเค—्เคฐाเคฎिंเค— เคธเคฎเคธ्เคฏाเค“ं เค•ो เคนเคฒ เค•เคฐเคจे เค•े เคฒिเค เค•เคˆ เค…เคฒเค—-เค…เคฒเค— เคเคฒ्เค—ोเคฐिเคฆเคฎ เค‰เคชเคฒเคฌ्เคง เคนैं।
เคช्เคฐोเค—्เคฐाเคฎिंเค— เคฎें เคธเคฎाเคงाเคจ เคขूँเคขเคจा เคเค• เคšुเคจौเคคीเคชूเคฐ्เคฃ เคฒेเค•िเคจ เคชुเคฐเคธ्เค•ृเคค เค•ौเคถเคฒ เคนै। เค…เคญ्เคฏाเคธ เค•े เคธाเคฅ, เค†เคช เคช्เคฐोเค—्เคฐाเคฎिंเค— เคธเคฎเคธ्เคฏाเค“ं เค•े เคธเคฎाเคงाเคจों เค•ो เคกिเคœाเค‡เคจ เค•เคฐเคจे, เคฒाเค—ू เค•เคฐเคจे เค”เคฐ เคชเคฐीเค•्เคทเคฃ เค•เคฐเคจे เคฎें เคฌेเคนเคคเคฐ เคนो เคœाเคंเค—े।

After understanding the problem, its solution has to be found. For example, if we have to calculate the sum of two numbers from the computer, then we should know how to get this work done. 

Here are some tips for finding solutions in programming:

  • Break the problem down into smaller subproblems. This will make it easier to design and implement a solution.
  • Use algorithms. Algorithms are step-by-step procedures for solving problems. There are many different algorithms available for solving common programming problems.

Finding solutions in programming is a challenging but rewarding skill. With practice, you will become better at designing, implementing, and testing solutions to programming problems.


3. Representation ( เคตिเคตเคฐเคฃ เคฆेเคจा ):- 

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

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

After finding the solution, we have to show the solution in a sequence so that the problem can be solved. The solution is represented using an algorithm or flowchart. The choice of which representation to use for a particular data depends on the specific needs of the program. For example, if the program needs to be able to perform complex calculations on numbers, then it may be best to use a floating-point representation for numbers. If the program needs to be able to display text in multiple languages, then it may be best to use a Unicode representation for text.

Representation is an important part of programming. By choosing the right representation for your data, you can improve the efficiency and correctness of your program.


4. Programming ( เคช्เคฐोเค—्เคฐाเคฎ เคจिเคฐ्เคฎाเคฃ ):- 

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

The steps of the solution are converted into a computer language. Writing a solution or instruction in a computer language is called programming. Once the solution is designed, it needs to be coded into a programming language. This involves writing code to implement the algorithms that were designed. Once the code is written, it needs to be tested to ensure that it works correctly. This involves running the program with different input data and checking the output data to make sure it is correct.



-:More Topics:-


---END---

Comments

Post a Comment