8. Assume you have a singly linked list with no tail pointer.
Implement removeTail(). Raise an exception of the method is called
on an empty list.
template<typename Object> class LinkedList {
private:
class Node {
Object data;
Node* next;
};
Node *head;
public:
LinkedList() : head(nullptr) {}
Object removeTail(Object data);
};
9. What are iterators? What purpose do they serve?
10. What does it mean to invalidate an iterator?
11. Explain the difference between separate chaining and open
addressing in hash tables.
12. Define load factor and explain its relevance to hash table
performance.
13. What are collisions with respect to hash tables?
14. Which hash tables distinguish between slots that have never
been used, and slots that once contained an item but has now been
deleted.
15. List and explain the worst-case and average-case running times
for each HashTable method below
(a) void insert(Key k, Value v)
(b) bool contains(Key k)
(c) Value get(Key k)
In: Computer Science
99% confidence interval of the difference
| (Height in feet) | F | Sig. | t | df | Sig. (2-tailed) | Mean difference | Std. Error difference | Lower | upper |
| Equal variances assumed | 2.854 | .091 | -1.608 | 3573 | .108 | -.032 | .020 | -.082 | .019 |
| International Student | N | Mean | Std. Deviation | Std. Error Mean |
| No | 3280 | 5.05 | .322 | .006 |
| Yes | 295 | 5.09 | .328 | .019 |
This question has 10 parts. Each of the 10 parts (Part A - Part J) has a dropdown list of possible answers. Choose the best answer from the dropdown list for EACH part of the question below.
Your analysis will focus on the variables "Height in feet" (NQ49_FT) and "International student" (NQ55)
Note: Be careful NOT to use the different variables NQ49_IN (Height in inches) or HT_INCH (Height in Inches)
Investigators are wondering if there is a difference in the average height in feet of international students compared with non-international students at CSUN. To examine their research question of interest, they will use data from the sample of CSUN students contained in the HSCI390.sav dataset. Using SPSS, test whether there appears to be a difference in the average height in feet of international students at CSUN when compared to non-international students at CSUN, using an alpha level (α) of 0.01. Provide the following information:
You will use the information above to complete the question parts below.
Part A: Which of the following represents the appropriate null hypothesis (H0), given this research question of interest?
PART A ANSWER: H0: [ Select ] ["µ1 - µ2 = 5.5", "µ1 - µ2 = 6.1", "µ = 5.3", "µ1 - µ2 = 0", "µ ≠ 0.78"]
Part B: Which of the following represents the appropriate alternative hypothesis (H1), given this research question of interest?
PART B ANSWER: H1: [ Select ] ["µ1 - µ2 ≠ 6.1", "µ1 - µ2 ≠ 0", "µ1 - µ2 = 5.5", "µ ≠ 5.3", "µ = 0.78"]
Part C: What is the mean height in feet of international students ("International student"=Yes)?
PART C ANSWER: [ Select ] ["5.73", "5.56", "5.88", "5.09", "4.98"]
Part D: What is the mean height in feet of non-international students ("International student"=No)?
PART D ANSWER: [ Select ] ["5.05", "5.14", "5.52", "5.28", "5.91"]
Part E: How many people in your sample are international students ("International student"=Yes)?
PART E ANSWER: [ Select ] ["247", "295", "326", "385", "459"]
Part F: How many people in your sample are non-international students ("International student"=No)?
PART F ANSWER: [ Select ] ["489", "3024", "3692", "2805", "3280"]
Part G: What is your t statistic?
PART G ANSWER: [ Select ] ["-2.417", "-1.608", "-0.531", "-4.298", "1.972"]
Part H: What is your degrees of freedom?
PART H ANSWER: [ Select ] ["2904", "3573", "1317", "3201", "2685"]
Part I: What is the p-value associated with your test statistic?
PART I ANSWER: [ Select ] ["0.452", "0.006", "0.108", "0.722", "0.563"]
Part J: What is your decision about the null hypothesis based on your test results?
PART J ANSWER: [ Select ] ["Reject the null", "Fail to reject (i.e., retain) the null"]
In: Statistics and Probability
Suppose that a student in this class uses their personalized
class data set to test the hypothesis that more than 50% of the
people in this class are in Business, and rejects the null
hypothesis at the 2% significance level. Consider the following
statements.
Determine which of the above statements are true or false. |
In: Statistics and Probability
The following table gives the weights, to the nearest kilogram, of randomly-selected male university students. 69 82 75 66 72 63 74 78 73 79 70 74 68 74 76 72 84 63 69 78 81 60 77 83 73 86 71 68 76 70 68 80 73 67 71 75 78 73 64 73 a. Using class intervals of size 5kg, construct a frequency distribution of the above data. b. Using the grouped data, calculate the following quantities: iv. Quartile number 1 v. Quartile number 3 vi. Variance vii. Standard Deviation (1 mark)
In: Statistics and Probability
In: Advanced Math
|
Obese |
Not obese |
Total |
|
|
SSB consumer |
125 |
125 |
250 |
|
Non-SSB consumer |
250 |
500 |
750 |
|
Total |
375 |
625 |
1000 |
In: Statistics and Probability
Question 1 of 4
A family plans to have 3 children. For each birth, assume that the probability of a boy is the same as the probability of a girl.
What is the probability that they will have three children of the same gender?
A- 0.5
B- 0.25
C- 0.375
D-0.125
E-none of these
Question 2 of 4
A person in a casino decides to play blackjack until he loses a game, but he will not play more than 3 games. Let L denote a loss and W denote a win.
What is the sample space for this random experiment?
A- S = {LLL, LLW, LWL, LWW, WLL, WLW, WWL, WWW}
B- S = {L, LW, LLW, LLL}
C- S = {L, LL, LLL}
D- S = {L, WL, WWL, WWW}
F- S = {L, WL, WWL}
Question 3 of 4
A person in a casino decides to play 3 games of blackjack. Let L denote a loss and W denote a win. Define the event A as "the person loses at least one game of blackjack."
What are the possible outcomes for this event?
A- {LLL, LLW, LWL, LWW, WLL, WLW, WWL}
B- {LLL, LLW, LWL, LWW, WLL, WLW, WWL, WWW}
C-{LWW, WLW, WWL}
D- {L, WL, WWL}
E-{L, LL, LLL}
Question 4 of 4
Four students attempt to register online at the same time for an Introductory Statistics class that is full. Two are on the football team and two are on the basketball team. They are put on a wait list. Prior to the start of the semester, two enrolled students drop the course, so the professor randomly selects two of the four wait list students and gives them seats in the class.
What is the probability that both students selected play the same sport?
A, 1/12
B, 1/6
C, 1/3
C, 1/2
D, It is impossible to tell because the outcomes are not equally likely.
In: Statistics and Probability
Determine the missing properties for refrigerant R134a (CF3CH2F) for each state given. Show your three step decision process: i.e. 1) list two known properties, 2) determine the phase, 3) look up/interpolate properties from the correct table and show all calculations made for each case.
| Phase/quality | T | P | v | u | h |
| Phase name/X | celcius | kPa | m^3/kg | kJ/kg | kJ/kg |
| Sat. liquid | 520 | ||||
| 10 | 0.012 | ||||
| 73 | 685 | ||||
| 375 | 120 |
In: Mechanical Engineering
The following is a list of economic events:
i) Purchased inventory on account
ii) Paid dividends at the end of the year
iii) Received cash in payment for services
iv) Issued shares (contributed equity) for cash
v) Paid rent in cash
vi) Received a bill for electricity used
vii) Bought equipment for cash
viii) Billed customers for services
to make consistent with other answer formats change to:
a) indicate the accounts that would be affected by each transaction
b) Indicate whether each transaction increases, decreases or has no effect on assets liabilities or shareholders equity.
In: Accounting
77) According to the National Institute on Alcohol Abuse and
Alcoholism (NIAAA) and the National Institutes of Health (NIH), 41%
of college students nationwide engage in "binge-drinking" behavior:
having five or more drinks on one occasion during the past two
weeks. A college president wonders if the proportion of students
enrolled at her college who binge drink is actually lower than the
national proportion. In a commissioned study, 347 students are
selected randomly from a list of all students enrolled at the
college. Of these, 130 admit to having engaged in binge drinking.
The college president is more interested in testing her belief that
the proportion of students at her college who engage in binge
drinking is lower than the national proportion of
0.41. What is the P-value? (Round your answer to four
decimal places.)
P-value =
78) The Dow Jones Industrial Average (DJIA) high values and the total number of points scores in the Super Bowl were recorded for 20 different years. Software was used to find that the value of the linear correlation coefficient is r = 0.83.
Is there a linear correlation at the α = .05 level between DJIA high value and Super Bowl points?
A) Yes, because the absolute value of 0.83 is less than the critical value.
B) Yes, because the absolute value of 0.83 is greater than the critical value.
C) No, because the absolute value of 0.83 is less than the critical value.
D) No, because the absolute value of 0.83 is greater than the critical value
In: Statistics and Probability