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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:30:09+00:00 2026-05-27T02:30:09+00:00

For any key used in a map reduce operation, elements with can key may

  • 0

For any key used in a map reduce operation, elements with can key may follow some natural ordering.

Suppose we want to find elements e0 and e1 such that:

  1. each belong to the same key,
  2. they follow some ordering e0 < e1
  3. there is no element en where e0 < en < e1 with respect to our ordering.
  4. some relation between e0 and e1 holds.

(How) can that that be done efficiently using map reduce?

A usual database way of solving that is just to get a cursor over our collection ordered by our ordering. Keep track of the last seen element, and the current element and test for the relationship.

The problem with map reduce, is that within a reduce call that reduces e0 and e1 there is no wat to know if an en exists that ruins your assumption that e0 and e1 are successive.

Are there clever ways around this? Or mapreduce frameworks that can guarantee that a set of elements within a reduce call are sequential? Can it be done in mongodb?

  • 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-27T02:30:09+00:00Added an answer on May 27, 2026 at 2:30 am

    MapReduce is a paradigm for parallel programming. Amdahl’s law limits the speedup achieved due to parallelization to 1/(S+P/N), where S and P are the fractions of serial/parallel portions of the code and N is the number of processors. If S=1, then P=0 and speedup is 1, i.e., there is no benefit (in terms of computation time) to using any number N of processors. So if you have a “sequential” (i.e., 100% non-parallel, like computing a non-associative reduction operation) job, MapReduce isn’t ever going to help, ever. Note: maybe your problem is more parallel than you think.

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

Sidebar

Related Questions

There are some cases that the key objects used in map do not override
I can send any windows application key strokes with PostMessage api. But I can't
Can a STL map be used for keys of varying sizes? I don't have
I'm sticking some data, wrapped with boost::any into a map in a class method
Is it possible to map key to Multi Dimensional Array List. Some thing like
I was wondering if there was any key mapping in Vim to allow me
in visual studio, is there any hot key to autoformatand indent your html code.
Is there any standard way to route all Key events from the control A
Is there any straightforward way of finding a key by knowing the value within
Is there any way to use a constant as a hash key? For example:

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.