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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:06:21+00:00 2026-06-04T01:06:21+00:00

I am asking this question to make sure some concept of parallel computing concept.

  • 0

I am asking this question to make sure some concept of parallel computing concept.

Lets give a simple example: We have a set of n numbers, what’s the best running time to search a item from it if we have at least n/3 parallel computers?

I think this will still be O(n), but not sure if I am right. Since the constant part of the big-Oh expression can be erased?

Thank you

  • 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-04T01:06:22+00:00Added an answer on June 4, 2026 at 1:06 am

    It could be O(1) or O(ln n).

    Given each of your n/3 computers n/(n/3) numbers; they all get essentially 3 values. It takes them individually constant time to search their constant sized-set and return a result (“0 –> not found”, k if found at the kth position in the array, if each is given K*(n/3) as the index in an array to start). So, the value is found in time O(1).

    The issue comes in reporting the answer. Something has choose among the responses from the n/3 machines to pick a unique result. Typically this requires a “repeated” choice among the subsets of machines, which you can do in O(n) time but in parallel systems is often done with a “reduction” operator (such as SUM or MAX or …). Such reduction operators can be (and usually are) implemented using a reduction tree, which is logarithmic.

    Some parallel hardware has very fast reduction hardware, but is it still logarithmic.
    Weirdly enough, if you have n/1000 CPUs, you’ll still get O(1) search times (with a big constant), and O(ln n) reduction times with a very small constant. It’ll “look” like constant time if you ignore the O notation.

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

Sidebar

Related Questions

I'm re-asking this question but with a different framework this time. I have two
I feel silly asking this question... Sometimes I have a domain that I want
I'm not sure if I'm even asking this question correctly. I just built my
In asking this question, I'm looking for either better understanding of the situation or
I'm asking this question as someone who works for a company with a 70%
The very act of asking this question suggests that my approach to this problem
I feel stupid asking this question, but I've been wrestling with it for hours
When I'm asking this question on stackoverflow, I can add tags to it. So,
I'm asking this question, because I can't figure out when I could find an
This question might be closed as it sounds vague but I'm really asking this

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.