Ace - AI Tutor
Ask Our Educators
Textbooks
My Library
Flashcards
Scribe - AI Notes
Notes & Exams
Download App
amparo robinson

amparo r.

Divider

Questions asked

BEST MATCH

Problem 3. Asymptotics Given an array A of n integers, you’d like to output a two-dimensional n \times n array B in which B[i, j] = max A[i], A[i + 1], . . . , A[j] for each i < j. For i >= j the value of B[i, j] can be left as is. for i = 1, 2, . . . , n for j = i + 1, . . . , n Compute the maximum of the entries A[i], A[i + 1], . . . , A[j]. Store the maximum value in B[i, j].

View Answer
divider
BEST MATCH

Which test would the nurse perform on a patient who reports impaired balance?

View Answer
divider
BEST MATCH

Which of the following is NOT a common technique used to measure diffusion in solid materials? A) X-ray diffraction B) No option is correct C) Differential scanning calorimetry (DSC) D) Electron microscopy E) Secondary ion mass spectrometry (SIMS)

View Answer
divider
BEST MATCH

Suppose $f: A \to B$ is a function and $X \subseteq A$. Check all the statements that are true: A. $f^{-1}(f(X)) \subseteq X$ B. $f^{-1}(f(X)) \subseteq X$ if $f$ is 1-1 C. $f^{-1}(f(X)) \supseteq X$ D. $f^{-1}(f(X)) \supseteq X$ if $f$ is 1-1 E. None of the above

View Answer
divider
BEST MATCH

Write a MATLAB code to implement a Bipolar for the data 1 0 0 1 1 0.

View Answer
divider
BEST MATCH

(Related to Checkpoint 12.1) (Calculating project cash flows and NPV) You are considering expanding your product line that currently consists of skateboards to include gas-powered skateboards, and you feel you can sell 9,000 of these per year for 10 years (after which time this project is expected to shut down with solar-powered skateboards taking over). The gas skateboards would sell for $80 each with variable costs of $25 for each one produced, and annual fixed costs associated with production would be $190,000. In addition, there would be a $1,300,000 initial expenditure associated with the purchase of new production equipment. It is assumed that this initial expenditure will be depreciated using the simplified straight-line method down to zero over 10 years. The project will also require a one-time initial investment of $60,000 in net working capital associated with inventory, and this working capital investment will be recovered when the project is shut down. Finally, assume that the firm's marginal tax rate is 36 percent. a. What is the initial cash outlay associated with this project? b. What are the annual net cash flows associated with this project for years 1 through 9? c. What is the terminal cash flow in year 10 (that is, what is the free cash flow in year 10 plus any additional cash flows associated with termination of the project)? d. What is the project's NPV given a required rate of return of 8 percent?

View Answer
divider
BEST MATCH

Which of the following protons gives an NMR signal with the highest chemical shift value (farthest downfield)? b $^c$ d e $CH_3$ H-C-O-CH$_2$CH$_2$CH$_3$ $CH_3$ a O a O b O c O d O e

View Answer
divider
BEST MATCH

What did John O'Sullivan mean by 'Manifest Destiny' and how did America accomplish their Manifest Destiny in 1848?

View Answer
divider
BEST MATCH

Do you feel the evolution of assessment has helped in meeting the diverse needs of students today? Why or why not?

View Answer
divider
BEST MATCH

Implement a bash script that will contain the following: (a) Your script will receive two input arguments. The first argument will be a filename that stores numbers that are going to be sorted, and the second argument will be an integer that will be used to select a sorting algorithm. The input file can contain the numbers in one column with each line containing a different number. Your script can have the following command line usage: ./bash_sort -f | --filename <input filename> -a | --algorithm <sorting algorithm> [-h | --help] An example command-line for calling the script can be: ./bash_sort -f input.dat -a 1 which will sort the numbers in input.dat using one of the sorting algorithms (e.g. insertion sort). The same script can also be executed using long parameter options as: ./bash_sort --filename input.dat --algorithm 1 If the user selects the help option as: ./bash_sort -h or ./bash_sort --help then your script will display a help menu explaining the parameter options and the available sorting algorithms. (b) Implement a bash function inside your script that prints a usage statement. Your main script will call this function if the number of input arguments is not 2 or if the help option is not selected. (c) Implement the following sorting algorithms as shell functions inside your bash script: - Insertion sort (parameter option 1) - Merge sort (parameter option 2) - Heap sort (parameter option 3) - Quick sort (parameter option 4) Your functions will be able to process real-valued numbers. You can consider using the bc utility for this purpose. You can use the following command to round the division result to a smaller integer for bucket sort: echo "scale=0;3/2" | bc You can use the pseudo-codes in Cormen's Introduction to Algorithms course to implement the algorithms. (d) Randomly generate 10,000, 100,000, and 1,000,000 real-valued numbers and store them in a file. Sort your numbers using the functions you implemented and record the running times. To test counting sort, generate integers instead of real numbers. You can call the date command before and after calling each sorting algorithm and take the difference between the starting and ending times. (e) Sort the numbers you generated using the sort command, record the running times, and compare with the best running times you obtained in part (d). Which algorithm is used in the sort command?

View Answer
divider