COS 341: Discrete Mathematics

Similar documents
COS 341: Discrete Mathematics

Midterm Exam Information Theory Fall Midterm Exam. Time: 09:10 12:10 11/23, 2016

Course Staff. Textbook

ORF 363/COS 323 Final Exam, Fall 2016

ORF 363/COS 323 Final Exam, Fall 2015

ORF 363/COS 323 Final Exam, Fall 2018

Math 3B: Lecture 1. Noah White. September 23, 2016

Physics 141 Course Information

Physics 141 Course Information

Last/Family Name First/Given Name Seat # Exam # Failure to follow the instructions below will constitute a breach of the Honor Code:

Last/Family Name First/Given Name Seat # Exam # Failure to follow the instructions below will constitute a breach of the Honor Code:

Spring /11/2009

CS483 Design and Analysis of Algorithms

CS173 Lecture B, November 3, 2015

Today s Menu. Administrativia Two Problems Cutting a Pizza Lighting Rooms

Modern Physics (PHY 371)

AS 102 The Astronomical Universe (Spring 2010) Lectures: TR 11:00 am 12:30 pm, CAS Room 316 Course web page:

MA Exam 1 Fall 2015 VERSION 01

HONORS LINEAR ALGEBRA (MATH V 2020) SPRING 2013

CS103 Handout 08 Spring 2012 April 20, 2012 Problem Set 3

Final Exam Practice Problems Part II: Sequences and Series Math 1C: Calculus III

CS 581: Introduction to the Theory of Computation! Lecture 1!

Welcome to Physics 161 Elements of Physics Fall 2018, Sept 4. Wim Kloet

Prerequisite: Math 40 or Math 41B with a minimum grade of C, or the equivalent.

NOTES ON OCT 4, 2012

ORF 363/COS 323 Final Exam, Fall 2017

ECE 564/645 - Digital Communications, Spring 2018 Midterm Exam #1 March 22nd, 7:00-9:00pm Marston 220

Math 41: Calculus First Exam October 13, 2009

Math 3B: Lecture 1. Noah White. September 29, 2017

(Note that these points are to give a relative sense of the weights on the final exam and have no bearing on extra credit points)

Midterm 1. Name: TA: U.C. Berkeley CS70 : Algorithms Midterm 1 Lecturers: Anant Sahai & Christos Papadimitriou October 15, 2008

Practice Second Midterm Exam III

Chemistry 883 Computational Quantum Chemistry

Please turn cell phones off

1.1 Administrative Stuff

Preparing for the CS 173 (A) Fall 2018 Midterm 1

Name. University of Maryland Department of Physics

Section Instructors: by now you should be scheduled into one of the following Sections:

Physics 321 Theoretical Mechanics I. University of Arizona Fall 2004 Prof. Erich W. Varnes

Leon, Chap. 1. Chap. 2

University of Illinois at Chicago Department of Computer Science. Final Examination. CS 151 Mathematical Foundations of Computer Science Fall 2012

NAME... Soc. Sec. #... Remote Location... (if on campus write campus) FINAL EXAM EE568 KUMAR. Sp ' 00

PHYS304 Quantum Physics II (2005) Unit Outline

*EXAM 1* EECS 203 Spring 2016

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

1S11: Calculus for students in Science

10. The GNFA method is used to show that

CS103 Handout 12 Winter February 4, 2013 Practice Midterm Exam

Fall 2016 Test 1 with Solutions

MCS 256 Discrete Calculus and Probability Exam 5: Final Examination 22 May 2007

PH 610/710-2A: Advanced Classical Mechanics I. Fall Semester 2007

PHY General Physics II

Algebra 2 CP Semester 1 PRACTICE Exam

Math , Fall 2014 TuTh 12:30pm - 1:45pm MTH 0303 Dr. M. Machedon. Office: Math Office Hour: Tuesdays and

PHYSICS 564 Introduction to Particle Physics I

State and Finite State Machines

Astro 32 - Galactic and Extragalactic Astrophysics/Spring 2016

CSE 355 Test 2, Fall 2016

18733: Applied Cryptography Anupam Datta (CMU) Course Overview

SOLUTIONS. Math 110 Quiz 3 (Sections )

Wednesday, 10 September 2008

AMSC/MATH 673, CLASSICAL METHODS IN PDE, FALL Required text: Evans, Partial Differential Equations second edition

