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

  Describe how left explanation is useful while formatting

Describe how left explanation is useful while formatting

  What are techniques for addressing security requirements

What are techniques for addressing security requirements? Which have a business relationship with the company?

  Describe stages of the processor

Describe the decode stage and Describe the execution stage of add, andi, mul, divi, and neg.

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  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.

  Software engineering and microprocessor systems

Software is required for a simple house burglar alarm system.

  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.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  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.

  Implementation of type data structures

How can string and word variable type data structures be implemented?

  How to run and modify marie program

How to run and modify marie program Include a decision before storing and outputing result. If  value of the result is not positive (so zero or negative), set  Result value to the value ZERO (0)

  What is microprocessor - motorola 68k assembly language

What is microprocessor - Motorola 68k assembly language? Implement your plan using a user vectored interrupt number 3. Use busy line from the printer to trigger the interrupt. The printer interrupt level is 2. Explain the extra hardware to make t..

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