Discrete Mathematics with Graph Theory (3rd Edition) 224

# Discrete Mathematics with Graph Theory (3rd Edition) 224 -...

This preview shows page 1. Sign up to view the full content.

222 Solutions to Exercises Exercises 8.2 1. [BB] Let addition be the basic operation. We need n subtractions, n squarings (each equivalent to two basic operations), n - 1 additions, and one square root (the equivalent of 20 basic operations). Hence, f(n) = n + 2n + n -1 + 20 = 4n + 19. 2. The multiplication of a = (a n -Ia n -2 ... alao)lO by the single digit b requires initially the multiplica- tion of band ao, one operation. Then we multiply b and al and perhaps add a carry from the first step. Since two single-digit additions may be needed in this carry (e.g. 89 x 7), at most three operations are required in the multiplication of band al and, similarly, in the multiplication of b and each ai, i ;:::: 1. An upper bound for the total number of operations required is 1 + 3(n - 1) = 3n - 2. 3. [BB] Consider the division of a number a, which has at most two digits, by a single-digit number b, where a < lOb. Since the quotient q has just one digit, the division counts as one operation, the product qb counts as another, and since a - qb < b, the difference a - qb has just a single digit, so the subtraction requires a third operation.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern