DNA Matching
The lesson explains the use and working of searcher functions using the DNA structure.
To demonstrate the range of uses for std::search
, let’s have a look at a simple DNA matching demo. The example will match custom types rather than regular characters.
For instance, we’d like to search a DNA sequence to see whether GCTGC
occurs in the sequence CTGATGTTAAGTCAACGCTGC
.
The code block uses a simple data structure for Nucleotides:
Get hands-on with 1400+ tech skills courses.