Describe scenarios in which the first method is better than the second and vice versa.

1. Failure of k-fold cross validation Consider a case in that the label is chosen at random according to P[= 1] = P[= 0] = 1/2. Consider a learning algorithm that outputs the constant predictor h(x)= 1 if the parity of the labels on the training set is 1 and otherwise the algorithm outputs the constant predictor h(x)=0. Prove that the difference between the leave-one-out estimate and the true error in such a case is always 1/2.

2. LetH1, . . .,Hk be hypothesis classes. Suppose you are given i.i.d. training examples and you would like to learn the class = ∪ki =1 Hi . Consider two alternative approaches: _ Learn on the examples using the ERM rule _ Divide the examples into a training set of size (1 − α)and a validation set of size αm, for some α ∈ (0,1). Then, apply the approach of model selection using validation. That is, first train each class Hi on the (1−α)training examples using the ERMrule with respect toHi, and let ˆ1, . . .,ˆhk be the resulting\ hypotheses. Second, apply the ERM rule with respect to the finite class {ˆ1, . . .,ˆhk} on the αvalidation examples. Describe scenarios in which the first method is better than the second and vice versa.

find the cost of your paper

Suggest a modification of the binary search algorithm that emulates this strategy for a list of names.

1. Suppose that a list contains the values 20 44 48 55 62 66 74 88 93 99 at index positions 0 through 9. Trace the values of the variables….

Explain why insertion sort works well on partially sorted lists.

1. Which configuration of data in a list causes the smallest number of exchanges in a selection sort? Which configuration of data causes the largest number of exchanges? 2. Explain….

Draw a class diagram that shows the relationships among the classes in this new version of the system

Jack decides to rework the banking system, which already includes the classes BankView, Bank, SavingsAccount, and RestrictedSavingsAccount. He wants to add another class for checking accounts. He sees that savings….