logo

Crowdly

Browser

Add to Chrome

Pierre's microwave has keys to input reheating time, with possible positive time...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Pierre's microwave has keys to input reheating time, with possible positive times described by the set KK. For instance, we could have K=\{1,10,60\}K=\{1,10,60\}.

Pierre is wondering what the minimum number of keys to press to input the time tt. Each key can be pressed multiple times.

For example, the minimum number of keys to press for a time t=25t=25 is 77: pressing 1010 twice and pressing 11 five times.

In order to solve this problem, we decompose the problem into subproblems defined as 

minPresses[t]=minPresses[t]= {the minimum number of key presses required to input a time t using keys from KK}.

Give a recurrence relation for minPressesminPresses by giving all cases in the expression

 minPresses[t] = \begin{cases} \text{first case}\\ \dots\\ \text{last case},
\end{cases}

minPresses[t] = \begin{cases} \text{first case}\\ \dots\\ \text{last case},

\end{cases}

.

(Recall that a recurrence relation needs at least one base case and one general case.)

0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome