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 -
- Problem Definition ( प्रॉब्लम को समझना )
- Finding Solution ( सलूशन ढूँढना )
- Representation ( विवरण देना )
- 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.
Sir bahut hi easy language me describe h
ReplyDeleteThank you sir
Welcome.. 😊
Delete