What data structure is appropriate to support operations

Assignment Help Basic Computer Science
Reference no: EM131076041

The problem of managing the blocks of an external data fi le indexed by either a B-tree or an external hashing scheme is similar to that of managing memory for internal structures. When an external structure such as a data fi le needs more memory (for example, to insert a new record), it gets a new block from a free list that the system manages. That is, if the fi le contains n blocks, the system can allocate to it an ( n + 1) th block. When the fi le no longer needs a block, you can deallocate it and return it to the system. The complication in the management of external storage is that a block allocated to a fi le may have available space interspersed with data. For example, after you have removed a record from the middle of a data fi le, the block that contained that record will have space available for at least one record. Therefore, you must be able to keep track of blocks that have space available for one or more records as well as recognize when blocks are completely empty (so that you can return them to the system). Assuming the existence of allocate Block and return Block functions that get empty blocks from and return empty blocks to the system, write pseudo code implementations of the following external memory-management functions:

862_f2c55829-5be0-45e0-8790-b4616654dcb7.png

What data structure is appropriate to support these operations? You may assume that you can distinguish slots of a block that do not contain a record from those that do. You can make this distinction either by having a convention for null values within a record or by adding an empty/full flag.

Reference no: EM131076041

Questions Cloud

Develop training materials for new it employees : Your team is in charge of computer support at a major U.S. retailer. Business has been growing fast, and your company is about to open several new facilities across the country. Management has asked your team to develop training materials for new ..
Write a pseudo code program for shifting data : write a pseudo code program for shifting data to make a gap at some specified location of a sorted fi le. Pay particular attention to the details of shifting the last item out of one block and into the first position of the next block.
Calculation of their respective roa and roe : Show your calculation of their respective ROA and ROE; footnote which financial statement the numbers are picked from. For example, assets (balance sheet).
Design post to elicit multiple point of view from colleagues : Design your posts to elicit multiple points of view from your colleagues. Validate your assertions with references to credible sources.
What data structure is appropriate to support operations : What data structure is appropriate to support these operations? You may assume that you can distinguish slots of a block that do not contain a record from those that do. You can make this distinction either by having a convention for null values w..
E calls for the purchase of earthmoving equipment : Keller Construction is considering two new investments. Project E calls for the purchase of earthmoving equipment. Project H represents an investment in a hydraulic lift. Keller wishes to use a new present value profile in comparing the projects. ..
Price-taking firm has a short run cost function : A price-taking firm has a short run cost function SC(q) = 3q^2 + 18q + 600. Calculate the profit for this firm if the price is P = 72. Using either an integral or geometry, calculate the producer surplus for the firm at P = 72. Explain how the Produc..
Economy-net taxes and government spending : Suppose that in an economy, net taxes and governemnt spending are independent of income. It is determined that when government spending falls by $200 billion income falls by $800 billion. What is the MPS? What is the MPC?
Equals the nominal rate minus the inflation rate : The Fisher equation tells us that the real interest rate approximately equals the nominal rate minus the inflation rate. Suppose the inflation rate increases from 3% to 5%.

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Use any built in functions for finding the calculations

Use any built in functions for finding the calculations in this assignment.

  Calculate the value of pi upto 10 decimal points

Use the equation pi/4 = tan^-1(1/2) + tan^-1(1/3) to evaluate the value of pi. Howmany iterations does it require? Comment on the difference. Submit matlab code.

  Write a function that convert any angles outside of interval

Suppose that an array contains angles in degrees. Write a function that converts any angles outside of the interval [0,360] to an equivalent angle in that interval. For example, an angle of 380.5 degrees should be converted to 20.5 degrees.

  Architecture to assist in the decision-making process

Using enterprise architecture to assist in the decision-making process, write a 1500 words paper in which you do the following:Determine activities that you believe would be appropriate for outsourcing.

  Why would the other architectures not be a good choice

Why would the other architectures not be a good choice?

  Technology and job design

Advancements in technology have certainly made our lives easier over the last twenty years. They've also changed the nature of how many of us do our jobs. A great example is right here in this course...professors can teach from home!

  Evaluate the level of impact of it-enterprise architecture

Evaluate the level of impact of IT / enterprise architecture on information management (e.g., the flow of information throughout the company / organization, etc.) within a company or industry of your choice

  Otherwise assigns false to duplicates otherwise

Write some code that assigns True to a variable duplicates if there are two adjacent elements in the list that have the same value, but that otherwise assigns False to duplicates otherwise. In order to accomplish this, you may, if you wish, use o..

  Who was the first president of kenya

Who was the first president of Kenya? Explain his town of origin.

  What is meant by union compatibility

Why do the UNION, INTERSECTION, and DIFFERENCE operations require that the relations on which they are applied be union compatible?

  How code an interactive hangman game using string method

How do you code an interactive hangman game using the string method

  Explain how determine the process state and what are states

Explain how to determine the process state and what are the states a process can be in. (Hint: use the man pages! You may have to do some cross referencing

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd