Step 1: Analyze the graph and find the minimum weight. The graph has 7 edges with weights: \(2, 2, 2, 3, 3, 3, 1\). To construct a minimum spanning tree (MST), the sum of edge weights must be minimized.
Step 2: Apply Kruskal's algorithm. Using Kruskal's algorithm: Select the edge with weight \(1\) (unique choice). Choose three edges of weight \(2\). These edges form a cycle, allowing multiple choices. Choose one edge of weight \(3\) to complete the MST.
Step 3: Count the distinct combinations. There are \(\binom{3}{2} = 3\) ways to choose two edges of weight \(2\). For each choice, there are \(3\) ways to select one edge of weight \(3\). The total number of distinct MSTs is: \[ 3 \times 3 = 9. \]
Final Answer: \[ \boxed{9} \]
Given the following syntax directed translation rules:
Rule 1: \( R \to AB \) { \( B.i = R.i - 1 \); \( A.i = B.i \); \( R.i = A.i + 1 \); }
Rule 2: \( P \to CD \) { \( P.i = C.i + D.i \); \( D.i = C.i + 2 \); }
Rule 3: \( Q \to EF \) { \( Q.i = E.i + F.i \); }
Which ONE is the CORRECT option among the following?
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).