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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:16:07+00:00 2026-06-06T00:16:07+00:00

This question is complex, so please ask questions for explaining more detail on this

  • 0

This question is complex, so please ask questions for explaining more detail on this quesiton. (ps. Im not native English speaker, thats why…)

the input is that sample sequence with length of 34, while the output is the result part

For now, I have a sequence sample that is length of 34, it may be constructed as:
(“result” is what I need)

The sample sequence = result part + known sequence (I didnt know the length of result part)

  1. result (length 34)
  2. result (length N, N < 34) + known sequence (34 – N)

All those numbers in sequence are random.

Right now, I need to find result part without including the sequence known part.

Some background info:

  1. I have 10 millions this sample sequence with length of 34.
    (10 millions of knowing 34 digits random number sequence from generator)

  2. After I find the result, I will need to make it to compare on a 5 million length of sequence B, and find if the result sequence is uniquely match on the long sequence somewhere.

My current algrothm is to use a detector which is first 10 digits of known sequence, and remove the sequence after if I detect detecter sequence somewhere in sample sequence. However, there is still a chance that result contains the part of sequence inside of the known sequence. Does anyone has a better algrothm?

Thanks so much! In addition, I’m programming this under python.

ex.

1st condition:

199010104761700150004736290473629657 == sample seq

all are result and known part still the same

input:

199010104761700150004736290473629657

output:

199010104761700150004736290473629657

2nd condition:

199010104728392817111123995561547659 == sample seq

1990101047 == result part

28392817111123995561547659… == known part

input will be: 199010104728392817111123995561547659, 28392817111123995561547659…

output I want is: 1990101047

  • 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-06-06T00:16:10+00:00Added an answer on June 6, 2026 at 12:16 am

    You could use the Knuth–Morris–Pratt algorithm. You won’t actually find the substring, but you can take note of the value of i when you reach the end of the subject string.

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

Sidebar

Related Questions

This is a complex question, please consider carefully before answering. Consider this situation. Two
This question is simple, but the set-up's a bit complex. Please bear with me...
Sorry if this question seems a bit complex but I think its all related
This is a complex question, because there are a lot of moving parts. My
This is a simple and complex question at the same time. This compiles: int
This question is related with one of my earlier questions.. Previous Post In there
I normally ask this question in a interview for tester. Our software is really
I'm an XML Schema noob, and this is my first Stack Overflow question. Please
Admittedly not a programming question, but I don't really know where else to ask
Please, don't judge strictly if this question was discussed previously or indirectly answered in

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.