Give an onmk algorithm to find the length of the best


Consider the following data compression technique. We have a table of m text strings, each at most k in length. We want to encode a data string D of length n using as few text strings as possible. For example, if our table contains (a,ba,abab,b) and the data string is bababbaababa, the best way to encode it is (b,abab,ba,abab,a)- a total of five code words. Give an O(nmk) algorithm to find the length of the best encoding. You may assume that every string has at least one encoding in terms of the table.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Give an onmk algorithm to find the length of the best
Reference No:- TGS02161244

Expected delivery within 24 Hours