Given:
- \(D_1\) and \(D_2\) are ideal diodes (zero resistance in forward bias, infinite in reverse).
- Battery voltage = 10 V.
Since diodes conduct only in forward bias:
- Current flows through the diodes that are forward biased.
The two branches have resistors of 20 \(\Omega\) and 40 \(\Omega\) respectively in parallel.
Equivalent resistance, \(R_{eq}\) is:
\[
\frac{1}{R_{eq}} = \frac{1}{20} + \frac{1}{40} = \frac{2+1}{40} = \frac{3}{40} \implies R_{eq} = \frac{40}{3} \approx 13.33\, \Omega
\]
Current, \(i = \frac{V}{R_{eq}} = \frac{10}{13.33} = 0.75\, A\).
However, considering diode orientation in circuit and ideal diode behavior, only one diode will conduct effectively allowing current of 0.5 A through 20 \(\Omega\) branch. So, the effective current is 0.5 A.