Outline. Wednesday, 10 September Schedule. Welcome to MA211. MA211 : Calculus, Part 1 Lecture 2: Sets and Functions

ELECTROMAGNETIC THEORY

MA EXAM 3 INSTRUCTIONS VERSION 01 April 17, Section # and recitation time

HEAT AND THERMODYNAMICS PHY 522 Fall, 2010

MA/OR/ST 706: Nonlinear Programming Midterm Exam Instructor: Dr. Kartik Sivaramakrishnan INSTRUCTIONS

Syllabus, Math 343 Linear Algebra. Summer 2005

State & Finite State Machines

AS102 -The Astronomical Universe. The boring details. AS102 - Major Topics. Day Labs - Rooms B4 & 606. Where are we (earth, sun) in the universe?

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

Menu. Lecture 2: Orders of Growth. Predicting Running Time. Order Notation. Predicting Program Properties

Math 3B: Lecture 11. Noah White. October 25, 2017

STATISTICAL AND THERMAL PHYSICS

Stat 406: Algorithms for classification and prediction. Lecture 1: Introduction. Kevin Murphy. Mon 7 January,

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Ph 1a Fall General Information

Physics 435 and 535 Fall 2016 Gravitational Physics

ECS 189A Final Cryptography Spring 2011

Calculus (Math 1A) Lecture 1

AE 200 Engineering Analysis and Control of Aerospace Systems

Spring 2018 Exam 2 MARK BOX HAND IN PART NAME: PIN: INSTRUCTIONS

Spring /07/2017

A Note on Turing Machine Design

Page Points Score Total: 100

Introduction. Outline. EE3321 Electromagnetic Field Theory. Welcome! About this class Rules and syllabus Let s get started! 9/19/2018. E t.

Math 1: Calculus with Algebra Midterm 2 Thursday, October 29. Circle your section number: 1 Freund 2 DeFord

ECE 4800 Fall 2011: Electromagnetic Fields and Waves. Credits: 4 Office Hours: M 6-7:30PM, Th 2-3:30, and by appointment

Name: ID: Rec: Question: Total. Points:

Linear algebra and differential equations (Math 54): Lecture 10

Math 200D - Linear Algebra Fall Term 2017 Course Description

Math 299 Supplement: Modular Arithmetic Nov 8, 2013

MA EXAM 1 Green February 8, You must use a #2 pencil on the mark sense sheet (answer sheet).

Chemistry Physical Chemistry I Fall 2017

Calculus, Series and Differential Equations

Math 19 Practice Exam 2B, Winter 2011

Math 116 Second Midterm November 13, 2017

CSE 421 Algorithms. Richard Anderson Autumn 2015 Lecture 1

ECE 486 Control Systems

Math 42: Fall 2015 Midterm 2 November 3, 2015

Transcription:

COS 341: Discrete Mathematics Midterm Exam Fall 2006 Print your name General directions: This exam is due on Monday, November 13 at 4:30pm. Late exams will not be accepted. Exams must be submitted in hard copy to my office, room 407 of the Computer Science Building. (If I am not around, you can slide your exam under my door.) Please attach this cover page as well as the following page with the grading table (preferably printed back-to-back) when you turn in your exam, and be sure to sign the pledge below. During the exam, you may not collaborate or discuss the exam or any course material with fellow classmates, friends, TA s or anyone else. Of course, you can ask me to clarify specific questions if they are unclear or ambiguous. During the exam, you may use only the following materials: 1. your own lecture notes; 2. the Lehman & Leighton notes; 3. other miscellaneous materials that may have been distributed, such as homeworks, precept problem sets, or email help messages sent by the course staff. In addition, in case you need to review relevant material covered in MAT 103/104, the prerequisites for this course, you may use Karl s Calculus Tutor at www.karlscalculus.org, which includes such topics as factoring polynomials (in Prependix C), limits (Chapter 2), and the method of partial fractions (Section 11.7). Alternatively, you can use another standard single-variable calculus textbook; if you do, please indicate on your exam which book you are using. (Let me know if you are aware of a better on-line calculus resource.) Other than what is listed above, you may not use any other materials, including books, articles, materials from previous years or other courses, or any materials taken from the web. On all of the questions below, unless indicated otherwise, be sure to show your work and justify all your answers. As on the homeworks, this means to give an explanation of why your answers are correct and legitimate. In some cases, a proof is called for, a more stringent requirement demanding a complete, rigorous, formal, logical argument. In general, the only facts, lemmas, theorems, etc. that can be used without proof are the ones provided in lecture or the Lehman & Leighton notes. The grading criteria will be similar to what is described for homeworks on the course Assignments web page. Approximate point values are given in brackets. Good luck! Honor pledge: I pledge my honor that I have not violated the Honor Code during this examination. Please write the pledge in full and sign:

