Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5980847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:51:34+00:00 2026-05-22T21:51:34+00:00

I have this assignment to prove that this problem: Finite alphabet £, two strings

  • 0

I have this assignment to prove that this problem:

Finite alphabet £, two strings x,y €
£*, and a positive integer K. Is
there a way to derive the string y
from the string x by a sequence of K
or fewer operations of single symbol
deletion or adjacent symbol
interchange?

is np-complete. I already figured out I have to make transformation from decision version of set covering problem, but I have no clue how to do this. Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:51:35+00:00Added an answer on May 22, 2026 at 9:51 pm

    It looks like modified Levenshtein distance. Problem can be solved with DP in quadratic time.

    Transformation from minimum set cover (MSC) to this string correction problem is described in:

    Robert A. Wagner
    On the complexity of the Extended String-to-String Correction Problem
    1975, Proceedings of seventh annual ACM symposium on Theory of computing 
    

    In short with MSC problem:

    Given finite sets x_1, …, x_n, and integer L, does there exists a subset J of {1,…,n} such that |J| <= L, and

    union_{j in J} x_j = union all x_i ?

    Let w = union all x_i, let t = |w| and r = t^2, and choose symbols Q, R, S not in w.

    Take strings:

    A = Q^r R x_1 Q^r S^(r+1) ... Q^r R x_n Q^r S^(r+1)
    B = R Q^r ... R Q^r w S^(r+1) ... S^(r+1)   <- each ... is n times
    and
    k = (l+1)r - 1 + 2t(r+1)(n-1) + n(n-1)(r+1)^2/2 + (r*n + |x_1 ... x_n| - t)*W_d
    [W_d is delete operation weight, can be 1.]
    

    It is shown that string-string correction problems (A,B,k) is satisfiable iff source MSC problem is.

    From strings construction it is clear that proof is not trivial 🙂 But it isn’t too complex to manage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this assignment that I've tried. But when I enter 1 it should
I have this programming assignment that converts between meters and feet, and between kilograms
I am doing this assignment, make a program that solves sudoku. I have a
I have this code in jQuery, that I want to reimplement with the prototype
I have this idea for a free backup application. The largest problem I need
I have this RewriteRule that works too well :-) RewriteRule ^([^/]*)/$ /script.html?id=$1 [L] The
I have this line in a useful Bash script that I haven't managed to
For an assignment in college, we have to make a script in Perl that
I'm doing another Java project for my class. In this assignment, we have to
Hallo I have this assignment to print only alphabets in a C++ string. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.