A novel approach for the detection of specific DNA or RNA sequences based on branch migration and DNA strand displacement is described. A partially double-stranded probe complex is prepared with a detectable label on one of the two strands and incubated with analyte molecules under hybridization conditions. The analyte molecules hybridize to the single-stranded portion of the probe complex and undergo branch migration to release the labelled DNA strand from the complex. Initial characterization of the assay indicates that both qualitative and quantitative information about analytes present in a sample can be obtained. The strand displacement assay is more sensitive to sequence alterations in the analyte than is a hybridization assay and can be promoted by rec A protein at 37 degrees C. Finally, a method for preparing probe complexes by cloning in a single-stranded DNA vector is also described.