Rocket propulsion in space operates on the principle of conservation of momentum, where the expulsion of exhaust gases in one direction propels the rocket in the opposite direction. Unlike swimming, which relies on pushing against a medium, rockets move by ejecting mass, such as hot gases, which generates thrust. The performance of rockets is actually enhanced in the vacuum of space, as atmospheric pressure can reduce the efficiency of thrust generation. While jet engines rely on atmospheric oxygen for combustion, rockets carry their own oxidizers, allowing them to function in space. Overall, the mechanics of rocket propulsion are based on Newton's third law of motion, where every action has an equal and opposite reaction.