Calculate the record size r in bytes

Assignment Help Basic Computer Science
Reference no: EM13926527

1. A file has r=20,000 STUDENT records of fixed-length. Each record has the following fields: NAME (30 bytes), SSN (9 bytes), ADDRESS (40 bytes), PHONE (9 bytes), BIRTHDATE (8 bytes), SEX (1 byte), MAJORDEPTCODE (4 bytes), MINORDEPTCODE (4 bytes), CLASSCODE (4 bytes, integer), and DEGREEPROGRAM (3 bytes). An additional byte is used as a deletion marker. 
Consider B=512

a. Calculate the record size R in bytes.

b. Calculate the blocking factor bfr and the number of file blocks b assuming an unspanned organization.

c. Calculate the average time it takes to find a record by doing a linear search on the file if (i) the file blocks are stored contiguously and double buffering is used, and (ii) the file blocks are not stored contiguously.

d. Assume the file is ordered by SSN; calculate the time it takes to search for a record given its SSN value by doing a binary search.

2. A PARTS file with Part# as hash key includes records with the following Part# values: 2369, 3760, 4692, 4871, 5659, 1821, 1074, 7115, 1620, 2428, 3943, 4750, 6975, 4981, 9208. The file uses 8 buckets, numbered 0 to 7. Each bucket is one disk block and holds two records. Load these records into the file in the given order using the hash function h(K)=K mod 8. Calculate the average number of block accesses for a random retrieval on Part#.

3. Suppose that a file initially contains r=120,000 records of R=200 bytes each in an unsorted (heap) file. The block size B=2400 bytes, the average seek time s=16 ms, the average rotational latency rd=8.3 ms and the block transfer time btt=0.8 ms. Assume that 1 record is deleted for every 2 records added until the total number of active records is 240,000.

a.How many block transfers are needed to reorganize the file?

b.How long does it take to find a record right before reorganization?

c.How long does it take to find a record right after reorganization?

4. A PARTS file with Part# as key field includes records with the following Part# values: 23, 65, 37, 60, 46, 92, 48, 71, 56, 59, 18, 21, 10, 74, 78, 15, 16, 20, 24, 28, 39, 43, 47, 50, 69, 75, 8, 49, 33, 38. Suppose the search field values are inserted in the given order in a B + -tree of order p=4 and p leaf =3; show how the tree will expand and what the final tree looks like.

5. Develop cost functions for the PROJECT, UNION, INTERSECTION, SET DIFFERENCE, and CARTESIAN PRODUCT algorithms discussed in section 19.4.

6. Extend the sort-merge join algorithm to implement the LEFT OUTER JOIN operation.

Reference no: EM13926527

Questions Cloud

Code of ethics, professional ethics : Although though some people do not follow a code of ethics, professional ethics is very important to the success of a business. It is important for all managers to conduct business, internally and externally, ethically and with the utmost integri..
Calculate the number of letters : Write an application where you ask the user to input the price per letter (PPL), and then ask the user to input the sentence they want printed. The application should then calculate the number of letters and give the user the total cost in the fol..
Calculate mcphersons earnings per share : Calculate McPherson's earnings per share if the McAlester stockholders accept one $6 convertible preferred share (stated value, $100) for each 5 shares of McAlester stock held.
Reasonable interpretation of the survey results : Which of the following represents a reasonable interpretation of the survey results? For those not reasonable, explain the ?aw.
Calculate the record size r in bytes : a. Calculate the record size R in bytes. b. Calculate the blocking factor bfr and the number of file blocks b assuming an unspanned organization.
What are the disadvantages to moving to a hris : Using the Internet, describe at least five ways IT has helped change HR. What are the disadvantages to moving to a HRIS
Under rated operating conditions what is motor efficiency : Under rated operating conditions, what is the motor efficiency? A three phase transformer (made out of three identical single phase transformers) converts a 1200 VAC delta system (primary) to a 13,200 VAC Y system (secondary). Find the turns ratio of..
Inappropriate activation of the immune system : Mother Nature uses a "fail-safe system" to prevent inappropriate activation of the immune system. Provide several examples of this strategy.
Compute and interpret the mean of the random variable : A Wendy's manager performed a study to determine a probability distribution for the number of people, X, waiting in line during lunch. The results were as follows: (a) Verify that this is a discrete probability distribution. (b) Compute and interpr..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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