Question

Explain why it is not good to do sorting in hard drive. List and explain the...

Explain why it is not good to do sorting in hard drive. List and explain the steps of blocked sort-based indexing

Homework Answers

Answer #1

It is not good to do sorting in hard drive  as the external sort minimises the amount of data read and written to external storage (and historically also seek times), and a general-purpose virtual memory implementation on top of a sort algorithm not designed for this will not be competitive with an algorithm designed to minimise IO.

The steps of blocked based indexing are:

Block merge indexing:

1. Parse documents into (TermID, DocID) pairs until “block” is full

2 Invert the block

3. Sort the (TermID,DocID) pairs

4 Write the block to disk

5 Then merge all blocks into one large postings file

-------------------------------------------------------------Please Upvote-----------------------------------------------------------------

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Explain why timing the sorting program is not a good method to measure the efficiency of...
Explain why timing the sorting program is not a good method to measure the efficiency of the program.
Explain why timing the sorting program is not a good method to measure the efficiency of...
Explain why timing the sorting program is not a good method to measure the efficiency of the program.
Sorting – Insertion Sort Sort the list 0, 3, -10,-2,10,-2 using insertion sort, ascending. Show the...
Sorting – Insertion Sort Sort the list 0, 3, -10,-2,10,-2 using insertion sort, ascending. Show the list after each outer loop. Do this manually, i.e. step through the algorithm yourself without a computer. This question is related to data structure and algorithm in javascript (.js). Please do not copy from stackabuse or stackoverflow, Please explain that algorithm with comments. i really want to learn this concept.
find a good alarm explain why it is good? finad a bad alarm and explain why...
find a good alarm explain why it is good? finad a bad alarm and explain why it is bad? how you fix it?
6. Explain why it is so important for a company to have good forecast in the...
6. Explain why it is so important for a company to have good forecast in the future. 7. Explain the term “ Depreciation is a NON cash expense” and how do company’s use it. 8. List a few advantages and disadvantages for opening up a company as a corporation. 9. Why do companies issue more stock (do equity financing), and tell why they might want to sell bonds (debt financing) instead. 10. Explain why online trading has become so big....
hat do you think contributes to life satisfaction? Do you agree with the list below? Why...
hat do you think contributes to life satisfaction? Do you agree with the list below? Why or why not? 1. ADEQUATE INCOME 2. GOOD HEALTH 3. ACTIVE LIFESTYLE 4. EXTENDED SOCIAL NETWORK 5. CHOICES - ABILITY TO REDUCE DEMANDS OF LIFE 6. OPTIMIZATION - PRACTICE WHAT YOU'RE GOOD AT 7. COMPENSATION - MAKING UP FOR SLOWING DOWN
Why is it so hard to do a believable risk assessment for human space flight systems?
Why is it so hard to do a believable risk assessment for human space flight systems?
Give an example of a consumption good and an example of an investment good. Explain why...
Give an example of a consumption good and an example of an investment good. Explain why the two are different, as a macroeconomist would think of them differently. Also, explain why investment is important for the long term health of an economy.
Construct a hypothesis to explain why so many "hard bodies" showed up in the Cambrian Explosion.
Construct a hypothesis to explain why so many "hard bodies" showed up in the Cambrian Explosion.
List at least three reasons why ATP is a good source of energy .Draw the hydrolysis...
List at least three reasons why ATP is a good source of energy .Draw the hydrolysis reactions of ATP(ATP ?>AMP)?