Reference no: EM13702227
Question 1: Write a function named 'short_path' which has two input parameters {M, N} and one output parameter T.
We shall assume that each element of M should be a number in the range [0,N] and that M is a square matrix.
Question 2: Each element M(i,j) represents the cost of travelling from location i to location j.
Use an if-end statement to check whether for all k, M(k,k) = 0. If it is not, display an error message of your choice, set T to 1 and terminate the function (in other words, the cost to travel from i to i should be zero, hint: use 'return').
Question 3: Assuming the condition in part (b) has been satisfied, find the triple of locations {i, j ,k} with the shortest distance between them.
That is, the value V = M(i,j) + M(j,k) should be the minimum among all triples {i,j,k} one could try. Set T to the triple of indices you found.
Create a simple command line program
: Create a simple command line program that simulates the rolling of a pair of six sided dice a user given number of times. The number of times to roll the pair of dice should be read as input from the argv array on the command line.
|
Construct the arraylisttype class application
: Construct the Student Class Student.h and Student.cpp student class should add a Student.h header file for your class definitions and a Student.cpp implementation file comprised of first name, last name, ram id
|
Importance of monitoring system performance
: Describe in your own words the purpose of all user interfaces, whether command or menu driven and explain the importance of monitoring system performance and why Windows make this information available to the user.
|
Design a logical right-shift register
: Design a logical right-shift register using JK flip-flop. Parallel load the input 101011 into your circuit. Show all different clock cycles of the outputs from 101011 to 000000
|
Write a function named short_path
: Write a function named 'short_path' which has two input parameters {M, N} and one output parameter T.
|
Use perl script on window
: Use Perl script on window to read in all file in a directory and concatenate them in one big file.
|
Find the largest element and print out the index and value
: Write a function maxv() that returns the largest element of a vector argument. Find the largest element and print out the index and value.
|
Design a class that can be used to hold information
: Implement and design a class that can be used to hold information about a musical note - Prepare a complete java program the default constructor should set a note to a middle C quarter note.
|
Calculate the concentration of ag+ ions in mol/l
: Question- Ksp of AgCl is 1.6E-10 and the ksp of Ag3PO4 is 1.8e-18 if Ag+ is added without changing the volve to 1.00 L if the two solutions, one containing 0.10 mol PO4^3- calculate the concentration of Ag+ ions in mol/L required to initiate
|