Questions
You are given a reference to the head node of a linked list that stores integers....

You are given a reference to the head node of a linked list that stores integers. Please print the minimum element in this linked list. The class ListNode.java contains the description of a single node in the linked list. It has a num field to store the integer number and a reference next that points to the next element in the list. The file MyList.class is a pre-defined java code, that creates a linked list. The file ListSmallest.java creates an instance of MyList, and gets the head node of this list. Please fill out the part that says “TODO”, that computes the minimum element in the list. For fun, please solve this problem recursively. This means that no part of your solution may include iterative loops. The list will not contain any integer greater than 2000000.

ListSmallest.java:

public class ListSmallest {

   public static void main(String [] args) {
      
       // Creating an instance of MyList.
       MyList L = new MyList();

       // Get the head of the linked list.
       ListNode head = L.getHead();

       // Create an object of this program to avoid static context.
       ListSmallest l = new ListSmallest();

       // head is the head of my linked list L.
       // TODO: please write a function to print the minimum element in this list. Please store this in the variable m.
       int m = 0; // store the min in this variable.

       System.out.println("The smallest is " + m);
   }
}

ListNode.java:

public class ListNode
{
public int num;
public ListNode next;

public ListNode(int _num, ListNode _next)
{
num = _num;
next = _next;
}
}

MyList.java:

public class MyList
{
private ListNode head;

MyList()
{
System.out.println("Loading my list.");
for (int i = 0; i < 50000; ++i) {
this.head = new ListNode(200000 - i, this.head);
}
this.head = new ListNode(17, this.head);
for (int j = 50000; j < 100000; ++j)
{
this.head = new ListNode(200000 - j, this.head);
}
System.out.println("My list is successfully loaded. Please print the smallest element.");
}

public ListNode getHead()
{
return this.head;
}
}

CANNOT ADJUST NODE SIZE!!

MUST SOLVE RECURSIVELY!!

In: Computer Science

You are given a reference to the head node of a linked list that stores integers....

You are given a reference to the head node of a linked list that stores integers. Please print the minimum element in this linked list. The class ListNode.java contains the description of a single node in the linked list. It has a num field to store the integer number and a reference next that points to the next element in the list. The file MyList.class is a pre-defined java code, that creates a linked list. The file ListSmallest.java creates an instance of MyList, and gets the head node of this list. Please fill out the part that says “TODO”, that computes the minimum element in the list. For fun, please solve this problem recursively. This means that no part of your solution may include iterative loops. The list will not contain any integer greater than 2000000.

ListSmallest.java:

public class ListSmallest {

   public static void main(String [] args) {
      
       // Creating an instance of MyList.
       MyList L = new MyList();

       // Get the head of the linked list.
       ListNode head = L.getHead();

       // Create an object of this program to avoid static context.
       ListSmallest l = new ListSmallest();

       // head is the head of my linked list L.
       // TODO: please write a function to print the minimum element in this list. Please store this in the variable m.
       int m = 0; // store the min in this variable.

       System.out.println("The smallest is " + m);
   }
}

ListNode.java:

public class ListNode
{
public int num;
public ListNode next;

public ListNode(int _num, ListNode _next)
{
num = _num;
next = _next;
}
}

MyList.java:

public class MyList
{
private ListNode head;

MyList()
{
System.out.println("Loading my list.");
for (int i = 0; i < 50000; ++i) {
this.head = new ListNode(200000 - i, this.head);
}
this.head = new ListNode(17, this.head);
for (int j = 50000; j < 100000; ++j)
{
this.head = new ListNode(200000 - j, this.head);
}
System.out.println("My list is successfully loaded. Please print the smallest element.");
}

public ListNode getHead()
{
return this.head;
}
}

In: Computer Science

You are given a reference to the head node of a linked list that stores integers....

You are given a reference to the head node of a linked list that stores integers. Please print the minimum element in this linked list. The class ListNode.java contains the description of a single node in the linked list. It has a num field to store the integer number and a reference next that points to the next element in the list. The file MyList.class is a pre-defined java code, that creates a linked list. The file ListSmallest.java creates an instance of MyList, and gets the head node of this list. Please fill out the part that says “TODO”, that computes the minimum element in the list. For fun, please solve this problem recursively. This means that no part of your solution may include iterative loops. The list will not contain any integer greater than 2000000.

ListSmallest.java:

public class ListSmallest {

   public static void main(String [] args) {
      
       // Creating an instance of MyList.
       MyList L = new MyList();

       // Get the head of the linked list.
       ListNode head = L.getHead();

       // Create an object of this program to avoid static context.
       ListSmallest l = new ListSmallest();

       // head is the head of my linked list L.
       // TODO: please write a function to print the minimum element in this list. Please store this in the variable m.
       int m = 0; // store the min in this variable.

       System.out.println("The smallest is " + m);
   }
}

ListNode.java:

public class ListNode
{
public int num;
public ListNode next;

public ListNode(int _num, ListNode _next)
{
num = _num;
next = _next;
}
}

MyList.java:

public class MyList
{
private ListNode head;

MyList()
{
System.out.println("Loading my list.");
for (int i = 0; i < 50000; ++i) {
this.head = new ListNode(200000 - i, this.head);
}
this.head = new ListNode(17, this.head);
for (int j = 50000; j < 100000; ++j)
{
this.head = new ListNode(200000 - j, this.head);
}
System.out.println("My list is successfully loaded. Please print the smallest element.");
}

public ListNode getHead()
{
return this.head;
}
}

CANNOT ADJUST NODE SIZE

In: Computer Science

