Show that Algorithm 4 uses O(q log a) bit operations,

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

Problem 59E Chapter 4.2

Discrete Mathematics and Its Applications | 7th Edition

  • 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 310 Reviews
15
5
Problem 59E

Show that Algorithm 4 uses O(q log a) bit operations, assuming that a > d.

Step-by-Step Solution:

Solution:Step 1:The answer to this question we have to show that the number of bit operations used by algorithm is O(q loga).Step 2:In Given algorithm:The most time consuming part of the algorithm is below while loop.Procedure division algorithm (a: integer, d: positive integer)q :=0r := While r r := r-dq := q+1If a < 0 and r >0 thenr := d-rq := -(q+1)Return (q,r) {q =a div d is the quotient , r = a mod d is the remainder}Step 3:In this algorithm, only time-consuming part is:While r r := r-dq := q+1End while

Step 3 of 3

Chapter 4.2, Problem 59E is Solved
Textbook: Discrete Mathematics and Its Applications
Edition: 7th
Author: Kenneth Rosen
ISBN: 9780073383095

The answer to “Show that Algorithm 4 uses O(q log a) bit operations, assuming that a > d.” is broken down into a number of easy to follow steps, and 15 words. Since the solution to 59E from 4.2 chapter was answered, more than 242 students have viewed the full step-by-step answer. This textbook survival guide was created for the textbook: Discrete Mathematics and Its Applications, edition: 7th. Discrete Mathematics and Its Applications was written by and is associated to the ISBN: 9780073383095. This full solution covers the following key subjects: Algorithm, assuming, bit, log, operations. This expansive textbook survival guide covers 101 chapters, and 4221 solutions. The full step-by-step solution to problem: 59E from chapter: 4.2 was answered by , our top Math solution expert on 06/21/17, 07:45AM.

Unlock Textbook Solution

Enter your email below to unlock your verified solution to:

Show that Algorithm 4 uses O(q log a) bit operations,

×
Log in to StudySoup
Get Full Access to Discrete Mathematics And Its Applications - 7th Edition - Chapter 4.2 - Problem 59e

Forgot password? Reset password here

Join StudySoup for FREE
Get Full Access to Discrete Mathematics And Its Applications - 7th Edition - Chapter 4.2 - Problem 59e
Join with Email
Already have an account? Login here
Reset your password

I don't want to reset my password

Need help? Contact support

Need an Account? Is not associated with an account
Sign up
We're here to help

Having trouble accessing your account? Let us help you, contact support at +1(510) 944-1054 or support@studysoup.com

Got it, thanks!
Password Reset Request Sent An email has been sent to the email address associated to your account. Follow the link in the email to reset your password. If you're having trouble finding our email please check your spam folder
Got it, thanks!
Already have an Account? Is already in use
Log in
Incorrect Password The password used to log in with this account is incorrect
Try Again

Forgot password? Reset it here