Written Assignment 5 -- Due 9:30 a.m. Thursday, October 12
at the beginning of class
CS 3511 Fall Semester, 2006
15 Points
Topics: Integers, Algorithms, Applications
Reading assignment:
Sections 3.6, and 3.7 of Chapter 3
( = Sections 2.5, and 2.6 of Chapter 2 of the 5th Edition)
Written assignment:
- (3 points)
Exercise 14, Sec. 3.6 page 230
( = Exercise 14, Sec. 2.5 page 180 of 5th Edition):
Give a simple
procedure for converting from the octal expansion of an integer
to its binary expansion.
- (3 points)
Exercise 15, Sec. 3.6 page 230
( = Exercise 15, Sec. 2.5 page 180 of 5th Edition):
Convert (7345321)8 to its binary expansion and convert
(10 1011 1011)2 to its octal expansion.
- (3 points)
Exercise 23 parts b, c, and e (only), Sec. 3.6 page 230
( = Exercise 21 parts b, c, and e (only), Sec. 2.5 page 180 of 5th Edition):
Use the Euclidean algorithm to find
(b) gcd(111,201), (c) gcd(1001,1331), (d) gcd(1000,5040).
- (3 points)
Exercise 26, Sec. 3.6 page 230
( = Exercise 24, Sec. 2.5 page 180 of 5th Edition):
How many divisions are required to find gcd(34,55)
using the Euclidean algorithm?
- (3 points)
Exercise 48, Sec. 2.6 page 246
( = Exercise 48, Sec. 2.6 page 196 of 5th Edition):
Use the extended Euclidean algorithm to express
gcd(252,356) as a linear combination of 252 and 356.
Page URL: http://www.d.umn.edu
/~ddunham/cs3511f06/assignments/a5/assignment.html
Page Author: Doug Dunham
Last Modified: Monday, 02-Oct-2006 16:18:00 CDT
Comments to: ddunham@d.umn.edu