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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:11:29+00:00 2026-05-23T09:11:29+00:00

So yes, I read about how edit distance can be used between strings to

  • 0

So yes, I read about how edit distance can be used between strings to decide how “close” are two string to each other. This algorithm, implemented as a Dynamic problem takes O(mn) time, where m and n are the lengths of the text and pattern respectively. So if I have to match a string against 5000 odd other strings, it’s gonna take a LOT of time, which on my application is simply not acceptable. Is there are faster solution that can be implemented? I don’t mind trading storage space for time.

I have seen an application called “Swype” on Android, which does something similar. It searches your query against it’s own database and suggests results. How does that work so quickly?

Note: Please don’t suggest frameworks like Lucene, because I cannot run then on J2ME.

  • 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-23T09:11:30+00:00Added an answer on May 23, 2026 at 9:11 am

    splix’s answer is good. As another option (for very large string sets), you may want to consider using an n-gram representation:

    http://en.wikipedia.org/wiki/N-gram

    These are used for approximate pattern matching in a lot of database packages since they are fast and easy to implement using conventional indexing methodologies.

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

Sidebar

Related Questions

Yes i know i should read more about memory management, did try to find
Yes I want to read a simple a logfile into a TStringList and that
Yes, I did read the 'Related Questions' in the box above after I typed
Is it possible to read WPF ResourceDictionaries from WinForms? If yes, how?
I'm currently writing an implementation of a JDBC driver ( yes, you read that
Yes we're talking about ASCII codes. My appologies I'm not the Delphi dev here.
Read some texts about locking in PHP. They all, mainly, direct to http://php.net/manual/en/function.flock.php .
I've just read on the net about a newly discovered security vulnerability in ASP.NET.
Using PHP 5.2.6 in XAMPP : I read about sql injections here and tried
When we read about design patterns on the internet we note that there are

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.