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

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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