Sei sulla pagina 1di 3

How can I sort things that are too large to bring into memory?

Vyom Interview Questions

There are 3784 questions in 81 categories


VYOM INTERVIEW QUESTIONS LANGUAGES C DETAIL
* * * * * * * * * * * * * *

QuestionHow can I sort things that are too large


to bring into memory?Added: 10/22/2004
CategoryCViews: 166
Rating (0.0)By: 0 users
AnswerA sorting program that sorts items that
are on secondary storage (disk or tape) rather
than primary storage (memory) is called an
external sort. Exactly how to sort large data
depends on what is meant by too large to fit in
memory. If the items to be sorted are
themselves too large to fit in memory (such as
images), but there aren t many items, you can
keep in memory only the sort key and a value
indicating the data s location on disk. After
the key/value pairs are sorted, the data is
rearranged on disk into the correct order. If
too large to fit in memory means that there
are too many items to fit into memory at one
time, the data can be sorted in groups that will
fit into memory, and then the resulting files
can be merged. A sort such as a radix sort can
also be used as an external sort, by making each
bucket in the sort a file. Even the quick sort
can be an external sort. The data can be
partitioned by writing it to two smaller files.
When the partitions are small enough to fit,
they are sorted in memory and concatenated to
form the sorted file.
RELATED INTERVIEW QUESTIONS
QuestionWhen should a far pointer be used?
Added: 10/22/2004
Rating Views: 834
QuestionDifference between arrays and pointers?
Added: 10/22/2004
Rating Views: 990

QuestionIs it possible to execute code even


after the program exits the main() function?
Added: 10/22/2004
Rating Views: 718
QuestionWhat is a static function? Added:
10/22/2004
Rating Views: 731
QuestionWhy should I prototype a function?
Added: 10/22/2004
Rating Views: 505
QuestionHow do you print an address? Added:
10/22/2004
Rating Views: 510
QuestionCan math operations be performed on a
void pointer? Added: 10/22/2004
Rating Views: 620
QuestionHow can you determine the size of an
allocated portion of memory? Added: 10/22/2004
Rating Views: 494
QuestionWhat is a null pointer assignment
error? What are bus errors, memory faults, and
core dumps? Added: 10/22/2004
Rating Views: 420
QuestionWhat is the difference between NULL and
NUL? Added: 10/22/2004
Rating Views: 620
QuestionWhat is the heap? Added: 10/22/2004
Rating Views: 499
QuestionCan the sizeof operator be used to tell
the size of an array passed to a function?
Added: 10/22/2004
Rating Views: 452
QuestionWhat is the stack? Added: 10/22/2004
Rating Views: 272
QuestionIs it better to use a pointer to
navigate an array of values,or is it better to
use a subscripted array name? Added: 10/22/2004
Rating Views: 317

QuestionWhat is the difference between far and


near? Added: 10/22/2004
Rating Views: 1606

Vyom Interview Questions

This whole site - containing 3,784 Interview Questions &


Answers, as also available as an eBook.
4700+ Pages
3784 Question & Answers
81 Question Categories
128 MB Content
Get it now !! Special Discount of Rs.100/- ends on Dec
16th

2004 Vyom Network All Rights Reserved

Vyom Interview Questions is a part of Vyom Network.


Other sites in Vyom Network : VyomWorld.com | Testsworld.com |
JobsAssist.com | VyomLinks.com | SourceCodesWorld.com |
DiscussionsWorld.com | FundooSite.com | BestEbooksWorld.com
Privacy Policy
Copyright 2003-2005 Vyom Technologies, All Rights Reserved.
Page URL:
http://www.fundoosite.com/interview-questions/interview-questions/detail.a
sp?iFaq=1262&iType=40

Potrebbero piacerti anche