Calculate average time in a linear search

Assignment Help Computer Engineering
Reference no: EM132369

Question

A file has r = 20,000 STUDENT records of permanent length. Each record has following fields-

Name (30 bytes), Ssn (9 bytes), Address (40 bytes), PHONE (10 bytes), Birth_date (8 bytes), Sex (1 byte), Major_dept_code (4 bytes), Minor_dept_code (4 bytes), Class_code (4 bytes, integer), and Degree_program (3 bytes).An extra byte is used as a removal marker. The file is stored on disk whose parameters are given -

a. Calculate record size R in bytes.

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

c. Calculate average time it takes to discover a record by doing a linear search on the file if

(i) the file blocks are stored contiguously, and double buffering is used;

(ii) the file blocks are not stored closely.

d. Assume that the file is ordered by Ssn; by doing a binary search, compute the time it takes to search for a proof given its Ssn value.

 

Reference no: EM132369

Questions Cloud

What is a job safety analysis : How would you identify ergonomic problems associated with the use of visual display units? Describe the measures which can be taken to eliminate these problems. What is a Job Safety Analysis? Describe briefly the steps which should be taken to c..
What are three goals of safety in computing? : What are three goals of safety in computing?
Explain the averaging algorithm : Explain the averaging algorithm
Problem on troubleshooting dns records : Problem on Troubleshooting DNS Records
Calculate average time in a linear search : Calculate average time in a linear search
What are prospect trends for healthcare informatics : What are prospect trends for healthcare informatics.
Write a program that reads in a list of positive integers : Write a program that reads in a list of positive integers. Write down a program which asks user to respond to a question by entering either 1 for yes or 2 for no.
Illustrate precedence graph : Illustrate precedence graph
Outline the health effects associated with ionizing radiatio : Outline the health effects associated with ionizing radiations Describe the different measuring instruments available for measuring and monitoring ionizing radiation in a working environment

Reviews

Write a Review

Computer Engineering Questions & Answers

  What devices use to get efficient network communication

CNT Books has expanded considerably as you first got network up and running three years ago. It at the present occupies an entire floor in building, and its LAN has full-grown to contain several servers and more than 60 workstations.

  How a box of caramel delites girl scout cookies

How to a box of Caramel deLites Girl Scout cookies Every spring you looking forward to buying a box of Caramel deLites Girl Scout cookies

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  How to create a set in third normal

How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..

  What will be the exercise ratio of men and women

What will be the exercise ratio of men and women? Results indicated that women averaged 2 hours per week and men averaged 1.25 hour per week.

  Intermediate programming

Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

  How to write a report on object-oriented systems

How to write a report on Object-Oriented Systems?

  Illustrate precedence graph

Illustrate precedence graph

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Evaluates and contrast tcp and ud

Describe the need for the Transport Layer. Recognize the role of the Transport Layer as it provides the end to end transfer of data between applications.

  Problem on stack

Problem on Stack

  How to write a program to find a traffic violation number

How to write a program to find a traffic violation number?

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