Introduction to Algorithms
3rd Edition
ISBN: 9780262033848
Author: Thomas H. Cormen, Ronald L. Rivest, Charles E. Leiserson, Clifford Stein
Publisher: MIT Press
expand_more
expand_more
format_list_bulleted
Question
Chapter C.4, Problem 9E
Program Plan Intro
To prove that
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Prove that I(X; Y |Z) ≥ I(X; Y ) . Note: X, Y, and Z are random variables. X and Z are independent.
Consider a test of H0 : μ ≤ 100 versus H1 : μ > 100. Suppose that a sample of size 20 has a sample mean of X = 105. Determine the p-value of this outcome if the population standard deviation is known to equal (a) 5 (b) 10
Consider the same house rent prediction problem where you are supposed to predict price
of a house based on just its area. Suppose you have n samples with their respective areas,
x(1), x(2), ... , x(n), their true house rents y(1), y(2),..., y(n). Let's say, you train a linear regres-
sor that predicts f(x()) = 00 + 01x(e). The parameters 6o and 0, are scalars and are learned
by minimizing mean-squared-error loss with L2-regularization through gradient descent with
a learning rate a and the regularization strength constant A. Answer the following questions.
1. Express the loss function(L) in terms of x), y@), n, 0, 01, A.
2. Compute L
3. Compute
4. Write update rules for 6, and O1
Chapter C Solutions
Introduction to Algorithms
Ch. C.1 - Prob. 1ECh. C.1 - Prob. 2ECh. C.1 - Prob. 3ECh. C.1 - Prob. 4ECh. C.1 - Prob. 5ECh. C.1 - Prob. 6ECh. C.1 - Prob. 7ECh. C.1 - Prob. 8ECh. C.1 - Prob. 9ECh. C.1 - Prob. 10E
Ch. C.1 - Prob. 11ECh. C.1 - Prob. 12ECh. C.1 - Prob. 13ECh. C.1 - Prob. 14ECh. C.1 - Prob. 15ECh. C.2 - Prob. 1ECh. C.2 - Prob. 2ECh. C.2 - Prob. 3ECh. C.2 - Prob. 4ECh. C.2 - Prob. 5ECh. C.2 - Prob. 6ECh. C.2 - Prob. 7ECh. C.2 - Prob. 8ECh. C.2 - Prob. 9ECh. C.2 - Prob. 10ECh. C.3 - Prob. 1ECh. C.3 - Prob. 2ECh. C.3 - Prob. 3ECh. C.3 - Prob. 4ECh. C.3 - Prob. 5ECh. C.3 - Prob. 6ECh. C.3 - Prob. 7ECh. C.3 - Prob. 8ECh. C.3 - Prob. 9ECh. C.3 - Prob. 10ECh. C.4 - Prob. 1ECh. C.4 - Prob. 2ECh. C.4 - Prob. 3ECh. C.4 - Prob. 4ECh. C.4 - Prob. 5ECh. C.4 - Prob. 6ECh. C.4 - Prob. 7ECh. C.4 - Prob. 8ECh. C.4 - Prob. 9ECh. C.5 - Prob. 1ECh. C.5 - Prob. 2ECh. C.5 - Prob. 3ECh. C.5 - Prob. 4ECh. C.5 - Prob. 5ECh. C.5 - Prob. 6ECh. C.5 - Prob. 7ECh. C - Prob. 1P
Knowledge Booster
Similar questions
- ANY help would be greatly appreciated. From 1965 to 1974, in U.S. there were M= 17,857,857 male livebirths and F= 16,974,194 female livebirths. We model the number of male livebirth as a binomial distribution withparameterssize = M+F and prob = p. The following code computes the maximum likelihood estimator for p. male = 17857857 female = 16974194 ll <-function(p){dbinom(male, size = male+female, prob=p, log=TRUE) } ps <-seq(0.01, 0.99, by = 0.001) ll.ps <-ll(ps) plot(ps, ll.ps, type='l') phat <- ps[which.max(ll.ps)] abline(v = phat, col='blue') QUESTION: For this problem, can you give a theoretical formula for the maximum likelihood estimator,ˆp, usingMandF? (No need to compute the numerical value.)arrow_forwardA particular telephone number is used to receive both voice calls and fax messages. Suppose that 20% of the incoming calls involve fax messages, and consider a sample of 20 incoming calls. (Round your answers to three decimal places.) (a) What is the probability that at most 6 of the calls involve a fax message?(b) What is the probability that exactly 6 of the calls involve a fax message?(c) What is the probability that at least 6 of the calls involve a fax message?(d) What is the probability that more than 6 of the calls involve a fax message?arrow_forwardQuestion: Suppose there are n people in a group, each aware of a scandal no one else in the group knows about. These people communicate by telephone; when two people in the group talk, they share information about all scandals each knows about. For example, on the first call, two people share information, so by the end of the call, each of these people knows about two scandals. The gossip problem asks for G(n), the minimum number of telephone calls that are needed for all n people to learn about all the scandals. a). Find G(1), G(2), G(3), and G(4). b). Use mathematical induction to prove that G(n) 4. [Hint: In the inductive step, have a new person call a particular person at the start and at the end.] c). Prove that G(n)= 2n – 4 for n> 4.arrow_forward
- It is known that a natural law obeys the quadratic relationship y = ax“. What is the best line of the form y = px + q that can be used to model data and minimize Mean-Squared-Error if all of the data points are drawn uniformly at random from the domain [0,1]? r* ur, a,arrow_forwardConsider the same house rent prediction problem where you are supposed to predict price of a house based on just its area. Suppose you have n samples with their respective areas, x(¹), x(²),...,x(n), their true house rents y(¹), y(2),..., y(n). Let's say, you train a linear regres- sor that predicts f(x)) = 0 + 0₁x). The parameters, and 0₁ are scalars and are learned by minimizing mean-squared-error loss with L1-regularization through gradient descent with a learning rate a and the regularization strength constant A. Answer the following questions. 1. Express the loss function(L) in terms of x(i),y(i), n, 00, 01, X. 2. Compute L 200 ƏL 3. Compute 20₁ 4. Write update rules for 0o and 0₁ Hint: d|w| dw undefined -1 w>0 w=0 w <0arrow_forwardIn most of Europe and Asia annual automobile insurance is determined by the bonus malus system. Each policyholder is given a number (state) and the policy premium is determined as a function of this state. A policy holder's state changes from year to year in response to the number of claims made by the policy holder. Suppose the number of claims made by a particular policyholder in any given year, is a Poisson random variable with parameter A. Let. si(k) be the next state of a policyholder who was in state i in the previous year and who made k claims in that year. The following table is a simplified Bonus-Malus system having 4 states. Next state if Annual State O claims 1 claim 2 claims 3 or more claims Premium 1 200 3 4 250 1 3 4 4 400 2 4 4. 4 4 600 4 4 4 For A =2 A. Find the mean time to return to state 1 (if you start in state 1): (round to 2 decimals) B. Find the expected annual premium for a random person after it has been with the insurance company for a while: decimals) (round…arrow_forward
- 7. Let X be a random variable with expectation EX <∞o. Prove that Var(X) = E(X²) – E(X)².arrow_forwardStudents graduating Atlantis University are being administered a test to check their general competence level at the end of the study program. From a random sample of 100 students, 95 passed and 5 failed. We aim to construct a 95% confidence interval for the proportion p of students at Atlantis University who have achieved a satisfactory competence level after their studies. Answer the following questions: (a) The critical z-value for this problem (the z-value to be used) is z = (give the exact value to TWO decimal places N.xx) (b)The middle of the interval is %. (ROUND to the nearest integer) (c) The error margin is % (use one decimal only and give in terms of percentages).arrow_forwardGiven a table with student scores. Based on the scores in Programming and Probability, we have to find the scores in machine learning suing KNN with K=1, for given scores of a student in Programming= 17 and in probability=11 Score in Programing Score in Probability Score in Machine Learning 18 15 15 15 12 13 18 10 11 19 16 17 Select one: O a. None O b. 11 O c. 17 O d. 15 O e. 13arrow_forward
- Correct answer will be upvoted else Multiple Downvoted. Don't submit random answer. Computer science. Culinary specialist Monocarp has recently put n dishes into a broiler. He realizes that the I-th dish has its ideal cooking time equivalent to ti minutes. At any certain integer minute T Monocarp can put close to one dish out of the broiler. On the off chance that the I-th dish is put out at some moment T, its undesirable worth is |T−ti| — the outright contrast among T and ti. When the dish is out of the stove, it can't return in. Monocarp should put every one of the dishes out of the stove. What is the base all out unsavory worth Monocarp can acquire? Input The principal line contains a solitary integer q (1≤q≤200) — the number of testcases. Then, at that point, q testcases follow. The principal line of the testcase contains a solitary integer n (1≤n≤200) — the number of dishes in the broiler. The second line of the testcase contains n integers t1,t2,… ,tn…arrow_forwardSuppose that the grading of x University courses is as follows:• Each student can get grades between 0 and 100.• If the student's grade is less than 40, the student is informed that the course failed (Unsuccessful).• If the student's grade is higher than 40,o The difference between the student's current grade and the number that is a multiple of 5 higher than the closest to his / her grade is less than 3.If it is lower, the student's grade is equal to the 5 fold higher than the closest one.o If the difference is 3 or more than 3, no change is made in the grade of the student.In this context, the updated grades of the students are calculated according to the entered student gradesWrite the Java code showing.Solve this question in c ++ language.ü Define the section to be calculated as Java object ("Question1").ü Question1; Take the note string as input.public Question1 (int [] input)ü Print out the updated notes as a series after the calculation is madeo public int [] gradingStudents…arrow_forwardne. ta nown that the IQ scores of people in the United States have a normal distribution with mean 100 and standard deviation 15. If a person is selected at random, find the probability that the person's IQ score is less than 85.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Operations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks Cole
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole