subject

You're consulting for a group of people (who would prefer not to be mentioned here by name) whose jobs consist of monitoring and analyzing electronic signals coming from ships in coastal Atlantic waters. They want a fast algorithm for a basic primitive that arises frequently:" untangling" a superposition of two known signals. Specifically, they are picturing a situation in which each of two ships emit a short sequence of Os and Is over and over, and they want to make sure that the signal they are hearing is simply an interleaving of these two emissions, with nothing extra added in. This describes the whole problem; we can make it a little more explicit as follows. Given a string x consisting of 0s and 1s, we write x^k to denote k copies of x concatenated together. We say that a string x' is a repetition of x if it is a prefix of x^k for some number k. So x' = 10110110110 is a repetition of x = 101
We say that a string s is an interleaving of x and y if its symbols can be partitioned into two (not necessarily contiguous) subsequences s' and s", so that s' is a repetition of x and s" is a repetition of y. (So each symbol in s must belong to exactly one of s' or s".) For example, if x = 101 and y = 00. then s = 100010101 is an interleaving of x and y. since characters 1.2, 5, 7, 8.9 form 101101-a repetition of x-and the remaining characters 3, 4.6 form 000-a repetition of y
In terms of our application, x and y are the repeating sequences from the two ships, and s is the signal were listening to: We want to make sure s "unravels" into simple repetitions of x and y.
Part A Give a recurrence relation of the problem.
Part B Design an efficient algorithm that takes strings s, x, and y and decides if s is an interleaving of x and y.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
You know the right answer?
You're consulting for a group of people (who would prefer not to be mentioned here by name) whose jo...
Questions
Questions on the website: 13722360