The Swarts reaction involves the nucleophilic substitution of an alkyl halide with a metal halide, such as silver chloride, yielding a different alkyl halide. The Witting reaction is a nucleophilic addition process where a phosphorus ylide reacts with a carbonyl compound, producing an alkene.