×
Log in to StudySoup
Get Full Access to Math - Textbook Survival Guide
Join StudySoup for FREE
Get Full Access to Math - Textbook Survival Guide

a) Describe, using English, an algorithm for finding the

Discrete Mathematics and Its Applications | 7th Edition | ISBN: 9780073383095 | Authors: Kenneth Rosen ISBN: 9780073383095 37

Solution for problem 2RQ Chapter 3.R

Discrete Mathematics and Its Applications | 7th Edition

  • Textbook Solutions
  • 2901 Step-by-step solutions solved by professors and subject experts
  • Get 24/7 help from StudySoup virtual teaching assistants
Discrete Mathematics and Its Applications | 7th Edition | ISBN: 9780073383095 | Authors: Kenneth Rosen

Discrete Mathematics and Its Applications | 7th Edition

4 5 0 270 Reviews
13
1
Problem 2RQ

a) Describe, using English, an algorithm for finding the largest integer in a list of n integers.________________b) Express this algorithm in pseudocode.________________c) How many comparisons does the algorithm use?

Step-by-Step Solution:

Solution: Step 1 :In this problem we have using english to explain an algorithm for finding the largest integer in a list of n integers.Step 2 : (a) :* first step we have to set the temporary maximum equal to the first integer in the sequence.* The temporary maximum will be the largest integer examined at any stage of the program.* Next we have to compare the next integer in the sequence to the temporary maximum.* And then set the temporary maximum equal to this integer.* Repeat above all steps if there are more integers in the sequence. * Otherwise stop when there are no integers left in the sequence.* The temporary maximum at this point is the largest integer in the sequence.

Step 3 of 4

Chapter 3.R, Problem 2RQ is Solved
Step 4 of 4

Textbook: Discrete Mathematics and Its Applications
Edition: 7
Author: Kenneth Rosen
ISBN: 9780073383095

Since the solution to 2RQ from 3.R chapter was answered, more than 241 students have viewed the full step-by-step answer. The full step-by-step solution to problem: 2RQ from chapter: 3.R was answered by , our top Math solution expert on 06/21/17, 07:45AM. This textbook survival guide was created for the textbook: Discrete Mathematics and Its Applications, edition: 7. This full solution covers the following key subjects: Algorithm, Integer, describe, english, express. This expansive textbook survival guide covers 101 chapters, and 4221 solutions. The answer to “a) Describe, using English, an algorithm for finding the largest integer in a list of n integers.________________b) Express this algorithm in pseudocode.________________c) How many comparisons does the algorithm use?” is broken down into a number of easy to follow steps, and 29 words. Discrete Mathematics and Its Applications was written by and is associated to the ISBN: 9780073383095.

Unlock Textbook Solution

Enter your email below to unlock your verified solution to:

a) Describe, using English, an algorithm for finding the

×
Log in to StudySoup
Get Full Access to Math - Textbook Survival Guide
Join StudySoup for FREE
Get Full Access to Math - Textbook Survival Guide
×
Reset your password