Question: Need helpp Write c program in which dene four chromosomes: There are two methods to find the distance of two chromosomes. That Is, how much

Need helpp

Need helpp Write c program in which dene four "chromosomes": There are

Write c program in which dene four "chromosomes": There are two methods to find the "distance" of two chromosomes. That Is, how much the two have varied through mutations. One method is to go letter by letter and count the number of discrepancies (difference). Another method Is to sum the discrepancies of a's leg. chromosome 3: has 5 a's, chromosome v has 7 a's), c's. 3's and t's. Write a call by reference function that uses method 1. It will take two chromosomes, and go letter by letter In each, comparing them. It then returns the total number of discrepancies it finds. Write another all by reference function that uses method 2. It will take two chromosomes, and return the sum of 'a' discrepancies, 'c' ones. and so on. Then call each function on each of the combinations (A. B), (A, C). (A, D), (B, C), (B, D) and (C. D) and see which methods tell you which pair of chromosomes is 'funhest' (i.e. most varied) and which pair is \"closest" (i.e. least varied)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!