Briefly describe the behaviour of the delete operation

Assignment Help Operating System
Reference no: EM13944770

1) (a) Consider the following axioms from the Unsorted List ADT:
Delete(Create, i1) = Create
Delete(Make(L1, i2), i1) =
IF i1 = i2 THEN
L1
ELSE
Make(Delete(L1, i1), i2)
END IF

Briefly describe the behaviour of the Delete operation as defined by these axioms.

What changes would you make to the above axioms in order to carry out the other two types of deletion discussed in class?

(b) The interface file for a linked list implementation of the Unsorted List ADT offers the following methods:

public void make(Object item);
public void delete(Object item);
public ListReferenceBased concat(ListReferenceBased list2);
public ListReferenceBased tail();
public boolean isEmpty();
public boolean isIn(Object item);
public Object head();
public int length();

Write java code for a method that finds the smallest integer in an unsorted list of integers.
This method is to appear in a client program, thus must use methods from the above interface file. You do not need to handle exceptions. Assume the following skeleton:
public static Integer findSmallest(ListReferenceBased list) {
}

Provide appropriate PRE and POST conditions for your method.

(c) Describe and illustrate how items are normally added and removed from an efficient implementation of the queue ADT, as defined in class, which is implemented using an array.

What problems may arise in testing for an empty or a full queue and how might these be overcome?

Give two applications of a queue in computing.

Reference no: EM13944770

Questions Cloud

Introducing and managing the improvements : As a senior manager you are responsible for these changes. How you will go about introducing and managing the improvements. How will you gain support of the retail staff.
How would feminist eve cole : As I learn more about the mind/brain connection, I find myself willing to give up the notion of "mind" as a separate idea. Is this just me, or does someone else feel that way?
The sample data is presented in the following table : Do the data present sufficient evidence to indicate that the mean for the machine 1 is smaller than the mean for the machine 2? Use a 0.05 level of significance.
Cost-estimating equation for total annual operating costs : Assume the local DHL delivery service hub has the following information available about fleet miles and operating costs: Use the high-low method to develop a cost-estimating equation for total annual operating costs. (Let X = annual fleet miles.)
Briefly describe the behaviour of the delete operation : What changes would you make to the above axioms in order to carry out the other two types of deletion discussed in class?
Basis of the confidence interval : A confidence interval for the average age of Walmart shoppers can be found below. On the basis of the confidence interval shown below, you can (or should) conclude that the average age of Walmart shoppers is over 52.
Explaining the creditability of new business venture : The bank has requested from you to submit a business proposal explaining the creditability of your new business venture and how it will succeed.
Explain the idea of a context as it relates to hci design. : Describe the Norman Cycle and apply it to a typical scenario of usage for a librarian using an electronic library catalogue.
How much must be deposited now : If the parent decides instead to deposit a lump sum now in order to attain the goal of $250,000 in 13 years, how much must be deposited now?Amount = __________________________(dollars)

Reviews

Write a Review

Operating System Questions & Answers

  Circular-wait scheme with various deadlock-avoidance scheme

Compare the circular-wait scheme with thevarious deadlock-avoidance schemes  banker's algorithm)

  Write list of three known vulnerabilities for sql server

Using the internet as a source, compile a list of three known vulnerabilities for SQL Server on Windows operating systems and three vulnerabilities for Oracle on Unix.

  Multicast service model in the internet

Those applications that do not need a high level of reliability for operations can use the Minimalist Internet Multicast service model, like streaming of continues information in the forms of audio or video

  Implement the storage portion of the tsupod

Create file test_tsuPod.cpp where you are going to test the functionality of the tsuPod program

  How could you try to solve this problem using a gui

Open a Command Prompt (MS-DOS Prompt) window and complete the following activities. As always, be sure to cite any sources you use in your response.

  Page table entries are needed for two-level paging

Assume that word 0 is part of a hole and that the highest word in memory contains valid tries are needed in the page table if traditional(one-level) paging is used? how many page table entries are needed for two-level paging, with 10 bits in ea..

  Compare threads and processe

Compare threads and processes based on the amounts of system resources each uses and based on a common file each uses. How does this answer affect the efficiency of context switching for each?

  Program that accepts or rejects applicants for seasonal jobs

Write a program that accepts or rejects applicants for seasonal jobs - To qualify for a job an applicant must be at least 16 years old and have two years work experience. Additionally, the applicant must either be able to life at least 40 pounds or..

  Develop an e-mail solution for 40 people

Determine the best network media for the network in the new facility keeping in mind the growth aspect of the assignment

  Creating a technology risk mitigation and data protection

This response will discuss mitigation strategies to enable business continuity in the event of a power outage in a small office.

  Multithreading refers to the ability of an operating system

Multithreading refers to the ability of an operating system to support multiple threads of execution within a single process. The traditional approach of a single thread of execution per process, in which the concept of a thread is not recognized, is..

  How many blocks of main memory are there

To which block will the memory reference 025A13CF (in hexadecimal) map?

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