Question

In: Economics

What are Algorithms? Give an example

What are Algorithms? Give an example

Solutions

Expert Solution

Algorithms:-

An algorithm is a finite list of instructions, most often used in solving problems or performing tasks. You may have heard the term used in some fancy context about a genius using an algorithm to do something highly complex, usually in programming. Without a doubt, you've in all probability heard the term used to disclose most things identified with PC forms. Be that as it may, what might you say if I somehow happened to disclose to you that there is a decent possibility that you, yourself, have pursued a calculation? You may have pursued a few calculations hundreds or thousands of times!

Example :-

A standout amongst the most widely recognized utilizations for calculations is in software engineering. PCs can't do anything without being guided. Calculations enable us to give PCs well ordered guidelines so as to take care of an issue or play out an undertaking. For instance, how about we think about the accompanying calculation:

For each odd number from 1 to 9, increase it by 2 and add 7 to it. At that point, work out the outcomes as a rundown isolated by commas.

How might we begin to pursue this calculation? Indeed, it initially says that for each odd number from 1 to 9, increase it by 2 and add 7 to it. Keep in mind that, we have to pursue the means in the request they are given. We first begin with the principal odd number, which is 1. How about we increase it by 2 and after that add 7 to get 9. At that point, we go to the following odd number, 3. We should increase it by 2 and add 7 to get 13. We rehash this procedure for 5, 7, and 9. When we complete that, we need to work out the outcomes as a rundown isolated by commas. In this manner, our last yield is 9, 13, 17, 21, 25.

Please do rate and liked me........


Related Solutions

What is an algorithm? Give 2 examples of algorithms and explain what they do and how...
What is an algorithm? Give 2 examples of algorithms and explain what they do and how they work.
What are the data structures and algorithms? Why are they important to software developers? Give an...
What are the data structures and algorithms? Why are they important to software developers? Give an example of using a data structure. Give an example of using algorithm. Use Google to search for your answers. Minimum 400 words and a maximum of 1000 words.
1. What is inflation. Give an example. 2. What is hyperinflation. Give an example. 3. Explain...
1. What is inflation. Give an example. 2. What is hyperinflation. Give an example. 3. Explain the causes of hyperinflation? 4. Explain the costs of hyperinflation. 5. Why sometimes governments are unable to borrow by issuing debt?
Explain: Analysis of algorithms with the example. Explain with example: How computational time of an algorithm...
Explain: Analysis of algorithms with the example. Explain with example: How computational time of an algorithm depends on input size? Write an algorithm (using whatever method you prefer) that takes an input of 10 integers, sorts the integers in ascending order and out puts the sorted list. In relation to computational time of your algorithm for part 4, what arrangement of the input numbers will cause the best case computational time? What arrangement will cause the worst case time?
What are the primary sources of American Law and give one example of each?  Give an example...
What are the primary sources of American Law and give one example of each?  Give an example of one secondary source.  
What is the tragedy of the commons? Give an example.
What is the tragedy of the commons? Give an example.
What is obervational learning? Give an example of it
What is obervational learning? Give an example of it
What is trademark dilution and give an example.
What is trademark dilution and give an example.
1. What is the relationship between public key cryptographic algorithms and numbers theory? Please give an...
1. What is the relationship between public key cryptographic algorithms and numbers theory? Please give an example 2. What are the different concepts and theorems that number theory encompasses? 3. What are the different engineering applications that make use of number theory?
What is an example of a specific capital project fund? Give an example of the journal...
What is an example of a specific capital project fund? Give an example of the journal entries to record it.?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT