1. (5) Suppose we have a set of small wooden blocks showing the 26 letters of the English alphabe...
8388d535108828583a1216ed9f1 /Downloads/Counting%20MMs%20Activity.pdf Counting M&Ms Open a bag (any size) of M&M candies. Make a list of all of the colors represented (dark brown, light brown, yellow, etc.). Next to each color listed, write the number of candies in the bag that are that color (example: yellow, 4; light brown, 7). Be sure to save this list for later. 1. How many M&Ms were there all together? If we put all the candies back into the bag and select one from...
5. A hacker is trying to guess a password. They have worked out that the password has length 8, being a mix of 1 uppercase letter (from {A. . . . ,7), 5 lowercase letters (from {a, . . . ,:) and 2 digits (from 10,...,91). They do not know in which order these symbols occur in the password. [In this question, answers may be given as a product of integers, without evaluating further.] a) How many passwords fit this...
1. We roll two fair 6-sided dice. Compute the probabilities of the following events. (a) The sum is at most 6. (b) The sum is more than 6. (c) The sum is at most 6 and at least one die is a 4. 2. Consider the letters a,b,c. Suppose we draw 2 of the letters at random (allowing for repetition). Assume order matters. That is, ab is not the same as ba: Let A : The 2 letters are distinct....
(5 p) Two ants move along a rectangular mesh at a pace of 1 block per timeslice. The two ants start towards each other simultaneously, one from the origin, and the other from (12, 14). They bump into each other after 13 timeslices, earliest possible, at (7, 6). In how many different ways can that happen? 3. (Bump in Manhattan, X blocks East, Y blocks North) (5 p) 5. One shuffles at random the letters in RAZZMATAZZ. Find the probability...
5. So far in our linear modeling, we have assumed that Ylx ~ N(Ao +Ax, σ2); that is, there is a normal distribution of common variance around the regression line. Here, we change this up! Suppose that X~Unif (0, 1) and that for a given a, we know Y~N(x, a2). (Here, the regression line is 0 1r and the variance around the regression grows as a grows.) a. In R, figure out how to generate 1000 data points that follow...
5. So far in our linear modeling, we have assumed that Ylz ~ NA,+Az,σ2); that is, there is a normal distribution of common variance around the regression line. Here, we change this up! Suppose that X~Unif(0, 1) and that for a given r, we know YlN(,22). (Here, the regression lne is 01z and the variance around the regression grows as r grows.) a. In R, figure out how to generate 1000 data points that follow this model and plot them....
C++. Need some help getting started. We will also have the following two functions: 1. A mutate function that randomly modifies a chromosome. 2. A crossover function that takes two chromosomes and splits each one at the same spot, then combines them together. Our genetic algorithm works by iterating over generations of chromosomes via the following process: 1. Generate random population. 2. Until we get an answer that is good enough, do the next steps in a loop: (a) Do...
discrete math 1. Suppose that three friends, all heavy smokers, each have a 50-50 chance of developing lung cancer (a) Tracking whether each of the friends develops hung cancer, write down the sample space by listing its elements. Be clear about any notation that you choose to use. (b) What is the probability that exactly one of the friends develops lung cancer? (c) What is the probability that at least two of the friends develop lung cancer? 2. Six people...
Recursion and Trees Application – Building a Word Index Make sure you have read and understood · lesson modules week 10 and 11 · chapters 9 and 10 of our text · module - Lab Homework Requirements before submitting this assignment. Hand in only one program, please. Background: In many applications, the composition of a collection of data items changes over time. Not only are new data items added and existing ones removed, but data items may be duplicated. A list data structure...
Need help with schematics for blocks 3, 4 and 5!!!!!! Include all schematics and wiring along with the component values and how you acquired them. Explain how each block functions and label any figures. Need schematics for blocks 3, 4 and 5!!!!!! Goal For your final project you will be asked to design and assemble a system in which you will input a stereo audio signal, mix the channels into a single mono signal, amplify the signal, filter it to...