Describe how to implement each operation using sorting

Assignment Help Macroeconomics
Reference no: EM131093768

1. Suppose you need to sort a relation of 40 gigabytes, with 4 kilobyte blocks, using a memory size of 40 megabytes. Suppose the cost of a seek is 5 milliseconds, while the disk transfer rate is 40 megabytes per second.

a. Find the cost of sorting the relation, in seconds, with bb = 1 and with bb = 100.

b. In each case, how many merge passes are required?

c. Suppose a flash storage device is used instead of a disk, and it has a seek time of 1 microsecond, and a transfer rate of 40  megabytes per second. Recompute the cost of sorting the relation, in seconds, with bb = 1 andwith bb = 100, in this setting.

2. Consider the following extended relational-algebra operators. Describe how to implement each operation using sorting, and using hashing.

a. Semijoin (): r s is defined as R(r s), where R is the set of attributes in the schema of r ; that it it selects those tuples ri in r for which there is a tuple s j in s such that ri and s j satisfy predicate.

b. Anti-semijoin (¯ ): r¯ s is defined as r-R(r s); that it it selects those tuples ri in r for which there is no tuple s j in s such that ri and s j satisfy predicate.

Reference no: EM131093768

Questions Cloud

What is the consumer surplus in this market : A monopolist of a new computer software is facing demand: P = 100 -2 Q (where P is the unit price for this software and Q is its quantity) and MC = 20. What is the consumer surplus in this market
Explain how spirituality and faith in both works : Choose two religion-focused works from literature, theatre, music, or art (such as painting and sculpture) How do they call a religion into question?
The tri-city office equipment corporation sells : Refer to Copier maintenance Problem 1.20. The observations are listed in time order. Assume that regression model (12.1) is appropriate. Test whether or not positive autocorrelation is present: use α = .01. State the alternatives, decision rule, ..
What ways do you relate to diversity : Considering your increased understanding of diversity, in what ways, if any, would you want to modify any or all of the three professional goals which you articulated in the Reflection Assignment of Week1?
Describe how to implement each operation using sorting : Consider the following extended relational-algebra operators. Describe how to implement each operation using sorting, and using hashing.
Tests concerning the autocorrelation parameter : For each of the following tests concerning the autocorrelation parameter ρ in regression model (12.2) with three predictor variables. state the appropriate decision rule based on the
Calculate the cost of credit : Purpose: The Using Consumer Credit Worksheet is designed to test a student’s understanding of credit card interest rates and how to use credit calculations for various purchases.
What range of output is marginal cost decreasing : Verify that the two alternative methods of figuring ATC (TC/Q and AVC + AFC) give the same answer. Over what range of output is marginal cost (i) decreasing? (ii) increasing
A student writing a term paper used ordinary least squares : A student writing a term paper used ordinary least squares in fitting a simple linear regression; model to some time series data containing positively auto correlated errors, and found that the· 90 percent confidence interval for ß1 was too wide t..

Reviews

Write a Review

Macroeconomics Questions & Answers

  Analyze factors for forecasting demand curve for natural gas

Describe five additional factors that you consider most significant for forecasting the demand for natural gas over the next decade and briefly outline the processes you would use in gathering and analyzing these five additional factors for forecas..

  How the supply of loanable funds will shift to the right

The supply of loanable funds will shift to the right if either: A) Tax reforms encourage greater saving or investment tax credits were increased B) The budget deficit became larger or tax reforms discouraged savings C) The budget deficit became large..

  Finding economic profit or loss

At a product price of $56, will this company produce in the short run explain why or why not? If it is preferable to produce, what will be the profit-maximizing or loss minimizing output

  Find out what nation would be the most ideal markets

What would like you to do some research and find out what nation would be the most ideal markets for your new product.

  Will equilibrium gdp on the demand side rise or fall

Suppose real GDP is $10,000 billion and the basic expenditure multiplier is two. If two tax changes are made at the same time:

  Wjhat would affect the equilibrium real wage

Explain how each of the following would affect the equilibrium real wage, and equilibrium level of employment. a. A relaxation of immigration laws which leads to a large increase in the number of immigrants entering the country.

  Charge on a marginal basis

If a fixed number of industrial polution permits are marketable; then we should just sell the right to smoke to highest bidders rather than ban smoking outright in many cities, restaurants, towns, business outlets, and bars.

  Find the marginal utility functions of the following

find the marginal utility functions of the following utility functionsplot the marginal utility functions. indicate

  Economic roles of the government

Some economists argue that the government intervention makes the economic outcome even worse. Some argue that there are important economic roles of the government. What is your opinion? Does the government do good or bad? Briefly discuss.

  Determine the optimal fraction of output purchased by govt

In the Macroeconomics book by Stephen Williamson (5th Edition) in the Appendix for Ch. 7-8 Problem 1 the problem asks: Suppose in Solow growth model that there is government spending financed by lump-sum taxes, with total government spending G=gY,..

  Determine the gdp price index

Suppose that in 1984 the total output in a single-good economy was 10,000 buckets of chicken and the price of each bucket of chicken was $10. In 2005 the price per bucket of chicken was $20 and 22,000 buckets were produced.

  Strategies that permit the vertically integrated

Explain why this strategy may, in fact, be rational. Also, identify at least two other strategies that might permit Argyle to earn higher profits.

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