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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:21:02+00:00 2026-06-14T02:21:02+00:00

Is there an algorithm that will take two columns of numbers and determine if

  • 0

Is there an algorithm that will take two columns of numbers and determine if they have a value in common?

Two columns:

One increases by .3 with each value. The other increases erratically. I want to determine if the two columns have a value in common.

.3  .1
.6  .2
.9  .4
1.2  .5
1.5  .9
1.8  .13
  • 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-14T02:21:03+00:00Added an answer on June 14, 2026 at 2:21 am

    If both series are increasing (or sorted1 in general), there is an O(n) solution. You can’t do any better than that, because you need to look at every element in the erratically-increasing list at least once in the worst case.

    Simply traverse both at the same time in a zipper-like fashion: Always get the next element from the list, that currently has a smaller element than the other one.

    > .3   .1 < | > .3   .1   | > .3   .1   |   .3   .1   |   .3   .1   |   .3   .1   
      .6   .2   |   .6   .2 < |   .6   .2   | > .6   .2   | > .6   .2   | > .6   .2   
      .9   .4   |   .9   .4   |   .9   .4 < |   .9   .4 < |   .9   .4   |   .9   .4   
      .12  .5   |   .12  .5   |   .12  .5   |   .12  .5   |   .12  .5 < |   .12  .5   
      .15  .9   |   .15  .9   |   .15  .9   |   .15  .9   |   .15  .9   |   .15  .9 < 
      .18  .13  |   .18  .13  |   .18  .13  |   .18  .13  |   .18  .13  |   .18  .13  
    

    1Where sorted means with respect to a total order.

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

Sidebar

Related Questions

I am looking for an algorithm that will take numbers or words and find
Is there any fast algorithm that allows to compare two files (for verification purpose)
I need to write a script, probably in Ruby, that will take one block
Is there any algorithm that gives the compass direction of a shadow given latitude,
Is there an image processing algorithm that can fill these gaps within an image?
While writing a card shuffling algorithm I realized that there are 52! ~= 2^225
It's a Heap implemented by myself(for algorithm contest).There are some compilation errors that I
I'm wondering if there are algorithms that can take, say, a 100x70 image and
It seems that there are several really fast prime factorization algorithms around (one that
Are there any compression algorithms -- lossy or lossless -- that have been specifically

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.