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 7512099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:45:46+00:00 2026-05-29T23:45:46+00:00

According to the Wikipedia article on suffix trees , suffix trees can be used

  • 0

According to the Wikipedia article on suffix trees, suffix trees can be used to locate substrings of a string if a certain number of mistakes are allowed.

Given the suffix tree of a string, how can I find all the instances of a given substrings of it, allowing for each instance at most one mistake?

(By “mistake”, I mean the substitution of one character.)

  • 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-29T23:45:47+00:00Added an answer on May 29, 2026 at 11:45 pm

    That would be just a more convoluted graph searching (aka find the path through the dungeon where some of the doors are broken and need to be kicked open and you want to spare your feet).

    The details depend greatly on what do you mean by “mistake”. So I take it that “mistake” is a substitution of one character, that is the easiest case.

    In the algorithm, you will search the tree from the root comparing and advancing your pattern as if you’d searched for exact match. Just if there was a character on the edge that you can’t follow, you save the state of your algorithm for later (the state being [tree position, pattern position]). This should apply even when you can follow one link for a node, but not another – you follow the matching and save the others.

    Then, you return to the saved positions and emulate the substitution, that means advance one position in the tree (to all nonmatching possibilities) and one position in the pattern. Then, continue your search as normal (you have consumed your possibility of one error, so you’re searching for exact match now).

    Whenever you reach the end of the pattern, report successful match (ie. all leaves below the current node in the tree).

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

Sidebar

Related Questions

According to the wikipedia entry on Rabin-Karp string matching algorithm, it can be used
According to this Wikipedia article , you are allowed 3,000 files per app but
According to Wikipedia when rounding a negative number, you round the absolute number. So
According to Wikipedia, the md5 sum of an empty string is d41d8cd98f00b204e9800998ecf8427e I confirmed
According to Wikipedia NoSQL article , there are a lot of NoSQL implementations. What's
According to this Wikipedia article on Google App Engine : Developers have read-only access
According to the Wikipedia page Segmentation fault , a bus error can be caused
According to this article on Wikipedia®: The Pivot Table and Spreadsheet web components do
According to the Wikipedia article object relational mapping: is a programming technique for converting
According to the Wikipedia article on linked lists , inserting in the middle of

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.