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

  • SEARCH
  • Home
  • 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 6595915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:00:13+00:00 2026-05-25T18:00:13+00:00

I think I understand the Fischer & Paterson algorithm for pattern matching with don’t

  • 0

I think I understand the Fischer & Paterson algorithm for pattern matching with “don’t cares” shown here:
http://u.cs.biu.ac.il/~amir/AlgII/fp-set1.html

However, as I understood it is possible to use the “don’t cares” one-dimensional matching to solve the two-dimensional matching in O((n^2)(logm)) time. For that, a “don’t care” symbol should be appened to the end of each string or something like that and converting this to a one-dimensional problem. That’s the part I don’t really understand. I’ve made a few attempts but I can’t see how that helps.

So, how does 1D-matching with “don’t cares” helps solve 2D-matching?

Thanks.

EDIT: I think I sort of get it. The text needs to be linearized (concatenation of its rows). Same goes for the pattern but after each row, n-m don’t-care symbols should be added (except for the last row of the pattern). Yet, I think this gets O((n^2)(log(m^2))) time and I think the previously mentioned time is not possible. Comments?

  • 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-25T18:00:14+00:00Added an answer on May 25, 2026 at 6:00 pm

    Note that log m2 = 2 log m, so your time bound in fact is equivalent to O(n2 log m).

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

Sidebar

Related Questions

I think I understand references and pointers pretty well. Here is what I (think
I think I understand the concept of virtual methods and vtables, but I don't
I don't think I understand testing as well a should. I have written a
I think I understand unit testing. But I was wondering: is there a way
I think I understand the basic principals of T4 but I'm having a hard
I understand how JS is run and I think I understand most of the
I've been reading a lot about closures and I think I understand them, but
I have read the documentation on this and I think I understand. An AutoResetEvent
I must admin this is kind of funny even though I think I understand
I come from a background of MoM. I think I understand ESB conceptually. However,

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.