Math

Discrete Mathematics With ApplicationsFor each of the algorithm segments in 6—19, assume that n is a positive integer. (a) Compute the actual number of elementary operations (additions, subtractions, multiplications, divisions, and comparisons) that are performed when the algorithm segment is executed. For simplicity, however, count only comparisons that occur within if then statements; ignore those implied by for-next loops. (b) Use the theorem on polynomial orders to find an order for the algorithm segment. 12. for k : = 1 to n − 1 m a x : = a [ k ] for i : = k + 1 to n if m a x < a [ i ] then m a x : = a [ i ] next i a [ k ] : = m a x next kBuyFind*arrow_forward*

5th Edition

EPP + 1 other

Publisher: Cengage Learning,

ISBN: 9781337694193

Chapter 11.3, Problem 12ES

Textbook Problem

For each of the algorithm segments in 6—19, assume that *n *is a positive integer. (a) Compute the actual number of elementary operations (additions, subtractions, multiplications, divisions, and comparisons) that are performed when the algorithm segment is executed. For simplicity, however, count only comparisons that occur within if then statements; ignore those implied by for-next loops. (b) Use the theorem on polynomial orders to find an order for the algorithm segment.

12. for
*n*if
*i*
*k*

Discrete Mathematics With Applications

Show all chapter solutions

Ch. 11.1 - If f is a real-valued function of a real variable,...Ch. 11.1 - A point (x,y) lies on the graph of a real-valued...Ch. 11.1 - If a is any nonnegative real number, then the...Ch. 11.1 - Given a function f:RR and a real number M, the...Ch. 11.1 - Given a function f:RR , to prove that f is...Ch. 11.1 - Given a function f:RR , to prove that f is...Ch. 11.1 - The graph of a function f is shown below. a. Is...Ch. 11.1 - The graph of a function g is shown below. a. Is...Ch. 11.1 - Sketch the graphs of the power functions p1/3and...Ch. 11.1 - Sketch the graphs of the power functions p3 and p4...

