Problem Points Score Total 100

Similar documents
Problem Points Score Total 100

Problem Points Score Total 100

CS1800 Discrete Structures Spring 2018 February CS1800 Discrete Structures Midterm Version A

Week No. 06: Numbering Systems

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

CMSC 250 Spring 2016: Final Exam Review Questions Key

Math 230 Final Exam, Spring 2008

Page Points Score Total: 100

*EXAM 1 Answer key* EECS 203 Spring 2016

Page Points Score Total 100

Number Theory: Representations of Integers

1 Computing System 2. 2 Data Representation Number Systems 22

Discrete Structures, Final Exam

Exam in Discrete Mathematics

*EXAM 1* EECS 203 Spring 2016

Computer Organization I Test 1/Version 1 CMSC 2833 Autumn 2007

Math 230 Final Exam, Spring 2009

Problem Points Score Total 160

CSE 20. Final Review. CSE 20: Final Review

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M004: Blue) 6 December Points Possible

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

CS 455/555: Mathematical preliminaries

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M001: Green) 6 December Points Possible

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

SOLUTIONS. Math 130 Midterm Spring True-False: Circle T if the statement is always true. Otherwise circle F.

Practice Second Midterm Exam III

CS1800 Discrete Structures Final Version A

Page Points Score Total: 100

MATH 120 THIRD UNIT TEST

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

Math 430 Final Exam, Fall 2008

CMSC 330: Organization of Programming Languages

Multiple Choice Answers. MA 110 Precalculus Spring 2016 Exam 1 9 February Question

CS220/MATH320 Applied Discrete Math Fall 2018 Instructor: Marc Pomplun. Assignment #3. Sample Solutions

MATH 114 Fall 2004 Solutions to practice problems for Final Exam

1. Is the set {f a,b (x) = ax + b a Q and b Q} of all linear functions with rational coefficients countable or uncountable?

Hour Exam #1 Math 3 Oct. 20, 2010

Math 461 B/C, Spring 2009 Midterm Exam 1 Solutions and Comments

A Universal Turing Machine

Midterm Exam I for Math 110, Spring Solutions

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end.

CSC 125 :: Final Exam December 14, 2011

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

Math Exam 03 Fall 2016

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama

University of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz

Problem Point Value Points

17.1 Binary Codes Normal numbers we use are in base 10, which are called decimal numbers. Each digit can be 10 possible numbers: 0, 1, 2, 9.

Spring 2018 Exam 1 MARK BOX HAND IN PART NAME: PIN:

CS 121, Section 2. Week of September 16, 2013

HKUST. MATH1013 Calculus IB. Directions:

MA 110 Algebra and Trigonometry for Calculus Spring 2017 Exam 1 Tuesday, 7 February Multiple Choice Answers EXAMPLE A B C D E.

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

Fall 2018 Exam 1 NAME:

Math 1132 Practice Exam 1 Spring 2016

RYERSON UNIVERSITY DEPARTMENT OF MATHEMATICS

NAME (1 pt): SID (1 pt): TA (1 pt): Name of Neighbor to your left (1 pt): Name of Neighbor to your right (1 pt):

CS1800 Discrete Structures Fall 2016 Profs. Gold & Schnyder April 25, CS1800 Discrete Structures Final

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

Fall 2016 Exam 3 NAME: PIN:

Practice Exam 1 CIS/CSE 607, Spring 2009

Recursive Definitions

MA 320 Introductory Probability, Section 1 Spring 2017 Final Exam Practice May. 1, Exam Scores. Question Score Total. Name:

