1) Windows Powershell: Maps IP addresses to MAC addresses.
Maps IP addresses to MAC addresses.
What does the command show?
2) Ping is used to test the ability of one network host to communicate with another.
In: Computer Science
Suppose that the Dongguk football team plays twelve games in a season. In each game, they have a1/3 probability of winning, a 1/2 probability of losing, and a 1/6 probability of tying. The outcome of each game is independent of all others. [1] What is the probability that the team will end the season with a record of (7 wins, 3 losses, 2 ties)? [2] Suppose that for each win, the team receives three points, and for each tie they receive one point. Let X be a random variable that denotes the number of points the team has earned after four games. Calculate the probability mass function of X
In: Statistics and Probability
Suppose three players go on multiple rounds of kart race. In each round, every player has a winning probability of 1/3, independent of other rounds. Let N denote the number of rounds until player 1 has two consecutive wins.
a) Find P(N <= 10)
b) Find P(N = 10)
In: Statistics and Probability
Five people on the basement of a building get on an elevator that stops at seven floors. Assuming that each has an equal probability of going to any floor, find
(a) the probability that they all get off at different floors; (3 POINTS)
(b) the probability that two people get off at the same floor and all others get off at different floors. (4 POINTS)
In: Math
An urn contains 7 black balls, 4 red balls, 3 white balls and 1 blue ball, and a player is to draw one ball. If it is black, he wins $1, if it is red, he wins $2, if it is white he wins $3 and if it is blue, he pay $25.
a. Set up the empirical probability distribution for the random
variable X, the payoff of the game.
| Game Payoff (X) | Probability [P(X) |
| $1 | |
| $2 | |
| $3 | |
| $4 |
b. What is the mathematical expectation of this game?
c. In the long-run, will the player win or lose?
In: Statistics and Probability
Carol is running on the cross-country team, and she's really good at that too! It is estimated that Carol has a 60% probability of winning any race that she enters. There are five races left this year.
1.) What is the probability that Carol wins all five races?
2.) Following the same assumptions, what is the probability that Carol loses all five races?
3.) Why don't the answers to the previous two problems add up to 100%?
4.) Finally, what is the probability that Carol wins at least one race?
In: Statistics and Probability
1) determine whether the distribution represents a probability distribution if not state why
| x | 15 | 16 | 20 | 25 |
| p(x) | 0.2 | 0.5 | 0.7 | -0.8 |
2) Suit sales: the number of suits sold per day at a retail store is shown in the table with corresponding probabilities find the mean, variance and standard deviation of the distribution
| x | 0 | 1 | 2 | 3 | 4 |
| P(X) | .31 | .42 | .21 | .04 | .02 |
3) dice game: a person pays $2 to play a certain game by rolling a single die once. If a 1 or 2 comes up, the person wins nothing, however the player rolls a 3,4,5 or 6, he or she wins the difference between the number rolled and $2. find the expectation for this game is the game fair?
In: Statistics and Probability
2. (a) Yuk Ping belongs to an athletics club. In javelin
throwing competitions her throws
are normally distributed with mean 41.0 m and standard deviation
2.0 m.
(i) What is the probability of her throwing between 40 m and 46
m?
(ii) What distance will be exceeded by 60% of her throws?
(b) Gwen belongs to the same club. In competitions 85% of her
javelin throws exceed
35 m and 70% exceed 37.5 m. Her throws are normally
distributed.
(i) Find the mean and s.d. of Gwen's throws, each correct to two
decimal places.
(ii) What is the probability that, in a competition in which each
athlete takes a
single throw, Yuk Ping will beat Gwen?
(iii) The club has to choose one of these two athletes to enter a
major competition.
In order to qualify for the final rounds it is necessary to achieve
a throw of at
least 48 m in the preliminary rounds. Which athlete should be
chosen? Why?
In: Math
Consider the following situation: An empty elevator with a mass m is being pulled up by a cable. If the elevator has a mass of 1,192 kg and is slowing down at a rate 2.47 m/s2 while it is pulled up, what is the tension in the cable? Report your answer in SI units, rounded to a whole number
Please answer ASAP
In: Physics
Given the following program with fill in the blanks, implement the PQ class which is priority Queue MAX heap; the higher the number, the higher the prority of that number. None of the public methods has been implemented. You will need to write other methods to help implement some of the methods. For example you will need to implement bubbleUp to help with the insert method.
Methods to implement:
insert -> insert one element into the PQ and maintain heap shape/ order
remove-> remove the highest priority and maintain heap shape/order
poll -> gets the highest priority without removing
heapify -> build a priority queue from a given list of numbers
toSortedList-> removes all elements from the PQ into a list such that is is sorted from highest to lowest priority.
_________________________________________________________________________________________________________
public class PQimplement {
public static void main(String args[]){
List list = randomList(20);
System.out.println("Unsorted Input List: " + list.toString());
PQ priorityQueue = new PQ(list);
List sortedList = priorityQueue.toSortedList();
System.out.println("Sorted List Descending order: " + list.toString());
}
private static List randomList(int size){
final Random rng = new Random();
List list = new ArrayList<>(size);
for(int i = 0; i< size; i++){
list.add(rng.nextInt()%10);
}
return list;
}
}
| public class PQ { | |
| int data[]; | |
| int size; | |
| int capacity; | |
| PQ(int capacity){ | |
| this.capacity = capacity; | |
| size = 0; | |
| data = new int[capacity]; | |
| } | |
| PQ(){ | |
| capacity = 1000; | |
| size = 0; | |
| data = new int[capacity]; | |
| } | |
| PQ(List data){ | |
| capacity = data.size() > 1000 ? data.size() : 1000; | |
| size = data.size(); | |
| heapify(data); | |
| } | |
| public void insert(int data){ | |
| //Insert the new data into the PQ, ensure the heap maintains heap order/shape | |
| //fill in | |
| } | |
| public void remove(){ | |
| //Removes the root or the node with the highest priority | |
| //fill in | |
| } | |
| public int poll(){ | |
| //Returns the node with the highest priority. This method should NOT remove that node | |
| //fill in | |
| return -1; | |
| } | |
| private void heapify(List data){ | |
| //implement the heapify method that will build a PQ given a list of data | |
| } | |
| public List toSortedList(){ | |
| //this method will return a list of all the integers in the priority queue in sorted order (Max Heap) | |
| //this method will remove all the data from the pq | |
| } | |
| } |
In: Computer Science