Ch. 11.1 - Sketch the graphs of y=2x and y=2x for each real...Ch. 11.1 - Sketch a graph for each of the functions defined...Ch. 11.1 - Sketch a graph for each of the functions defined...Ch. 11.1 - Sketch a graph for each of the functions defined...Ch. 11.1 - Sketch a graph for each of the functions defined...Ch. 11.1 - In each of 10—13 a function is defined on a set of...Ch. 11.1 - In each of 10—13 a function is defined on a set of...Ch. 11.1 - In each of 10—13 a function is defined on a set of...Ch. 11.1 - In each of 10—13 a function is defined on a set of...Ch. 11.1 - The graph of a function f is shown below. Find the...Ch. 11.1 - Show that the function f:RR defined by the formula...Ch. 11.1 - Show that the function g:RR defined by the formula...Ch. 11.1 - Let h be the function from R to R defined by the...Ch. 11.1 - Let k:RR be the function defined by the formula...Ch. 11.1 - Show that if a function f:RRis increasing, then f...Ch. 11.1 - Given real-valued functions f and g with the same...Ch. 11.1 - a. Let m be any positive integer, and define...Ch. 11.1 - Let f be the function whose graph follows. Sketch...Ch. 11.1 - Let h be the function whose graph is shown below....Ch. 11.1 - Let f be a real-valued function of a real...Ch. 11.1 - Let f be a real-valued function of a real...Ch. 11.1 - Let f be a real-valued function of a real...Ch. 11.1 - In 27 and 28, functions f and g are defined. In...Ch. 11.1 - In 27 and 28, functions f and g are defined. In...Ch. 11.2 - A sentence of the form Ag(n)f(n) for every na...Ch. 11.2 - A sentence of the tirm “ 0f(n)Bg(n) for every nb ”...Ch. 11.2 - A sentence of the form “ Ag(n)f(n)Bg(n)for every...Ch. 11.2 - When n1,n n2 and n2 n5__________.Ch. 11.2 - According to the theorem on polynomial orders, if...Ch. 11.2 - If n is a positive integer, then 1+2+3++n has...Ch. 11.2 - The following is a formal definition for ...Ch. 11.2 - The following is a formal definition for...Ch. 11.2 - The following is a formal definition for ...Ch. 11.2 - In 4—9, express each statement using -, O-, or ...Ch. 11.2 - In 4—9, express each statement using -, O-, or ...Ch. 11.2 - In 4—9, express each statement using -, O-, or ...Ch. 11.2 - In 4—9, express each statement using -, O-, or ...Ch. 11.2 - In 4—9, express each statement using -, O-, or ...Ch. 11.2 - In 4—9, express each statement using -, O-, or ...Ch. 11.2 - a. Show that for any integer n1,02n2+15n+421n2 ....Ch. 11.2 - a. Show that for any integer n1,023n4+8n2+4n35n4 ....Ch. 11.2 - a. Show that for any integer n1,07n3+10n2+320n3 ....Ch. 11.2 - Use the definition of -notation to show that...Ch. 11.2 - Use the definition of -notation to show that...Ch. 11.2 - Use the definition of -notation to show that...Ch. 11.2 - Use the definition of -notation to show that...Ch. 11.2 - Use the definition of -notation to show that n2is...Ch. 11.2 - Prove Theorem 11.2.7(b): If f and g are...Ch. 11.2 - Prove Theorem 11.2.1(b): If f and g are...Ch. 11.2 - Without using Theorem 11.2.4 prove that n5 is not...Ch. 11.2 - Prove Theorem 11.2.4: If f is a real-valued...Ch. 11.2 - a. Use one of the methods of Example 11.2.4 to...Ch. 11.2 - a. Use one of the methods of Example 11.2.4 to...Ch. 11.2 - a. Use one of the methods of Example 11.2.4 to...Ch. 11.2 - Suppose P(n)=amnm+am1nm1++a2n2+a1n+a0 , where all...Ch. 11.2 - Use the theorem on polynomial orders to prove each...Ch. 11.2 - Use the theorem on polynomial orders to prove each...Ch. 11.2 - Use the theorem on polynomial orders to prove each...Ch. 11.2 - Use the theorem on polynomial orders to prove each...Ch. 11.2 - Use the theorem on polynomial orders to prove each...Ch. 11.2 - Use the theorem on polynomial orders to prove each...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - Prove each of the statements in 32—39. Use the...Ch. 11.2 - a. Prove: If c is a positive real number and if f...Ch. 11.2 - Prove: If c is a positive real number and...Ch. 11.2 - What can you say about a function f with the...Ch. 11.2 - Use Theorems 11.2.5-11.2.9 and the results of...Ch. 11.2 - Use Theorems 11.2.5-11.2.9 and the results of...Ch. 11.2 - Use Theorems 11.2.5-11.2.9 and the results of...Ch. 11.2 - a. Use mathematical induction to prove that if n...Ch. 11.2 - a. Let x be any positive real number. Use...Ch. 11.2 - Prove Theorem 11.2.6(b): If f and g are...Ch. 11.2 - Prove Theorem 11.2.7(a): If f is a real-valued...Ch. 11.2 - Prove Theorem 11.2.8: a. Let f and g be...Ch. 11.2 - Prove Theorem 11.2.9: a. Let f1,f2 , and g be...Ch. 11.3 - When an algorithm segment contains a nested...Ch. 11.3 - In the worst case for an input array of length n,...Ch. 11.3 - The worst-case order of the insertion sort...Ch. 11.3 - Suppose a computer takes 1 nanosecond ( =109...Ch. 11.3 - Suppose an algorithm requires cn2operations when...Ch. 11.3 - Suppose an algorithm requires cn3operations when...Ch. 11.3 - Exercises 4—5 explore the fact that for relatively...Ch. 11.3 - Exercises 4—5 explore the fact that for relatively...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - For each of the algorithm segments in 6—19, assume...Ch. 11.3 - Construct a table showing the result of each step...Ch. 11.3 - Construct a table showing the result of each step...Ch. 11.3 - Construct a trace table showing the action of...Ch. 11.3 - Construct a trace table showing the action of...Ch. 11.3 - How many comparisons between values of a[j] and x...Ch. 11.3 - How many comparisons between values of a[j] and x...Ch. 11.3 - According to Example 11.3.6. the maximum number of...Ch. 11.3 - Consider the recurrence relation that arose in...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 28—35 refer to selection sort, which is...Ch. 11.3 - Exercises 36—39 refer to the following algorithm...Ch. 11.3 - Exercises 36—39 refer to the following algorithm...Ch. 11.3 - Exercises 36—39 refer to the following algorithm...Ch. 11.3 - Exercises 36—39 refer to the following algorithm...Ch. 11.3 - Exercises 40—43 refer to another algorithm, known...Ch. 11.3 - Exercises 40—43 refer to another algorithm, known...Ch. 11.3 - Exercises 40—43 refer to another algorithm, known...Ch. 11.3 - Exercises 40—43 refer to another algorithm, known...Ch. 11.4 - The domain of any exponential function is , and...Ch. 11.4 - The domain of any logarithmic function is and its...Ch. 11.4 - If k is an integer and 2kx2k+1 then...Ch. 11.4 - If b is a real number with b1 , then there is a...Ch. 11.4 - If n is a positive integer, then 1+12+13++1nhas...Ch. 11.4 - Graph each function defined in 1-8. 1. f(x)=3x for...Ch. 11.4 - Graph each function defined in 1—8. 2. g(x)=(13)x...Ch. 11.4 - Graph each function defined in 1—8. 3. h(x)=log10x...Ch. 11.4 - Graph each function defined in 1—8. 4. k(x)=log2x...Ch. 11.4 - Graph each function defined in 1—8. 5. F(x)=log2x...Ch. 11.4 - Graph each function defined in 1—8. 6. G(x)=log2x...Ch. 11.4 - Graph each function defined in 1—8. 7. H(x)=xlog2x...Ch. 11.4 - Graph each function defined in 1—8. 8....Ch. 11.4 - The scale of the graph shown in Figure 11.4.1 is...Ch. 11.4 - a. Use the definition of logarithm to show that...Ch. 11.4 - Let b1 . a. Use the fact that u=logbvv=bu to show...Ch. 11.4 - Give a graphical interpretation for property...Ch. 11.4 - Suppose a positive real number x satisfies the...Ch. 11.4 - a. Prove that if x is a positive real number and k...Ch. 11.4 - If n is an odd integer and n1 ,is log2(n1)=log2(n)...Ch. 11.4 - If, n is an odd integer and n1 , is...Ch. 11.4 - If n is an odd integer and n1 , is...Ch. 11.4 - In 18 and 19, indicate how many binary digits are...Ch. 11.4 - In 18 and 19, indicate how many binary digits are...Ch. 11.4 - It was shown in the text that the number of binary...Ch. 11.4 - In each of 21 and 22, a sequence is specified by a...Ch. 11.4 - In each of 21 and 22, a sequence is specified by a...Ch. 11.4 - Define a sequence c1,c2,c3,recursively as follows:...Ch. 11.4 - Use strong mathematical induction to show that for...Ch. 11.4 - Exercises 25 and 26 refer to properties 11.4.9 and...Ch. 11.4 - Exercises 25 and 26 refer to properties 11.4.9 and...Ch. 11.4 - Use Theorems 11.2.7-11.2.9 and properties 11.4.11,...Ch. 11.4 - Use Theorems 11.2.7-11.2.9 and properties 11.4.11,...Ch. 11.4 - Use Theorems 11.2.7—11.2.9 and properties 11.4.11,...Ch. 11.4 - Use Theorems 11.2.7—11.2.9 and properties 11.4.11,...Ch. 11.4 - Show that 4n is not O(2n) .Ch. 11.4 - Prove each of the statements in 32—37, assuming n...Ch. 11.4 - Prove each of the statements in 32—37, assuming n...Ch. 11.4 - Prove each of the statements in 32—37, assuming n...Ch. 11.4 - Prove each of the statements in 32—37, assuming n...Ch. 11.4 - Prove each of the statements in 32—37, assuming n...Ch. 11.4 - Prove each of the statements in 32—37, assuming n...Ch. 11.4 - Quantities of the form k1n+k2nlognfor positive...Ch. 11.4 - Calculate the values of the harmonic sums...Ch. 11.4 - Use part (d) of Example 11.4.7 to show that...Ch. 11.4 - Show that log2n is (log2n) .Ch. 11.4 - Show that log2n is (log2n) .Ch. 11.4 - Prove by mathematical induction that n10n for...Ch. 11.4 - Prove by mathematical induction that log2nn for...Ch. 11.4 - Show that if n is a variable that takes positive...Ch. 11.4 - Let n be a variable that takes positive integer...Ch. 11.4 - For each positive real number u,log2uuUse this...Ch. 11.4 - Use the result of exercise 47 above to prove the...Ch. 11.4 - Exercises 49 and 50 use L’Hôpital’s rule from...Ch. 11.4 - Exercises 49 and 50 use L’Hôpital’s rule from...Ch. 11.4 - Complete the proof in Example 11.4.4.Ch. 11.5 - To solve a problem using a divide-and-conquer...Ch. 11.5 - To search an array using the binary search...Ch. 11.5 - The worst-case order of the binary search...Ch. 11.5 - To sort an array using the merge sort algorithm,...Ch. 11.5 - The worst-case order of the merge sort algorithm...Ch. 11.5 - Use the facts that log2103.32 and that for each...Ch. 11.5 - Suppose an algorithm requires clog2n operations...Ch. 11.5 - Exercises 3 and 4 illustrate that for relatively...Ch. 11.5 - Exercises 3 and 4 illustrate that for relatively...Ch. 11.5 - In 5 and 6, trace the action of the binary search...Ch. 11.5 - In 5 and 6, trace the action of the binary search...Ch. 11.5 - Suppose bot and top are positive integers with...Ch. 11.5 - Exercises 8—11 refer to the following algorithm...Ch. 11.5 - Exercises 8—11 refer to the following algorithm...Ch. 11.5 - Exercises 8—11 refer to the following algorithm...Ch. 11.5 - Exercises 8—11 refer to the following algorithm...Ch. 11.5 - Exercises 12—15 refer to the following algorithm...Ch. 11.5 - Exercises 12—15 refer to the following algorithm...Ch. 11.5 - Exercises 12—15 refer to the following algorithm...Ch. 11.5 - Exercises 12—15 refer to the following algorithm...Ch. 11.5 - Complete the proof of case 2 of the strong...Ch. 11.5 - Trace the modified binary search algorithm for the...Ch. 11.5 - Suppose an array of length k is input to the while...Ch. 11.5 - Let wnbe the number of iterations of the while...Ch. 11.5 - In 20 and 21, draw a diagram like Figure 11.5.4 to...Ch. 11.5 - In 20 and 21, draw a diagram like Figure 11.5.4 to...Ch. 11.5 - In 22 and 23, draw a diagram like Figure 11.5.5 to...Ch. 11.5 - In 22 and 23, draw a diagram like Figure 11.5.5 to...Ch. 11.5 - Show that given an array a[bot],a[bot+1],,a[top]of...Ch. 11.5 - The recurrence relation for m1,m2,m3,,which arises...Ch. 11.5 - It might seem that n1 multiplications are needed...

Find more solutions based on key concepts

Show solutions Determine the sizes of Aand Bto the nearest minute.

Mathematics For Machine Technology

54. Compound interest If $1000 is invested at 12%, compounded monthly, the future value S at any time t (in yea...

Mathematical Applications for the Management, Life, and Social Sciences

In Exercises 16-18, give a decimal answer as it appears on your calculator. Do not round off or convert to a di...

Mathematics: A Practical Odyssey

Convert the expressions in Exercises 6584 to power form. 8

Finite Mathematics

Find the x- and y-intercepts of thegraph of the equation. x3y3=1

Mathematical Excursions (MindTap Course List)

As we saw in Section 1.1, the total resistance in a series circuit is equal to the sum of the resistances in th...

Elementary Technical Mathematics

Fill in the blanks. The outcome at any stage of the experiment in a Markov process is called the of the experi...

Finite Mathematics for the Managerial, Life, and Social Sciences

The article Just How Safe Is That Jet? (USA TODAY, March 13, 2000) gave the following relative frequency distri...

Introduction To Statistics And Data Analysis

Factoring Trinomials Factor the trinomial. 72. 6y2 + 11y 21

Precalculus: Mathematics for Calculus (Standalone Book)

Slope of a Tangent Line In Exercises 97-100, find the slope of the tangent line to the graph of the function at...

Calculus: Early Transcendental Functions

Using an Equation Consider the equation 9x2+4y236x24y36=0. (a) Classify the graph of the equation as a circle, ...

Calculus of a Single Variable

Weinstein, McDermott, and Roediger (2010) report that students who were given questions to be answered while st...

Statistics for The Behavioral Sciences (MindTap Course List)

Bill works at a weekend convention by selling copies of a book. He receives a 2 commission for each copy sold. ...

Elementary Geometry For College Students, 7e

Find the gradient vector field of f. 21. f(x, y) = y sin(xy)

Multivariable Calculus

Use Table 12-2 to calculate the present value of the following ordinary annuities.
Annuity Payment Time Nominal...

Contemporary Mathematics for Business & Consumers

In Exercises 516, evaluate the given quantity. log4116

Finite Mathematics and Applied Calculus (MindTap Course List)

What degree Taylor polynomial about a = 1 is needed to approximate e1.05 accurate to within 0.0001?
n = 2
n = 3...

Study Guide for Stewart's Single Variable Calculus: Early Transcendentals, 8th

Use logarithmic differentiation to find the derivative of the function. y=x1x4+1

Single Variable Calculus: Early Transcendentals

Consider the following data for two variables, x and y.
Compute the standardized residuals for these data. Do ...

Essentials Of Statistics For Business & Economics

Evaluate the integral. 9. sin(lnt)tdt

Single Variable Calculus

True or False? In Exercises 63 and 64, determine whether the statement is true or false. If it is false, explai...

Calculus (MindTap Course List)

Consider the following time series data. a. Construct a time series plot. What type of pattern exists in the da...

Statistics for Business & Economics, Revised (MindTap Course List)

Find the volume of the solid of revolution that results when a right triangle with legs of lengths 5 in. and 7i...

Elementary Geometry for College Students

Changing the Order of Integration In Exercises 61-66, sketch the region of integration. Then evaluate the itera...

Multivariable Calculus

A researcher conducting a political poll for a statewide election would like to know the attitudes of college s...

Research Methods for the Behavioral Sciences (MindTap Course List)

Finding the Slope of a Graph In Exercises 83-88, find the slope of the graph of the function at the given point...

Calculus: Early Transcendental Functions (MindTap Course List)

Problems 5 through 10 refer to right triangle ABC with C = 90. In each case, use the given information to find ...

Trigonometry (MindTap Course List)

An acceptance sampling plan with n = 15 and c = 1 has been designed with a producers risk of .075. a. Was the v...

STATISTICS F/BUSINESS+ECONOMICS-TEXT

For each scatter plot, decide whay type of function you might choose as a model for the data. Explain your choi...

Calculus (MindTap Course List)

For problems 27-54, simplify each of the numerical expressions. Objective 2 and 3 72+52

Intermediate Algebra

Use a calculator to help solve each problem. Community growth The population of Eagle River is growing exponent...

College Algebra (MindTap Course List)

Let .f(x) = 30x2(1 x)2 for 0 x 1 and f(x) = 0 for all other values of x. (a) Verify that f is a probability ...

Calculus: Early Transcendentals

Terminology Consider a sample of size n. If every sample of size n has equal chance of being selected, what is ...

Understanding Basic Statistics

For f(x, y) = x2 – y2 and C, the parabola y = x2 from (0, 0) to (2, 4), ʃC∆f . dr =
a) 0 ...

Study Guide for Stewart's Multivariable Calculus, 8th

Using Horizontal Asymptotes In Exercises 37-40, match the function with its graph. Use horizontal asymptotes as...

Calculus: An Applied Approach (MindTap Course List)

Describe the process of simple random sampling, recognize this technique when it appears in a research report, ...

Research Methods for the Behavioral Sciences (MindTap Course List)

Simplify the expressions in Exercises 5764, given that x,y,z,a,b, and c are positive real numbers. (x+9)2

Applied Calculus

With H and K as in Exercise 18, prove that K is a normal subgroup of HK. Exercise18: If H is a subgroup of G, a...

Elements Of Modern Algebra

System Not Easily solved by Hand Calculation. Exercises S-23 through S-27 involve systems of equations that are...

Functions and Change: A Modeling Approach to College Algebra (MindTap Course List)

Consider the type of clothes dryer (gas or electric) purchased by each of five different customers at a certain...

Probability and Statistics for Engineering and the Sciences

Use a graph to give a rough estimate of the area of the region that lies beneath the given curve. Then find the...

Single Variable Calculus: Early Transcendentals, Volume I

Distinguish between descriptive and inferential statistics. Describe a research situation that would use each t...

Essentials Of Statistics

Which of the following measuring scales are displayed by frequency distribution polygons? a. Either interval or...

Essentials of Statistics for The Behavioral Sciences (MindTap Course List)

In Exercises 1-6, match the statement with one of the graphs (a)(f). 6. The slope of the line is negative, and ...

Applied Calculus for the Managerial, Life, and Social Sciences: A Brief Approach

In Problems 1332 use variation of parameters to solve the given nonhomogeneous system. 28. X=(0110)X+(1cott)

A First Course in Differential Equations with Modeling Applications (MindTap Course List)

For the following exercises, points P(4, 2) and Q(x, y) are on the graph of the function f(x)=x . 8. Use the va...

Calculus Volume 1

For the following exercises, graph the equations and shade the area of the region between the curves. Determine...

Calculus Volume 2

Writing Equations from Graphs Use the graph of fx=x to write an equation for the function represented by each g...

College Algebra

Consider the hypothesis test
The following results are for independent samples taken from the two populations....

Modern Business Statistics with Microsoft Office Excel (with XLSTAT Education Edition Printed Access Card) (MindTap Course List)