- 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?
(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.
(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
(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 LOOSELEAF
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALAlgebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal Littell