Step 1: Compute optimal revenue for length 7.
We check all possible partitions of 7:
\[
7,\; 6+1,\; 5+2,\; 4+3,\; 3+2+2,\; \text{etc.}
\]
Their revenues are:
\[
p[7]=18, p[6]+p[1]=17+1=18,
\]
\[
p[5]+p[2]=10+5=15, p[4]+p[3]=9+8=17,
\]
\[
p[3]+p[2]+p[2]=8+5+5=18.
\]
Step 2: Identify maximum value.
The maximum obtainable revenue is \(18\). Hence, \(R_7 = 18\), and statement (A) is correct.
Step 3: Count number of optimal solutions.
The value \(18\) is obtained by three different cuts:
\[
7, 6+1, 3+2+2.
\]
Hence, statement (C) is correct.
Step 4: Eliminate incorrect options.
Statement (B) is incorrect since revenue 19 is not achievable.
Statement (D) is incorrect because \(3+2+2\) uses three pieces and achieves \(R_7\).
In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ______________. {(Answer in integer)}
Consider the following C code segment:
int x = 126, y = 105;
do {
if (x > y)
x = x - y;
else
y = y - x;
} while (x != y);
printf("%d", x);
The output of the given C code segment is ____________. (Answer in integer)
The following two signed 2’s complement numbers (multiplicand \( M \) and multiplier \( Q \)) are being multiplied using Booth’s algorithm:
| Multiplicand (\( M \)) | Multiplier (\( Q \)) |
|---|---|
| 1100 1101 1110 1101 | 1010 0100 1010 1010 |
The total number of addition and subtraction operations to be performed is __________. (Answer in integer)
The maximum value of \(x\) such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is __________ (answer in integer).
Consider the following C program
The value printed by the given C program is __________ (Answer in integer).