Hw06 - CS 70 Spring 2005 Discrete Mathematics for CS Clancy/Wagner HW 6 Due Thursday March 10 Coverage This assignment involves topics from the

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 70 Discrete Mathematics for CS Spring 2005 Clancy/Wagner HW 6 Due Thursday, March 10 Coverage: This assignment involves topics from the lectures of February 22 and 24 and March 1, and from Rosen sections 2.2, 2.4, 2.5, and pages 181-185 in section 2.6. Administrative reminders: We will accept only unformatted text files or PDF files for homework sub- mission. Include your name, login name, section number, and partner list in your submission. Give the command submit hw6 to submit your answers to this assignment. Also: It is time to switch partners! Homework exercises: 1. (14 pts.) Radix –2 Radix - 2 representation is analogous to radix 2 (binary) representation. An integer n is represented as d k d k - 1 ··· d 1 d 0 if n = d k ( - 2 ) k + d k - 1 ( - 2 ) k - 1 + ... d 1 ( - 2 ) 1 + d 0 ( - 2 ) 0 and all the d j are 0 or 1. (a) What’s the radix - 2 representation of 9? (b) Prove that every integer n > 0 can be represented in radix - 2. (c) Is the representation unique? That is, can every integer n > 0 be represented in exactly one way in radix - 2? Prove the claim, or display a counterexample. 2. (14 pts.)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/03/2011 for the course CS 70 taught by Professor Papadimitrou during the Fall '08 term at University of California, Berkeley.

Page1 / 2

Hw06 - CS 70 Spring 2005 Discrete Mathematics for CS Clancy/Wagner HW 6 Due Thursday March 10 Coverage This assignment involves topics from the

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online