In the arrangement shown diodes are ideal. Then current through the resistor
When terminal A is positive and B is negative, conduct and current flows from C to D. In the next half cycle, when A is negative and B is positive conduct and current flows from C to D.