Question: Problem 6 . ( Compute Edit Distance ) Write a program called EditDistance.java that reads strings x and y from standard input and computes the
Problem Compute Edit Distance Write a program called EditDistance.java that reads strings x and y from standard input and computes the editdistance matrix opt as described above. The program should output x y the dimensions number of rows and columns of opt, and opt itself, using the following format:
The first and second lines should contain the strings x and y
The third line should contain the dimensions of the opt matrix, separated by a space.
The following lines should contain the rows of the opt matrix, each ending in a newline character. Write the elements of the matrix using stdio.writef with d as the format string for elements not in the last column and d
as the format string for the lastcolumn elements. A
A
C
A
G
T
T A C C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
