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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:01:16+00:00 2026-05-20T06:01:16+00:00

In this web page: CS302 — External Sorting Merge the resulting runs together into

  • 0

In this web page: CS302 — External Sorting

Merge the resulting runs together into successively bigger runs, until the file is sorted.

As I quoted, how can we merge the resulting runs together??? We don’t have that much memory.

  • 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-20T06:01:17+00:00Added an answer on May 20, 2026 at 6:01 am

    Imagine you have the numbers 1 – 9

    9  7  2  6  3  4  8  5  1
    

    And let’s suppose that only 3 fit in memory at a time.

    So you’d break them into chunks of 3 and sort each, storing each result in a separate file:

    279
    346
    158
    

    Now you’d open each of the three files as streams and read the first value from each:

    2 3 1
    

    Output the lowest value 1, and get the next value from that stream, now you have:

    2 3 5
    

    Output the next lowest value 2, and continue onwards until you’ve outputted the entire sorted list.

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

Sidebar

Related Questions

A few small questions on this web page I am putting together. http://dansiop.com/guyc/our-team/ I
This web page http://www.w3schools.com/ASP/prop_sessionid.asp states that a session ID is generated on the ServerSide.
I have a web page. When this web page is loaded, I want to
My web page sits in a DIV that is 960px wide, I center this
web page : http://sideradesign.com/eco-art/gallery/ This code works fine in all brwosers except IE8 (haven't
I have this label control in my web page <asp:Label ID=Label1 runat=server Text=test></asp:Label> And
In my web page i used a gridview. In this gridview it shows a
I have a web page with swf file defined this way <object width=600 height=400
I have a web page coded in PHP. This page is for posting a
I have a web page that consists of a checkbox (parent) and on 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.