subject

Let σ be an alphabet set of size k, and a = a1 · · · am and b = b1 · · · bn be two strings over σ with length m and n, respectively. design a dynamic programming based algorithm to convert a into b with minimum cost using the following rules. for a cost of dk/3e, one can delete any letter from a string. for a cost of dk/2e, one can insert a letter in any position. for a cost of |rank(a)−rank(b)|, one can replace a letter a by another letter b, where rank(a) and rank(b) are the ranks of a and b in σ (i. e., the ranks of 3 and 5 are 2 and 3, respectively, in an alphabet of {1, 3, 5, 7}).

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:30, small77
Font size, font style, and are all aspects of character formatting.
Answers: 2
image
Computers and Technology, 24.06.2019 08:00, Maxxboogie
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, kamo90
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
image
Computers and Technology, 25.06.2019 06:30, tiwaribianca475
How can u permanently delete a picture from your camera ?
Answers: 1
You know the right answer?
Let σ be an alphabet set of size k, and a = a1 · · · am and b = b1 · · · bn be two strings over σ wi...

Questions in other subjects: