Concept:
According to the Hardy--Schulze rule, the coagulating power of an electrolyte depends upon the valency of the ion carrying charge opposite to that of the colloidal particles. Greater the valency of the active ion, greater is its coagulating power.
CdS sol is negatively charged; therefore, cations act as the coagulating ions.
Step 1: Identify the active ions.
The cations supplied by the electrolytes are:
\[
K^+,\quad Ca^{2+},\quad Na^+,\quad Al^{3+}
\]
Since CdS sol carries negative charge, these positive ions neutralize the colloidal particles.
Step 2: Compare coagulating powers using valency.
According to the Hardy--Schulze rule:
\[
Al^{3+} > Ca^{2+} > Na^+ = K^+
\]
Thus, \(Al^{3+}\) possesses the highest coagulating power.
Hence, the most effective electrolyte is:
\[
\boxed{AlCl_3}
\]