Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991
Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991
8th Edition
ISBN: 9781259676512
Author: Kenneth H Rosen
Publisher: McGraw-Hill Education
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 7.4, Problem 41E

In this exercise we derive an estimate of the average-case complexity of the variant of the bubble sort algorithm that terminates once a pass has been made with no interchanges. Let Ibe the random variable on the set of permutations of a set ofndistinct integers {a j , a2,..an} with aj< a2< -< ansuch that A’(P) equals the number of comparisons used by the bubble sort to put these integers into increasing order.

  1. Show that, under the assumption that the input is equally likely to be any of the n! permutations of these integers, the average number of comparisons used by the bubble sort equals £(X).

  • UseExample ;inSection 3.3to show that £(X)< n(n -1)/2.
  • Show that the sort makes at least one comparison for every inversion of two integers in the input.
  • LetIfP)be the random variable that equals the number of inversions in the permutationP.Show that E(I) >£(J).
  • Let fa be the random variable withIjjffl= 1 if precedesajinPandkf, = 0otherwise. Show thatIfP) = IjrfP).
  • Show thatE(I)=Ik£] ;k).
  • Show that E(Jj-fc) = 1/2.[Hint:Show that Etfy, fc) = probability thatttyprecedesajin a permutationP.Then show it is equally likely for
  • to precedeajas it is for(ijto precede nj, in a permutation.]

  • Use parts (f) and (g) to show that E(E) = n(n -1)/4.
  • Conclude from parts (b), (d), and (h) that the average number of comparisons used to sortnintegers is 0(n2).
  • Blurred answer
    Students have asked these similar questions
    b) Use the linear congruential method to generate a sequence of 5 random numbers with given seed of 27, increment 43 and constant multiplier 17, modulus 100c) i. If an M/M/1 queue has utilization of 90%, what do you think will be the average queue length and the average response time? If the arrival rate is 100 jobs per secondii. If an M/D/1 queue has utilization of 80% do you expect its mean queue length and response time to be less, same, or greater than that of an M/M/1? Explain your answer.
    Consider a case in which X0 = 9,078. Using the mid-square method,i). Determine the first 10 random numbers.ii). Is this algorithm robust? Expound.
    Q1. In a statistics class of 42 students, 28 have volunteered for community service in the past. If two students are selected at random from this class, Find the following probability for both parts a and b, that exactly one of them have volunteered for community service in the past? Draw a tree diagram for this problem. a. Assuming selection with replacement.b. Assuming selection without replacement.

    Chapter 7 Solutions

    Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991

    Ch. 7.1 - Prob. 11ECh. 7.1 - t is the probability that afive-card poker hand...Ch. 7.1 - t is the probability tliat afive-card poker hand...Ch. 7.1 - t istheprobability that a five-card poker hand...Ch. 7.1 - t is theprobabilifrthatafive-cardpoker hand...Ch. 7.1 - t is the probability7that a five-card poker hand...Ch. 7.1 - Prob. 17ECh. 7.1 - Mat is the probability' that a five-card poker...Ch. 7.1 - Prob. 19ECh. 7.1 - probabihh’thatafiM^Ch. 7.1 - Prob. 21ECh. 7.1 - t is the probability that a positive integer not...Ch. 7.1 - t is the probability that a positive integer not...Ch. 7.1 - Prob. 24ECh. 7.1 - - Find the probability of winning a lottery by...Ch. 7.1 - 26.Find the pr obabilitj- of selecting none of the...Ch. 7.1 - Prob. 27ECh. 7.1 - Prob. 28ECh. 7.1 - Prob. 29ECh. 7.1 - Prob. 30ECh. 7.1 - Prob. 31ECh. 7.1 - Prob. 32ECh. 7.1 - i$theprobabilitytiiatAbby,Barry,andSy^...Ch. 7.1 - 34.Mat is the probability' that Bo, Colleen, Jeff,...Ch. 7.1 - roulette, a wheel with 38 numbers is spun. Of...Ch. 7.1 - ch is more likely: rolling a total of 8 when two...Ch. 7.1 - ch is more likely: rolling a total of 9 when hvo...Ch. 7.1 - A player in the Mega Millions lottery picks five...Ch. 7.1 - a player buys a Mega Millions ticket in many...Ch. 7.1 - A player in the Powerball lottery picks five...Ch. 7.1 - Aplayer in the Powerball lottery (see Exercise 40)...Ch. 7.1 - Two events E i and E2are calledindependentifp(Etfl...Ch. 7.1 - Prob. 43ECh. 7.1 - Suppose that instead of three doors, there are...Ch. 7.1 - s problem was posed by the Chevalier de Mere and...Ch. 7.2 - Prob. 1ECh. 7.2 - Prob. 2ECh. 7.2 - Prob. 3ECh. 7.2 - w that conditions (2) and (22) are met under...Ch. 7.2 - A pair of dice is loaded. The probability that a 4...Ch. 7.2 - t is the probability of these events when we...Ch. 7.2 - t is the probability of these events when we...Ch. 7.2 - 8.What is the probability of these events when we...Ch. 7.2 - t is the probability of these events when we...Ch. 7.2 - What is the probability of these events when we...Ch. 7.2 - pose, that £ and F are. events such that d(£)=0.7...Ch. 7.2 - pose that £ and Fare events such thatp(£) = 0.8...Ch. 7.2 - w that if £ and F are events, thenpfEn F) >p(E) +...Ch. 7.2 - Use mathematical induction to prove the following...Ch. 7.2 - w that if £x, £2,Enare events from afinite sample...Ch. 7.2 - Show that iff and f are independent events,...Ch. 7.2 - 17,It £ and F are independent events, prove or...Ch. 7.2 - What is the probability that hvo people chosen at...Ch. 7.2 - Mat is the probability that two people chosen at...Ch. 7.2 - Prob. 20ECh. 7.2 - Prob. 21ECh. 7.2 - February 29 occurs only inleap years, Years...Ch. 7.2 - ^Tiat is the conditional probabilitv that exactly...Ch. 7.2 - What is the. conditional probabilih' that exactly...Ch. 7.2 - Prob. 25ECh. 7.2 - Let Ebe the event that aranmly generated bit...Ch. 7.2 - Prob. 27ECh. 7.2 - a8. Assume that the probability a child is a boy...Ch. 7.2 - A group of six people play the game of “ odd...Ch. 7.2 - Find the probability that a randomly generated bit...Ch. 7.2 - Find the probability that a family with five...Ch. 7.2 - Prob. 32ECh. 7.2 - Prob. 33ECh. 7.2 - Find each of the following probabilities...Ch. 7.2 - d each of the following probabilities...Ch. 7.2 - Prob. 36ECh. 7.2 - Prob. 37ECh. 7.2 - 38.A pair of dice is rolled in a remote location...Ch. 7.2 - This exercise employs the probabilistic method to...Ch. 7.2 - Dense a Monte Carlo algorithm that determines...Ch. 7.2 - pseudocode to write out the probabilistic...Ch. 7.3 - i.Suppose that £ andFare events in a sample space...Ch. 7.3 - Suppose that Land Fare events in a sample space...Ch. 7.3 - 3.Suppose that Frida selects a ball by first...Ch. 7.3 - 4.Suppo s e that Ann selects a ball by first...Ch. 7.3 - Prob. 5ECh. 7.3 - Prob. 6ECh. 7.3 - Prob. 7ECh. 7.3 - 8,Suppose that one person in 10,000 people has a...Ch. 7.3 - Suppose that 8% of the patients tested in a clinic...Ch. 7.3 - io,Suppose that 4% of the patients tested in a...Ch. 7.3 - ...Ch. 7.3 - ...Ch. 7.3 - Prob. 13ECh. 7.3 - Prob. 14ECh. 7.3 - In this exercise we will use Bayes' theorem to...Ch. 7.3 - Prob. 16ECh. 7.3 - Prob. 17ECh. 7.3 - 18.Suppose that a Bayesian spam filter is trained...Ch. 7.3 - 19,Suppose that a Bayesian spam filter is trained...Ch. 7.3 - Prob. 20ECh. 7.3 - ,Suppose that a Bayesian spam filter is trained on...Ch. 7.3 - Suppose that we have prior information concerning...Ch. 7.3 - Prob. 23ECh. 7.4 - t is the expected number of heads that come up...Ch. 7.4 - t is the expected number of heads that come up...Ch. 7.4 - t is the expected number of times a 6 appears when...Ch. 7.4 - A coin is biased so that the probability a head...Ch. 7.4 - ^Tiat is the expected sum of the numbers that...Ch. 7.4 - Prob. 6ECh. 7.4 - final exam of a discrete mathematics course...Ch. 7.4 - t is the expected sum of the numbers that appear...Ch. 7.4 - Prob. 9ECh. 7.4 - Suppose that we flip a fair coin until either it...Ch. 7.4 - Suppose that we roll a fair die until a 6 conies...Ch. 7.4 - pose that we roll a fair die until a 6 comes up....Ch. 7.4 - pose thatwerollapairoffair dice...Ch. 7.4 - Show that the sum of the probabilities of a random...Ch. 7.4 - Show that if the random variable A'has the...Ch. 7.4 - Prob. 16ECh. 7.4 - Prob. 17ECh. 7.4 - Prob. 18ECh. 7.4 - Prob. 19ECh. 7.4 - Show that if J2,...,Xnare mutually independent...Ch. 7.4 - What is the expected value of the sum of the...Ch. 7.4 - as.Provethelaw of total expectations.Ch. 7.4 - Prob. 23ECh. 7.4 - Prob. 24ECh. 7.4 - A run is a maximal sequence of successes in a...Ch. 7.4 - a6.Let J(s) be a random variable, where I(s) is a...Ch. 7.4 - What is the variance of the number of heads that...Ch. 7.4 - t is the variance ot the number of times a 6...Ch. 7.4 - LetXnbe the random variable that equals the number...Ch. 7.4 - w that ifXand Fare independent random variables,...Ch. 7.4 - Prob. 31ECh. 7.4 - Pronde an example that shows that the variance of...Ch. 7.4 - pose that A\ andX2are independent Bernoulli trials...Ch. 7.4 - Prove the general caseofTheoremy. That is, show...Ch. 7.4 - Prob. 35ECh. 7.4 - Prob. 36ECh. 7.4 - Prob. 37ECh. 7.4 - pose that the number of cans of soda pop filled in...Ch. 7.4 - 39.Suppose that the number of aluminum cans...Ch. 7.4 - pose the probabilitvthatxis the...Ch. 7.4 - In this exercise we derive an estimate of the...Ch. 7.4 - Prob. 42ECh. 7.4 - to is the variance of the number of fixed...Ch. 7.4 - Prob. 44ECh. 7.4 - Prob. 45ECh. 7.4 - Prob. 46ECh. 7.4 - Prob. 47ECh. 7.4 - Prob. 48ECh. 7.4 - Prob. 49ECh. 7 - Define the probability of an event when all...Ch. 7 - WTiat conditions should be met by the...Ch. 7 - Define, the conditional probability’ of an event £...Ch. 7 - Prob. 4RQCh. 7 - tois a random variable? toare the possible values...Ch. 7 - Prob. 6RQCh. 7 - Explain how the average-case computational...Ch. 7 - Prob. 8RQCh. 7 - What does the linearity of expectations of random...Ch. 7 - Prob. 10RQCh. 7 - Prob. 11RQCh. 7 - Prob. 12RQCh. 7 - Prob. 13RQCh. 7 - What is the variance of the sum of n independent...Ch. 7 - Prob. 15RQCh. 7 - Prob. 1SECh. 7 - 2012, a player in the Mega Millions lottery picks...Ch. 7 - 2012, a player in the Powerball lottery picks five...Ch. 7 - t is the probability that a hand of 13 cards...Ch. 7 - t is the probability that a 13-card bridge hand...Ch. 7 - t is the probability that a seven-card poker hand...Ch. 7 - What is the expected value of the number that...Ch. 7 - What is the expected value of the number that...Ch. 7 - Suppose that a pair of fair octahedral dice is...Ch. 7 - io.Suppose that a pair offaiir dodecahedral diceis...Ch. 7 - ii.Supp o s e that a fair standard (cubic) die and...Ch. 7 - Prob. 12SECh. 7 - (mpeople!n>3!play“oddp™ut’todeadeMo^...Ch. 7 - Prob. 14SECh. 7 - posethatmandnarepositiYeintegers.Bat is...Ch. 7 - pose thatEt, E2,Enarenevents with p(£j) >o fori...Ch. 7 - Prob. 17SECh. 7 - t is the probability that when a fair coin is...Ch. 7 - t is the probability that a randomly selected bit...Ch. 7 - t is the probability that a randomly selected bit...Ch. 7 - sider the following game. A per son flips a coin...Ch. 7 - pose that n halls are tossed intobbins so that...Ch. 7 - posethatAandBareeventswthprobabilitiesp(A) =...Ch. 7 - posethat/l andB are events...Ch. 7 - all fromDefinition jinSection 7,2that the events...Ch. 7 - ...Ch. 7 - Prob. 27SECh. 7 - Prob. 28SECh. 7 - Prob. 29SECh. 7 - Prob. 30SECh. 7 - Prob. 31SECh. 7 - Prob. 32SECh. 7 - Prob. 33SECh. 7 - maximum satisfiability problemasks for an...Ch. 7 - Prob. 35SECh. 7 - The following method can be used to generate a...Ch. 7 - Prob. 1CPCh. 7 - Prob. 2CPCh. 7 - Prob. 3CPCh. 7 - Prob. 4CPCh. 7 - Prob. 5CPCh. 7 - ...Ch. 7 - Prob. 7CPCh. 7 - Prob. 8CPCh. 7 - Prob. 9CPCh. 7 - ulaterepeated trials oftheMoufr Hall Three-Door...Ch. 7 - Prob. 11CPCh. 7 - Prob. 1CAECh. 7 - Prob. 2CAECh. 7 - Prob. 3CAECh. 7 - Prob. 4CAECh. 7 - Prob. 5CAECh. 7 - Prob. 6CAECh. 7 - Prob. 7CAECh. 7 - Prob. 8CAECh. 7 - cribe the origins of probability theory and the...Ch. 7 - Prob. 2WPCh. 7 - 3.Discuss the probability' of winning when you...Ch. 7 - estigate the game of craps and discuss the...Ch. 7 - Prob. 5WPCh. 7 - Prob. 6WPCh. 7 - lain how Erdos and Renvi first used the...Ch. 7 - cuss the different types of probabilistic...
    Knowledge Booster
    Background pattern image
    Math
    Learn more about
    Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, subject and related others by exploring similar questions and additional content below.
    Similar questions
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Algebra & Trigonometry with Analytic Geometry
    Algebra
    ISBN:9781133382119
    Author:Swokowski
    Publisher:Cengage
    Continuous Probability Distributions - Basic Introduction; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=QxqxdQ_g2uw;License: Standard YouTube License, CC-BY
    Probability Density Function (p.d.f.) Finding k (Part 1) | ExamSolutions; Author: ExamSolutions;https://www.youtube.com/watch?v=RsuS2ehsTDM;License: Standard YouTube License, CC-BY
    Find the value of k so that the Function is a Probability Density Function; Author: The Math Sorcerer;https://www.youtube.com/watch?v=QqoCZWrVnbA;License: Standard Youtube License