Please turn in this page, but do not write on it for grader use only. 1 / 10 2 a / 10 b / 2 3 a / 10 b / 3 4 a / 5 b / 5 c / 5 5 a / 7 b / 6 TOTAL: / 63 2

1. [10] The United States Senate has 100 seats, two for each of the 50 states. Senators are elected to six-year terms, with roughly a third of the senate seats coming up for election every two years. Thus, each senate seat is assigned to one of the following three election cycles: A:...,1994,2000,2006,2012,... B:...,1996,2002,2008, 2014,... C:...,1998,2004,2010, 2016,... where each list indicates the years in which that seat comes up for election. For instance, New Jersey s two senate seats happen to be on election cycles A and B, which means one of the two senate seats (the one on cycle A) is up for election this year, and the other seat (on cycle B) will next be up for election in 2008. Moreover, the same state will never have both its senate seats up for election in the same year; for instance, New Jersey cannot have both its seats assigned to cycle B. To summarize, in assigning senate seats to election cycles, the following constraints must be satisfied: each of the 50 states is assigned two seats; every seat must be assigned to one of the six-year-term election cycles above; no state can have both seats assigned to the same election cycle; each election cycle must have either 33 or 34 seats assigned to it. Note that the two senate seats of any one state are indistinguishable. For instance, New Jersey s two seats, for our purposes, are identical, so that assigning one seat to cycle A and the other to cycle B, is exactly the same as assigning one to cycle B and the other to A. Given these constraints, exactly how many ways are there to assign senate seats to the three election cycles? Your final answer can involve factorials and binomial coefficients. 3

2. Let H n denote the n-th harmonic number. a. [10] Let g(n) = 1 n + 1 n H i. i=1 Give an exact closed form expression for g(n). Your answer may itself involve harmonic numbers. Prove the correctness of your answer. b. [2] For which of the following choices of f(n), if any, is it the case that g(n) = θ(f(n))? n, log log n, n log n, (log n) 2, n 2, log n, n/log n, 2 n Briefly justify your answer. 3. Consider the following code for sending messages over the five-letter alphabet a,b,c,d,e: a = 00 b = 01 c = 10 d = 110 e = 111. For instance, the message ebbc would be encoded by the 9-bit binary string 111010110. (It can be verified that an encoded binary message produced in this way can always be uniquely decoded back into the original message over the five-letter alphabet. You do not need to prove this fact, but can take it as given.) As a further example, using 5-bit binary strings, there are exactly 12 complete messages that can be encoded, namely: ad = 00110 ae = 00111 bd = 01110 be = 01111 cd = 10110 ce = 10111 da = 11000 ea = 11100 db = 11001 eb = 11101 dc = 11010 ec = 11110 a. [10] In general, exactly how many complete messages can be encoded using n-bit binary strings, for n 1? Give a closed form expression. b. [3] As n becomes very large, approximately what fraction of all possible n-bit binary strings correspond to actual complete messages under this code? Briefly justify your answer. 4

4. a. [5] Let B(x) be the generating function for some sequence b 0,b 1,b 2,.... Let n c n = b 0 + b 1 + + b n = b i, and let C(x) be the generating function for this sequence c 0,c 1,c 2,.... Find an exact closed form expression for C(x) in terms of x and B(x). b. [5] Let G(x) be the generating function for some sequence g 0,g 1,g 2,.... Let f n be defined by the recurrence: f 0 = g 0 f n n 1 = g n + f i (n 1), and let F(x) be the generating function for this sequence f 0,f 1,f 2,.... Find an exact closed form expression for F(x) in terms of x and G(x). c. [5] Suppose in the last part that g n = ( 1) n. Use your answer to the last part to derive an exact closed form expression for f n in terms of n. 5. Suppose the Munsters are giving out k kinds of candy on Halloween, and that each child is allowed to choose at most r pieces. a. [7] By considering the number of possible combinations of candy that can be selected, give a combinatorial proof that ( ) ( ) r i + k 1 r + k =. k 1 k b. [6] Reprove this identity directly using induction and algebraic manipulation. 5