This article investigates the problem of cycle slip detection and ambiguity resolution using dual-frequency GPS data. Several algorithms are proposed and described. F or cycle slip detection, three L1/L2 observable combinations have been integrated to formulate a new algorithm for cycle slip detection. For ambiguity resolution, both widelane and narrowlane ambiguity resolution algorithms are presented, but the focus is on the narrowlane ambiguity resolution. Numerical results are included to evaluate the performance of the proposed algorithms, which have shown that cycle slips can be effectively detected and the narrowlane ambiguities can be resolved almost instantaneously after successful determination of the widelane ambiguities.