(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2

CSC Discrete Math I, Spring Relations

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

Math 151, Fall 2018 Common Exam 1 Version A

Outline. policies for the first part. with some potential answers... MCS 260 Lecture 10.0 Introduction to Computer Science Jan Verschelde, 9 July 2014

Welcome to MAT 137! Course website:

CSE 20 DISCRETE MATH. Winter

Understanding Computation

Spring 2017 Exam 2 NAME: PIN:

Read this before starting!

Prime Factorization and GCF. In my own words

Some. AWESOME Great Theoretical Ideas in Computer Science about Generating Functions Probability

Check that your exam contains 20 multiple-choice questions, numbered sequentially.

Recurrence Relations and Recursion: MATH 180

Exam 3 December 1, 2010

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama

HAND IN PART. Prof. Girardi Math 142 Spring Exam 3 PIN:

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH. Fall

University of Florida EEL 3701 Summer 2015 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Tuesday, 30 June 2015

Discrete Structures CRN Test 3 Version 1 CMSC 2123 Spring 2011

MATH 151, SPRING 2013 COMMON EXAM II - VERSION A. Print name (LAST, First): SECTION #: INSTRUCTOR: SEAT #:

CS1800 Discrete Structures Fall 2017 October, CS1800 Discrete Structures Midterm Version A

Computer Number Systems

PRINT. 4. Be sure to write your name, section and version letter of the exam on the Scantron form.

We say that the base of the decimal number system is ten, represented by the symbol

Read this before starting!

MATH 112 Final Exam, Spring Honor Statement

Page Points Score Total: 100

Section 1.2 Factors and Factor Operators

Test 2 - Answer Key Version A

Math 51 Midterm 1 July 6, 2016

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4

MATH 126 TEST 1 SAMPLE

CMSC 330: Organization of Programming Languages

Transcription:

Final Exam A. Miller Spring 2005 Math 240 0 Show all work. No books, no calculators, no cell phones, no pagers, no electronic devices of any kind. However you can bring to the exam one 8.5 by 11 cheat sheet with anything you want written or printed on both sides. Name Circle your Discussion Section: DIS 303 12:05p T B235 VAN VLECK DIS 304 12:05p R B235 VAN VLECK DIS 307 2:25p T B139 VAN VLECK DIS 308 2:25p R B309 VAN VLECK Problem Points Score 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 9 10 10 10 Total 100 Solutions will be posted shortly after the exam: www.math.wisc.edu/ miller/m240

Final Exam A. Miller Spring 2005 Math 240 1 1. (10 pts) Give examples of functions from the set of integers, Z = {0, 1, 1, 2, 2, 3, 3,...}, to the set of natural numbers, having the given properties. N = {1, 2, 3,...}, (a) f : Z N such that f is one-to-one and onto. (b) g : Z N such that g is onto, but not one-to-one. (c) h : Z N such that h is one-to-one, but not onto. (d) k : Z N such that k is neither one-to-one nor onto.

Final Exam A. Miller Spring 2005 Math 240 2 2. (10 pts) Convert the integer 111110101 from binary notation (base 2) to: (a) hexadecimal notation (base 16) (b) octal notation (base 8) (c) decimal notation (base 10)

Final Exam A. Miller Spring 2005 Math 240 3 3. (10 pts) In this problem matrix operations are done using the bit operations and instead of + and. 1 0 0 A = 1 0 1 0 1 0 (a) Find A [2] (b) A [3] (c) A A [2] A [3]

Final Exam A. Miller Spring 2005 Math 240 4 4. (10 pts) Given an integer a n if a n is even let a n+1 = a n /2, if a n is odd let a n+1 = 3a n + 1. The 3x + 1 conjecture states that given any positive integer a 0 there exists an integer n 0 such that a n = 1. Prove that this conjecture is true for a 0 = 17.

Final Exam A. Miller Spring 2005 Math 240 5 5. (10 pts) If A is an uncountable set and B is a countable set, must A \ B be uncountable? Prove it.

Final Exam A. Miller Spring 2005 Math 240 6 6. (10 pts) For w a string of symbols and i a positive integer let w i represent the concatenation of i copies of w. Prove using mathematical induction that len(w i ) = i len(w) where len(w) stands for the length of w.

Final Exam A. Miller Spring 2005 Math 240 7 7. (10 pts) In how many ways can a set of four letters be selected from the English alphabet assuming the following: (a) They are distinct and the order in which you select them counts. (b) They are distinct but the order in which you select them does not count. (c) They may not be distinct but the order in which you select them counts. (d) They may not be distinct and the order in which you select them does not count.

Final Exam A. Miller Spring 2005 Math 240 8 8. (10 pts) Draw a digraph which represents the binary relation: R = {(a, a), (b, b), (d, d), (a, b), (b, c), (c, a), (a, c)}

Final Exam A. Miller Spring 2005 Math 240 9 9. (10 pts) (a) Let the relation R on the set D of all differentiable functions from R to R consist of all pairs (f, g) such that f (x) = g (x) for all real numbers x. Prove that (D, R) is an equivalence relation. (b) Which functions are in the same equivalence class as the function f(x) = x3 3

Final Exam A. Miller Spring 2005 Math 240 10 10. (10 pts) How many rooted trees are there with the three vertices {a, b, c}? Draw them.

Final Exam A. Miller Spring 2005 Math 240 11 The following program was used to pick the problems on the test. I changed a few and dropped two. For example, instead of 2.3-17 I used problem 1.8-17. #! /usr/ucb/python import string import sys import random random.seed("harpo, Groucho, and Chico") f=open("hmwk1", r ) # input file lines=f.readlines() lines=lines[19:] problems=[] for line in lines: s=string.split(line) if len(s)>0: section=s.pop(0) prob=random.choice(s) problems.append(section+"-"+prob.rjust(2)) f=open("hmwk2", r ) # input file lines=f.readlines() lines=lines[32:] for line in lines: s=string.split(line) if len(s)>0: section=s.pop(0) prob=random.choice(s) problems.append(section+"-"+prob.rjust(2)) random.shuffle(problems) test=problems[0:8] f=open("hmwk3", r ) # input file lines=f.readlines() lines=lines[28:] problems=[] for line in lines: s=string.split(line) if len(s)>0: section=s.pop(0) prob=random.choice(s) problems.append(section+"-"+prob.rjust(2)) random.shuffle(problems) problems=problems[0:4]

Final Exam A. Miller Spring 2005 Math 240 12 for prob in problems: test.append(prob) test.sort() for prob in test: print prob OUTPUT: 2.3-17 2.5-3 2.7-31 3.1-41 3.2-33 3.4-41 3.6-5 4.3-15 7.3-27 7.5-11 7.6-53 9.1-5

Final Exam A. Miller Spring 2005 Math 240 13 Answers 6. Base: len(w 1 ) = len(w) = 1 len(w) Inductive step: Assume len(w i ) = i len(w). Then len(w i+1 ) = len(w i w) = len(w i ) + len(w) = i len(w) + len(w) = (i + 1) len(w) 7. (a) 26 25 24 23 (b) C(26, 4) (c) 26 4 (d) C(29, 4) 9. (b) { x3 3 + C : C R} 10. 9