(15.28) Almost all medical schools in the United States require students to take the Medical College...

(15.28) Almost all medical schools in the United States require students to take the Medical College Admission Test (MCAT). To estimate the mean score μ of those who took the MCAT on your campus, you will obtain the scores of an SRS of students. The scores follow a Normal distribution, and from published information you know that the standard deviation is 6.5. Suppose that (unknown to you) the mean score of those taking the MCAT on your campus is 24. In answering the following, use z-scores rounded to two decimal places. If you choose one student at random, what is the probability (±0.0001) that the student's score is between 20 and 30? You sample 27 students. What is the standard deviation (±0.01) of sampling distribution of their average score x¯¯¯? What is the probability (±0.0001) that the mean score of your sample is between 20 and 30?

In: Statistics and Probability

Suppose a new standardized test is given to 100 randomly selected third-grade students in Connecticut. The...

Suppose a new standardized test is given to 100 randomly selected third-grade students in Connecticut. The sample average score x¯ on the test is 58 points, and the sample standard deviation, sx, is 8 points.

2.1 The authors pan to administer the test to all third-grade students in Connecticut. Construct 95% confidence interval for the mean score on all Connecticut third graders. (5 points)

2.2 Suppose the same test is given to a 200 randomly selected third graders from Iowa, producing a sample average of 62 points and sample standard deviation of 11 points. Construct a 90% confidence interval for the difference in mean scores between Connecticut and Iowa. (10 points)

2.3 Can you conclude with a high degree of confidence that the population means for Iowa and Connecticut students are difference? (10 points)

In: Statistics and Probability

. A study was conducted to examine the correlation between number of study hours and students...

. A study was conducted to examine the correlation between number of study hours and students grads in exam. Study hours for students: 2, 3, 5, 6, 8, 10, 10, 2, 5, 6, 5, 3, 7, 6, 2, 7, 6, 8, 2, 5 Grads in exam for students: 3, 4, 6, 7, 8, 10, 9, 8, 3, 6, 5, 4, 6, 6, 3, 7, 6, 3, 4, 5 1- as ungrouped data find the frequency, accumulated relative frequency, and accumulative relative frequency for study hours. 2- Frequency Polygon for study hours. 3- percentile graph for study hours. 4- determine whether the data for study hours are normally distributed with explanation. 5- determine whether the data for study hours are uni-modal, bimodal, or multimodal. 6- scatter and plot diagram

In: Statistics and Probability

. A study was conducted to examine the correlation between number of study hours and students...

. A study was conducted to examine the correlation between number of study hours and students grads in exam. Study hors for students: 2, 3, 5, 6, 8, 10, 10, 2, 5, 6, 5, 3, 7, 6, 2, 7, 6, 8, 2, 5 Grads in exam for students: 3, 4, 6, 7, 8, 10, 9, 8, 3, 6, 5, 4, 6, 6, 3, 7, 6, 3, 4, 5 1- as ungrouped data find the frequency, accumulated relative frequency, and accumulative relative frequency for study hours. 2- Frequency Polygon for study hours. 3- percentile graph for study hours. 4- determine whether the data for study hours are normally distributed with explanation. 5- determine whether the data for study hours are uni-modal, bimodal, or multimodal. 6- scatter and plot diagram

In: Statistics and Probability

An educational researcher wanted to know if in-class activities significantly improved students’ learning compared to traditional...

An educational researcher wanted to know if in-class activities significantly improved students’ learning compared to traditional lecture only teaching methods. Ten students matched on GPA, Year in school, and academic major were randomly selected from the current student population. One student from each pair was randomly assigned to either the Lecture Only class or Lecture plus Group Activities class. At the end of the semester, students’ final exam scores were recorded and teaching methods were compared.

Which type of statistical test should the researcher do?


A. one sample Z-test

B. one sample t-test

C. independent two sample t-test

D. matched pairs t-test


one sample Z-test

one sample t-test

independent two sample t-test

matched pairs t-test

In: Statistics and Probability

- hierarchical or partitional - overlapping or non-overlapping - fuzzy or crisp - complete or incomplete...

- hierarchical or partitional
- overlapping or non-overlapping
- fuzzy or crisp
- complete or incomplete

Note: Each part should be labeled with four characteristics, e.g., partitional, overlapping, crisp, and incomplete. Also, if you feel there may be some ambiguity about what characteristics a grouping has, provide a short justification of your answer.

Case 1: The objects are the students in a class. There are groups for each official grade students received for the class.

Case 2: The objects are cities. There are groups of cities corresponding to various locations, namely, county (local region), state or province, and country.

Case 3: The objects are the applicants to a college. Each applicant is assigned a score from 0 to 10 indicating the likelihood/desirability of their admission. Even before any decisions have been made, the admissions personnel view the students as belonging to two groups: those that will be accepted and those that will be rejected.

In: Statistics and Probability

The mean age of random university, College students in a previous term was 26.6 years old....

The mean age of random university, College students in a previous term was 26.6 years old. An instructor thinks the mean age for online students is older than 26.6. She randomly surveys 60 online students and finds that the sample mean is 29.6 with a standard deviation of 2.1. Conduct a hypothesis test at the 5% level. Note: If you are using a Student's t-distribution for the problem, you may assume that the underlying population is normally distributed. (In general, you must first prove that assumption, though.)

-state the null hypothesis

-state the alternative hypothesis

- In words state what random variable P' represents

- State the distribution for the test: P'~

-what is the test statistics? z or t distribution

-What is the P value

- Explain what the P value means

- Sketch picture of the situation

- construct 95% construction interval for the true proportion

In: Statistics and Probability