What are the fundamental operations of a linked list

Assignment Help Data Structure & Algorithms
Reference no: EM132125398

Question: Questions 1 - 3 are related to "singly linked list". You must type your answer.

1. What are the fundamental operations of a linked list?

2. What is the main advantage of a linked list over an array?

3. What is the time complexity of deleting a node from a linked listed? Is it faster than deleting a node from an array? Why?

4. Test program p2-1 linkedListClass, and make sure that you understand each operation in the program.

5. Write a testing class that is similar to linkedListApplication class defined in p2-1 to test program p2-2 DoubleLinkedList. Make sure that you understand each operation in the program.

6. (Programming) Use p2-1 linkedListClass as a reference, add the following operations in the class LinkedList;

Find the average data values of the linked list.

Find the item with largest key, and then delete the node.

Test ALL operations in the Main method. (Also display the average of the data values of the linked list, the largest key, the linked list before and after deleting the node with the largest key;

7. (Programming) Modify p2-1 SingleLinedList programs so that it handles employee objects. Make your program menu-driven. The class employee is the same as in

Assignment 2:

import java.util.Scanner;

public class employee

{

public int id;

public String name;

public double salary;

public void Input()

{

System.out.println("Enter name: ");

name = new Scanner(System.in).nextLine();

System.out.println("Enter ID: ");

id = Integer.parseInt(new Scanner(System.in).nextLine());

System.out.println("Enter Salary: ");

salary = Double.parseDouble(new Scanner(System.in).nextLine());

}

public void Output()

{

System.out.printf("Name: %1$s, ID: %2$s, Grade: %3$s ", name, id, salary);

}

public String toString()

{

return String.format("[Name: {0}, ID: {1}, Grade: {2}]", name, id, salary);

}

}

Requirement for assignment reports

1. The cover page must be attached.

2. For each programming question, the submission must contain the program itself, proper description of the program, and running page (screen shot) which shows that the program works for all cases.

3. Add proper comments lines for non-trivial so that the instructors can read and understand the program.

4. Submit to e-learn by mid-night on the due date

Reference no: EM132125398

Questions Cloud

Important values-principles you think need to be considered : What are the important values/principles you think need to be considered, including at least one conflict between values (consider using a list.)
Create a new application that will allow for customers : You decide that your current application is not up to date anymore and is not serving your company like it should. To gain more speed and agility you decide.
How is human resource management important : How is human resource management important? Describe the components of Job descriptions.
Clearly state what assumptions would be required : Defend your choice and clearly state what assumptions would be required to transfer or adapt IKEA's strategy in the chosen company(ies) or industry(ies)
What are the fundamental operations of a linked list : What are the fundamental operations of a linked list? What is the main advantage of a linked list over an array?
Private businesses have great interest inquality primary : Private businesses have a great interest inquality primary and secondaryeducation becausetoday's students are tomorrow's employees.
Potential for negotiations in next round of contract talks : What impact might this have on the potential for negotiations in the next round of contract talks?
Test bivariate relationships between casual serum glucose : PUN105 Assessment - Analytical Report - Describe and test the bivariate relationships between casual serum glucose at the baseline examination
Evaluate and discuss the types of evaluations : Evaluate and discuss the types of evaluations shown in Figures 11-1(Graphic Rating Scale, 11-3 (Objective Method), and 11-6 (360 Evaluation)

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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