Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 17 Online
OpenStudy (anonymous):

Problem Set 3 testing - target strings and keys

OpenStudy (anonymous):

I'll post some test strings for the function in Problem Set 3 (ps3d) # should match one sub strings and exclude exact matches # Test 0 : test for exact match # Test 1 : test for one sub and more than one sub # for ex. for 'atg', it should match 'xtg', 'axg' and 'atx' # and not 'atg', 'axtg', 'atxg' etc # Test 2 : test for two and more subs # Test 3 : test for overlap # for ex for 'atta' it should match 'xttaxta' => (0, 3) # Test 4 : test if string exist at all # Test 5 : test for repeat # target0 = 'atgaatgcatggatgtaaatgcag' # exact match for atg (0, 5, 9, 13, 19) # 012345678901234567890123 target1 = 'atgaxtgcaxggatxtaaatgcag' # key1 'atg' (4, 8, 12) # 012345678901234567890123 # next string features overlap target2 = 'attagxttataxtatxattxgcag' # key2 'atta' (5, 10, 13, 16) # 012345678901234567890123 target3 = 'gcgcgcgcgcgcgcgcgcgcgcgc' # key3 'atgc' () # 012345678901234567890123 target4 = 'axaaaaaaaaaaaaaaaaaaaaaa' # key41 'aaaa' (0, 1) and key42 'tttt' () # 012345678901234567890123 # key strings key0 = 'atg' key1 = 'atg' key2 = 'atta' key3 = 'atgc' key41 = 'aaaa' key42 = 'tttt' HAPPY TESTING

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!