Question

Consider the following scenario: There are three advertisers A, B, and C A bids on query...

Consider the following scenario:
There are three advertisers A, B, and C
A bids on query x, B bids on x and y, and C bids on x, y, and z
All have budgets of $3.

Given the following query stream:
x x x y y y z z z

What is the sequence of choices, assuming the worst case scenario, using the greedy algorithm?

C,C,C,B,B,B,A,A,A

A,A,A,B,B,B,C,C,C

C,B,A,C,B,C,_,_,_

C,C,C,B,B,B,_,_,_

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

A,A,A,B,B,B,C,C,C

Add a comment
Know the answer?
Add Answer to:
Consider the following scenario: There are three advertisers A, B, and C A bids on query...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • That tells how many swaps are done in the worst case given n elements Consider this modification ...

    solve 3 that tells how many swaps are done in the worst case given n elements Consider this modification of the partition algorithm. Randomly choose three potential pivots. Partition around the median of the three pivots 3. a) Write the pseudocode for this algorithm b) If this use the quicksort algorithm, what is the running time for the worst-case scenario? When will this happen? c) Why is this algorithm better than the regular quicksort algorithm? 4. Give the pseudocode of...

  • For [Select], there are three choices: worse than, the same as, better than Answer the following...

    For [Select], there are three choices: worse than, the same as, better than Answer the following questions about the computational properties of divide-and-conquer sorting algorithms, based on tight big-Oh characterizations of the asymptotic growth rate of the functions for the running time or space size, depending on the question. Assume that the input sequence is given as a list, and the output sequence is also a list. Also assume a general implementation of the sorting algorithms, as opposed to an...

  • Consider the following frequent 3-itemsets: {a, b, c}, {b, c, d}, {a, b, d}, {a, c,...

    Consider the following frequent 3-itemsets: {a, b, c}, {b, c, d}, {a, b, d}, {a, c, d}, {a, d, e}, {a, c, e} Use the Fk−1 x F1 method and the Fk−1 x Fk−1 method to answer each part. a. List all the 4-itemsets that will be generated by Fk−1 x F1 candidate generation method and the 4-itemsets that will be selected after the pruning step of the Apriori algorithm. b. List all the 4-itemsets that will be generated by...

  • The DFT is a sampled version of the DTFT of a finite-length sequence; i.e., N-1 (P9.25-1) Furthermore, an FFT algorithm...

    The DFT is a sampled version of the DTFT of a finite-length sequence; i.e., N-1 (P9.25-1) Furthermore, an FFT algorithm is an efficient way to compute the values X Now consider a finite-length sequence xin] whose length is N samples.We want to evaluate X(z) the z-transform of the finite-length sequence, at the following points in the z-plane where ris a positive number. We have available an FFT algorithm (a) Plot the points z in the z-plane for the case N-8...

  • Consider the following scenario. Individuals that have negative Z score values on variable X also have...

    Consider the following scenario. Individuals that have negative Z score values on variable X also have negative Z score values on variable Y; and individuals that have positive Z score values on variable X also have positive Z score values on variable Y. Which type of correlation would you expect to find, given this scenario? Negative correlation coefficient Zero correlation coefficient Positive correlation coefficient

  • need the answer to b not a. thanks! 2. (40 pts) Let A, B, and C be three strings each n characters long. We want t...

    need the answer to b not a. thanks! 2. (40 pts) Let A, B, and C be three strings each n characters long. We want to compute the longest subsequence that is common to all three strings. (a) Let us first consider the following greedy algorithm for this problem. Find the longest common subsequence between any pair of strings, namely, LCS(A, B). LCS(B,C), LCS(A, C). Then, find the longest common subsequence between this LCS and the 3rd string. That is,...

  • 2. (40 pts) Let A, B, and C be three strings each n characters long. We want to compute the longest subsequence that is...

    2. (40 pts) Let A, B, and C be three strings each n characters long. We want to compute the longest subsequence that is common to all three strings. (a) Let us first consider the following greedy algorithm for this problem. Find the longest common subsequence between any pair of strings, namely, LCS(A, B) LCS(B, C), LCS(A, C). Then, find the longest common subsequence between this LCS and the 3rd string. That is, supposing that the longest common pair wise...

  • The DFT is a sampled version of the DTFT of a finite-length sequence; i.e., N-1 (P9.25-1)...

    The DFT is a sampled version of the DTFT of a finite-length sequence; i.e., N-1 (P9.25-1) Furthermore, an FFT algorithm is an efficient way to compute the values X Now consider a finite-length sequence xin] whose length is N samples.We want to evaluate X(z) the z-transform of the finite-length sequence, at the following points in the z-plane where ris a positive number. We have available an FFT algorithm (a) Plot the points z in the z-plane for the case N-8...

  • 2. (40 pts) Let A, B, and C be three strings each n characters long. We want to compute the longest subsequence th...

    2. (40 pts) Let A, B, and C be three strings each n characters long. We want to compute the longest subsequence that is common to all three strings. (a) Let us first consider the following greedy algorithm for this problem. Find the longest common subsequence between any pair of strings, namely, LCS(A, B). LCS(B,C), LCS(A, C). Then, find the longest common subsequence between this LCS and the 3rd string. That is, supposing that the longest common pair wise subsequence...

  • Need the following answer: Select all the statements below which are TRUE To show that a...

    Need the following answer: Select all the statements below which are TRUE To show that a greedy algorithm always yields an optimal solution, we need to prove the greedy-choice property We do not need to prove the optimal substructure property TREE-INSERT(T.Z.) is the insert operation for Binary Search Trees (BST) TREE-INSERT(T.Z) has the worst -case running time (lgn). where n is the number of nodes in the tree Let G be an undirected graph In the adjacency- list representation of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT