![Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991](https://www.bartleby.com/isbn_cover_images/9781259731709/9781259731709_smallCoverImage.gif)
- Define the termalgorithm.
- What are the different ways to describe algorithms?
- What is the difference between an algorithm for solving a problem and a computer program that solves this problem?
![Check Mark](/static/check-mark.png)
(a)
To define:
The term “algorithm”
Answer to Problem 1RQ
A finite set of rules or instructions to solve a problem is called as Algorithm.
Explanation of Solution
Given:
The term “algorithm”
A set of rules executed in finite amount of steps to produce a unique output from a valid input is called as Algorithm.
(or)
A finite set of rules or instructions to solve a problem is called as Algorithm.
![Check Mark](/static/check-mark.png)
(b)
To explain:
The different ways to describe algorithms
Answer to Problem 1RQ
The different ways to describe the algorithm
- Simply use the English language:
- Using a computer language
- Using a pseudo code
Explanation of Solution
Given:
The different ways to describe algorithms
There are different ways to describe the algorithm
- Simply use the English language
- Using a computer language:
- Using a pseudo code
![Check Mark](/static/check-mark.png)
(c)
To explain:
The difference between an algorithm for solving a problem and a computer program that solves the problem,
Answer to Problem 1RQ
Algorithm: It is a self-contained step-by-step set of rules to be performed to solve a specific problem. It is not language specific.
computer program: It is a set of instructions that compile the rules of a programming language. Generally algorithms are implemented by program
Explanation of Solution
Given:
An algorithm for solving a problem and a computer program that solves the problem,
Algorithm:It is a self-contained step-by-step set of rules to be performed to solve a specific problem. It is not language specific.
computer program:It is a set of instructions that compile the rules of a programming language. The program is written to perform a specified task with a computer. The program depends on computer language. Generally algorithms are implemented by program
Want to see more full solutions like this?
Chapter 3 Solutions
Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage LearningHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALMathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,
- Algebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal LittellAlgebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781285463247/9781285463247_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780547587776/9780547587776_smallCoverImage.jpg)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337798310/9781337798310_smallCoverImage.jpg)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780395977224/9780395977224_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337282291/9781337282291_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305071742/9781305071742_smallCoverImage.gif)