

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Discrete Structures; Subject: Computer Science; University: University of Maryland; Term: Unknown 2007;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CMSC 250 – Jerry Alan Fails Student: __________________ Due: Tuesday, July 10, 2007 ID #: __________________
HW #10 Due: Tuesday, July 10, 2007 Page 1 of 2
You must work alone on your homework, and homework must be written legibly , single-sided on your own lined paper, or typed , with the answers clearly labeled and in the sequential order as assigned. You must write your name and university ID number in the upper right-hand corner of your homework. Staple all pages together and be sure that your name appears on every sheet.
100 students are majoring in CS, Math, and/or Engineering 20 CS students are also engineering majors, but are not Math majors 10 CS students are also math majors students 40 students are CS majors only 15 students are majoring in both Math and Engineering 25 students are math majors 5 students are majoring in all three
(a) (2 points) How many CS majors are there? (b) (2 points) How many Engineering students are there? (c) (2 points) How many students are only majoring in Engineering? (d) (4 points) Draw and label a Venn diagram indicating how many students are in each subset.
(a) How many integers from 1 through 100,000 contain the digit 6 exactly once? (b) How many integers from 1 through 100,000 contain the digit 6 at least once? (c) If an integer is chosen at random from 1 through 100,000, what is the probability that it contains two or more occurrences of the digit 6?
(a) How many distinguishable ways can the letters of the word MILLIMICRON be arranged in order? (b) How many distinguishable orderings of the letters of MILLIMICRON begin with M and end with N. (c) How many distinguishable orderings of the letters of MILLIMICRON contain the letters CR next to each other in order and also the letters ON next to each other in order?
CMSC 250 – Jerry Alan Fails Student: __________________ Due: Tuesday, July 10, 2007 ID #: __________________
HW #10 Due: Tuesday, July 10, 2007 Page 2 of 2
(a) How many different PINs are represented by the same sequence of keys as 5031? (b) At an automatic teller machine, each PIN corresponds to a four-digit numeric sequence. For instance, TWJM corresponds to 8956. How many numeric sequences contain no repeated digit?
(a) (4 points) How many different samples can be chosen? (b) (4 points) How many samples will contain at least one defective board? (c) (4 points) What is the probability that a randomly chosen sample of five contains at least one defective board?
(a) How many such strings contain at least one pair of adjacent characters that are the same? (b) If a string of length ten over { a , b , c , d } is chosen at random, what is the probability that it contains at least one pair of adjacent characters that are the same?