Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please give me the answer in 30 min i will give you like Question 4. The strings X[1 ... n] and Y[1 ...m] are given.

Please give me the answer in 30 min i will give you like

Question 4. The strings X[1 ... n] and Y[1 ...m] are given. Our aim is to use the string X[1 ... n] with the least cost. Y[1...m]to the order. Adding a new character costs up to TL, deleting an existing character It costs t dollars and converting an x character to a y character is f (x, y) dollars. Where k and t given positive integers, f (x, y) is a function with positive integers. a) Write down the recurrence required to solve the problem using dynamic programming. b) Pseudo code of the algorithm you designed with dynamic programming method (pseudo code) c) (15 points) Let k = 2, t = 1 and f (x, y) function given by the table below. (In this table the x variable column and y variable is given in the row.) By applying the algorithm you wrote down, it is necessary to convert the word ARABA to BAAR Calculate the cost.image text in transcribed

00 A 1 B 1 1 R 1 A B 2 2 2 02 1 2 0 4 1 4 0 4 1 4 R 2 4 1 4 0 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago