Question



A 3-dimensional surface contains a saddle point when the point is a global minimum along a line parallel to either the x or t
There are 5 saddle points in the sample. One is at A[81[8] and has the value 0.50, which is the maximum value of its row, but
A 3-dimensional surface contains a saddle point when the point is a global minimum along a line parallel to either the x or the y axis, but a global maximum along the other axis. You'll usually see a "U" shape meeting an upside-down "U" shape. The classic horseback riding saddle has one such saddle point, and, not coincidentally, it is a rider's most stable position The input will be a 2-dimensional array AInIn] of numbers, representing a lattice approximation of a surface. That is, given an (x,) pair of integers, the array entry A[x]y contains the height (z-coordinate) of the surface In the sample surface shown (thank yo to Wikipedial), the array might be 0.50 0.62 0.72 0.80 0.88 0.93 0.97 0.99 1.00 0.99 0.97 0.93 0.88 0.80 0.72 0.62 0.50 0.38 0.50 0.60 0.69 0.76 0.81 0.85 0.88 0.88 0.88 0.85 0.81 0.76 0.69 0.60 Ο.50 0.38 0.28 0.40 0.50 0.59 0.66 0,71 0.75 0.770.78 0.77 0.75 0.71 0.66 0.59 0.50 0.40 0.28 0.20 0.31 0.41 0.50 0.57 0.62 0.66 0.69 0.70 0.69 0.66 0.62 0.57 0.50 0.41 0.31 0.20 0.12 0.24 0.34 0.43 0.50 0.55 0.59 0.62 0.62 0.62 0.59 0.55 0.50 0.43 0.34 0.24 0.12 0.07 0.19 0.29 0.38 0.45 0.50 0.54 0.56 0.57 0.56 0.54 0.50 0,45 0.38 0.29 0.19 0.07 0.03 0.15 0.25 0.34 0.41 0.46 0.50 0,52 0.53 0,52 0.50 0,46 0.41 0.34 0,25 0.15 0.03 0.01 0.12 0.23 0,31 0.38 0,44 0.48 0,50 0.51 0.50 0.48 0.44 0,38 0.31 0.23 0.12 0.01 0.00 0.12 0.22 0.30 0.38 0.43 0.47 0.49 0.50 0,49 0.47 0.43 0.38 0.30 0.22 0.12 0.00 0.01 0.12 0.23 0.31 0.38 0.44 0.48 0.50 0.51 0.50 0.48 0.44 0.38 0.31 0.23 0.12 0.01 0.03 0.15 0.25 0.34 0.41 0.46 0.50 0.52 0.53 0.52 0.50 0.46 0.41 0.34 0.25 o.15 0.03 0.07 0.19 0.29 0.38 0.45 0.50 0.54 0.56 0.57 0.56 0.54 0.50 0.45 0.38 0.29 0.19 0.07 0.12 0.24 0.34 0.43 0.50 0.55 0.59 0.62 0.62 0.62 0.59 0.55 0.50 0.43 0.34 0.24 0.12 0.20 0.31 0.41 0.50 0.57 0,62 0.66 0,69 0.70 0.69 0.66 0,62 0.57 0.50 0,41 0.31 0.20 0.28 0.40 0.50 0.59 0.66 0.71 0.75 0.770.78 0.77 0.75 0.71 0.66 0.59 0.50 0.40 0.28 0.38 0.50 0.60 0.69 0.76 0.81 0.85 0.88 0.88 0.88 0.85 0.81 0.76 0.69 0.60 0.50 0.38 0.50 0.62 0.72 0.80 0.88 0.93 0.97 0,99 1.00 0.99 0.97 0,93 0.88 0.80 0.72 0.62 0.50
There are 5 saddle points in the sample. One is at A[81[8] and has the value 0.50, which is the maximum value of its row, but the minimum value of its column. The other 4 are at the corners of the matrix A[OI[O], AIO][16], A [16][0] and A[16][16]) each of which is the minimum of its row, and the maximum of its column. Your algorithm will locate and output all saddle points, i.e., all entries A[xJlyl for which the entry is the max in its row and min in its column, or vice versa. There might be 1 saddle point, several saddle points or perhaps no saddle points. Write your algorithm using pseudocode and document it with assertions and comments. You may assume that max and min are functions that work in the expected fashion, i.e., your algorithm can freely make use of max and min. That doesn't mean that max and min are "free" in terms of cost! Each of them will still cost time in proportion to the number of elements it needs to scan. Determine the running time of your algorithm using O-notation, as a function of n. Remember that time is a precious resource: the faster your algorithm, the better your grade
0 0
Add a comment Improve this question Transcribed image text
Answer #1


algorithm wil be flky The PSedodo耘 len do den do index-min-d pxint i ithm い! This is keex than the notnal naive o a う a Sadd

Add a comment
Know the answer?
Add Answer to:
A 3-dimensional surface contains a saddle point when the point is a global minimum along a line parallel to eith...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Frequency of Cloud Cover over Minneapolis in January Time of day 1. 0 Fraction of sky...

    Frequency of Cloud Cover over Minneapolis in January Time of day 1. 0 Fraction of sky covered 20.8 20.7 20.6 20.5 20.4 20.3 20.2 20.1 Midn. 3AM 6AM 9AM Noon 3.P. M 6P.M 9P.M 0.450.48 0.47 0.45 0.41 0.39 0.41 0.38 0.48 0.52 0.49 0.57 0.55 0.53 0.46 0.46 0.50 0.55 0.52 0.62 0.60 0.57 0.490.43 hos oss 0.52 0.56 0.54 0.64 0.63 0.59 0.52 0.47 0.54 0.59 0.57 0.66 0.65 0.61 0.54 0.49 0.55 0.59 0.59 0.69 0.67 0.64...

  • a. Using the table below, predict the secondary structure most likely adopted by the heptapeptide "RANGEHEAL". W...

    a. Using the table below, predict the secondary structure most likely adopted by the heptapeptide "RANGEHEAL". Will it be alpha-helical, beta-strand, or just random coil? b. Hydrogen bonds between backbone residues stabilize interactions between ​ helixes and ​ sheets. Knowing this and other information about hydrogen bonds, which amino acid from the picture below will destabilize secondary protein structure? Conformational Preferences of the Amino Acids Preference Amino acid a-helix B-strand Reverse turn Glu 1.59 0.52 1.01 Ala 1.41 0.72 0.82...

  • 4. The following table shows unit costs across different countries: Economy Footwear Textiles Clothing Metal Products...

    4. The following table shows unit costs across different countries: Economy Footwear Textiles Clothing Metal Products Wood Products Rubber Products Plastic Electrical Products Machinery Egypt NA 1.50 0.50 0.85 0.48 1.50 1.23 0.93 India 0.99 1.01 0.49 0.97 0.91 0.88 0.88 0.85 Indonesia 0.85 0.47 0.95 0.55 0.53 0.72 0.64 0.76 Kenya 1.13 1.61 1.17 0.91 1.20 0.61 0.63 0.55 Malaysia 1.08 0.73 1.42 0.83 0.85 0.76 0.92 0.97 Mexico 1.62 0.96 1.20 0.76 0.76 0.96 0.83 0.83 Philippines 1.36...

  • Use Table 8.1, a computer, or a calculator to answer the following. Suppose a candidate for...

    Use Table 8.1, a computer, or a calculator to answer the following. Suppose a candidate for public office is favored by only 47% of the voters. If a sample survey randomly selects 2,500 voters, the percentage in the sample who favor the candidate can be thought of as a measurement from a normal curve with a mean of 47% and a standard deviation of 1%. Based on this information, how often (as a %) would such a survey show that...

  • ratio may be increased to 0 45 lor normal ween TABLE V- 3- VOLUME OF COARSE...

    ratio may be increased to 0 45 lor normal ween TABLE V- 3- VOLUME OF COARSE AGGREGATE PER UNIT OF VOLUME OF CONCRETE Maximum size of aggregate in Volume of dry rodded coarse aggregate Per unit volume of concrete for different fineness moduli of sand 2.40 0.50 0.59 0.66 0.71 0.75 0.78 0.82 0.87 2.60 0.48 0.57 0.64 0.69 0.73 0.76 0.80 0.85 2.80 0.46 0.55 0.62 0.67 0.71 0.74 0.78 0.83 3.00 0.44 0.53 0.60 0.65 0.69 0.72 0.76...

  • 2. (25 P) A random number generator was used to generate a 100 numbers listed below....

    2. (25 P) A random number generator was used to generate a 100 numbers listed below. Perform x2 goodness of fit test to check whether the data distributed uniformly in the interval [0, 1] (a= 0.05, state the hypothesis first). 0.01 0.01 0.02 0.03 0.03 0.05 0.05 0.06 0.06 0.06 0.07 0.08 0.08 0.09 0.12 0.13 0.15 0.16 0.18 0.19 0.21 0.24 0.24 0.25 0.25 0.26 0.27 0.27 0.27 0.28 0.28 0.28 0.29 0.29 0.3 0.31 0.32 0.32 0.33 0.33...

  • Answer each question please The Global Land and Ocean Temperature Anomalies (the difference between the actual...

    Answer each question please The Global Land and Ocean Temperature Anomalies (the difference between the actual temperature and the mean (normal) temperature were calculated every November from 1880-2015, and they are presented below in Table 2 . Create a graphical representation of the data with the Tomperatan Amaier on the y-axis and Yar on the 2. Find the average, standard deviation, and range of the temperature anomalies. Interpret the results. 3. Find the average temperature anomalies and standard deviations for...

  • Answer question 4-5. Thanks The Global Land and Ocean Temperature Anomalies (the difference between the actual...

    Answer question 4-5. Thanks The Global Land and Ocean Temperature Anomalies (the difference between the actual temperature and the mean (normal) temperature were calculated every November from 1880-2015, and they are presented below in Table 2 . Create a graphical representation of the data with the Tomperatan Amaier on the y-axis and Yar on the 2. Find the average, standard deviation, and range of the temperature anomalies. Interpret the results. 3. Find the average temperature anomalies and standard deviations for...

  • Please calculate the chemical shift for Ha using the "Aromatic Proton Shift Calculation" Table. Ha H3C02C...

    Please calculate the chemical shift for Ha using the "Aromatic Proton Shift Calculation" Table. Ha H3C02C CN MezN Hb Hc Answer: Fr Jump to... CHEM 308 Class 15.04.2024 CHEM 308 AROMATIC PROTONS CHEMICAL SHIFT CALCULATION SHEET H Zomo DAH = 7.36 + Zorme + Zmeta + Zpara Z mets Zpara Zi for R (ppm) Substituent R Zortho Zmeta Zpara Zmet Zpara H CH, 0.0 -0.18 0.02 0.02 -0.07 C(CH3) CHCI CH,OH 0.0 -0.11 -0.08 -0.01 -0.07 Zi for R (ppm)...

  • 0.00 0.20 0.60 0.43 0.75 0.27 1.45 0.19 0.26 0.04 0.61 0.26 0.80 0.36 0.26 1.30 0.01...

    0.00 0.20 0.60 0.43 0.75 0.27 1.45 0.19 0.26 0.04 0.61 0.26 0.80 0.36 0.26 1.30 0.01 0.10 0.06 0.19 0.51 1.74 0.01 0.19 0.06 0.19 0.17 0.25 0.24 0.36 0.15 0.36 0.07 1.18 0.83 0.23 0.06 0.01 0.05 0.78 1.14 0.41 0.38 0.40 1.46 0.07 0.63 0.91 0.21 0.75 0.19 0.59 0.12 1.12 0.97 0.02 0.04 0.38 0.56 0.33 0.16 0.16 0.29 0.24 0.02 0.98 0.44 0.19 0.63 0.59 0.50 0.40 1.56 0.12 3.17 0.13 0.41 0.11 0.05 0.59...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT